From: Greg Kroah-Hartman Date: Mon, 26 Nov 2018 10:19:54 +0000 (+0100) Subject: 4.9-stable patches X-Git-Tag: v3.18.127~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22a7b8925c256a6fad04a32ba3b5ea46bb5c1112;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: new-helper-uaccess_kernel.patch --- diff --git a/queue-4.9/new-helper-uaccess_kernel.patch b/queue-4.9/new-helper-uaccess_kernel.patch new file mode 100644 index 00000000000..4ec7d0b4581 --- /dev/null +++ b/queue-4.9/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.9/series b/queue-4.9/series index 926a8a54273..71113fb546d 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -41,5 +41,6 @@ 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 libceph-fall-back-to-sendmsg-for-slab-pages.patch