Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. diff -Naur a/include/linux/file_compat.h b/include/linux/file_compat.h
  2. --- a/include/linux/file_compat.h 2018-05-08 21:37:01.000000000 +0100
  3. +++ b/include/linux/file_compat.h 2019-06-06 22:40:44.873699894 +0100
  4. @@ -81,7 +81,7 @@
  5. ssize_t ret;
  6.  
  7. saved_fs = get_fs();
  8. - set_fs(get_ds());
  9. + set_fs(KERNEL_DS);
  10.  
  11. ret = vfs_write(file, (__force const char __user *)buf, count, pos);
  12.  
  13. @@ -101,7 +101,7 @@
  14. ssize_t ret;
  15.  
  16. saved_fs = get_fs();
  17. - set_fs(get_ds());
  18. + set_fs(KERNEL_DS);
  19.  
  20. ret = vfs_read(file, (void __user *)buf, count, pos);
  21.  
  22. diff -Naur a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c
  23. --- a/module/spl/spl-vnode.c 2019-06-06 22:38:40.830428570 +0100
  24. +++ b/module/spl/spl-vnode.c 2019-06-06 22:40:31.706671093 +0100
  25. @@ -608,7 +608,7 @@
  26. * size to ensure strncpy_from_user() does not fail with -EFAULT.
  27. */
  28. saved_fs = get_fs();
  29. - set_fs(get_ds());
  30. + set_fs(KERNEL_DS);
  31.  
  32. rc = user_path_dir(filename, &path);
  33. if (rc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement