From: Greg Kroah-Hartman Date: Mon, 26 Nov 2018 10:24:07 +0000 (+0100) Subject: 3.18-stable patches X-Git-Tag: v3.18.127~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fcfa7500f8088cc03ead73a20933786a4c5dffa;p=thirdparty%2Fkernel%2Fstable-queue.git 3.18-stable patches added patches: 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