From: Greg Kroah-Hartman Date: Mon, 26 Nov 2018 10:22:06 +0000 (+0100) Subject: 4.4-stable patches X-Git-Tag: v3.18.127~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ea2dfd1526bc4efccaec89f2306a049f2548458;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: new-helper-uaccess_kernel.patch --- diff --git a/queue-4.4/new-helper-uaccess_kernel.patch b/queue-4.4/new-helper-uaccess_kernel.patch new file mode 100644 index 00000000000..4ec7d0b4581 --- /dev/null +++ b/queue-4.4/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 + + static __always_inline void pagefault_disabled_inc(void) diff --git a/queue-4.4/series b/queue-4.4/series index 8a377ed302b..a4989087f43 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -66,4 +66,5 @@ misc-atmel-ssc-fix-section-annotation-on-atmel_ssc_get_driver_data.patch usb-misc-appledisplay-add-20-apple-cinema-display.patch drivers-misc-sgi-gru-fix-spectre-v1-vulnerability.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