From 3fcfa7500f8088cc03ead73a20933786a4c5dffa Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 26 Nov 2018 11:24:07 +0100 Subject: [PATCH] 3.18-stable patches added patches: new-helper-uaccess_kernel.patch --- queue-3.18/new-helper-uaccess_kernel.patch | 29 ++++++++++++++++++++++ queue-3.18/series | 1 + 2 files changed, 30 insertions(+) create mode 100644 queue-3.18/new-helper-uaccess_kernel.patch diff --git a/queue-3.18/new-helper-uaccess_kernel.patch b/queue-3.18/new-helper-uaccess_kernel.patch new file mode 100644 index 00000000000..ac474dc1ba3 --- /dev/null +++ b/queue-3.18/new-helper-uaccess_kernel.patch @@ -0,0 +1,29 @@ +From db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 Mon Sep 17 00:00:00 2001 +From: Al Viro +Date: Mon, 20 Mar 2017 21:08:07 -0400 +Subject: new helper: uaccess_kernel() + +From: Al Viro + +commit db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 upstream. + +Signed-off-by: Al Viro +[only take the include/linux/uaccess.h portion - gregkh] +Signed-off-by: Greg Kroah-Hartman + +--- + include/linux/uaccess.h | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/include/linux/uaccess.h ++++ b/include/linux/uaccess.h +@@ -2,6 +2,9 @@ + #define __LINUX_UACCESS_H__ + + #include ++ ++#define uaccess_kernel() segment_eq(get_fs(), KERNEL_DS) ++ + #include + + /* diff --git a/queue-3.18/series b/queue-3.18/series index 572c43455da..8b0f545f68c 100644 --- a/queue-3.18/series +++ b/queue-3.18/series @@ -20,4 +20,5 @@ usb-quirks-add-delay-init-quirk-for-corsair-k70-lux-rgb.patch misc-atmel-ssc-fix-section-annotation-on-atmel_ssc_get_driver_data.patch usb-misc-appledisplay-add-20-apple-cinema-display.patch acpi-platform-add-smb0001-hid-to-forbidden_id_list.patch +new-helper-uaccess_kernel.patch hid-uhid-forbid-uhid_create-under-kernel_ds-or-elevated-privileges.patch -- 2.47.3