summarylogtreecommitdiffstats
path: root/linux-5.1-compat-get-ds-removed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'linux-5.1-compat-get-ds-removed.patch')
-rw-r--r--linux-5.1-compat-get-ds-removed.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux-5.1-compat-get-ds-removed.patch b/linux-5.1-compat-get-ds-removed.patch
new file mode 100644
index 000000000000..6f2130aa1d34
--- /dev/null
+++ b/linux-5.1-compat-get-ds-removed.patch
@@ -0,0 +1,12 @@
+diff --unified --recursive --text a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c
+--- a/module/spl/spl-vnode.c 2019-02-22 12:59:44.000000000 -0500
++++ b/module/spl/spl-vnode.c 2019-05-15 18:48:43.392458053 -0400
+@@ -608,7 +608,7 @@
+ * size to ensure strncpy_from_user() does not fail with -EFAULT.
+ */
+ saved_fs = get_fs();
+- set_fs(get_ds());
++ set_fs(KERNEL_DS);
+
+ rc = user_path_dir(filename, &path);
+ if (rc)