]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2018 10:22:06 +0000 (11:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2018 10:22:06 +0000 (11:22 +0100)
added patches:
new-helper-uaccess_kernel.patch

queue-4.4/new-helper-uaccess_kernel.patch [new file with mode: 0644]
queue-4.4/series

diff --git a/queue-4.4/new-helper-uaccess_kernel.patch b/queue-4.4/new-helper-uaccess_kernel.patch
new file mode 100644 (file)
index 0000000..4ec7d0b
--- /dev/null
@@ -0,0 +1,29 @@
+From db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 Mon Sep 17 00:00:00 2001
+From: Al Viro <viro@zeniv.linux.org.uk>
+Date: Mon, 20 Mar 2017 21:08:07 -0400
+Subject: new helper: uaccess_kernel()
+
+From: Al Viro <viro@zeniv.linux.org.uk>
+
+commit db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 upstream.
+
+Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
+[only take the include/linux/uaccess.h portion - gregkh]
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ 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 <linux/sched.h>
++
++#define uaccess_kernel() segment_eq(get_fs(), KERNEL_DS)
++
+ #include <asm/uaccess.h>
+ static __always_inline void pagefault_disabled_inc(void)
index 8a377ed302b7cc684c6c57bc704e21fa2c2bd108..a4989087f43a9f873b8075379303ba07763f0031 100644 (file)
@@ -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