From e07405d3cd382973ad9856ed3e35f9806e32e804 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Mon, 20 Mar 2017 21:08:07 -0400 Subject: [PATCH] new helper: uaccess_kernel() commit db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 upstream. Signed-off-by: Al Viro [only take the include/linux/uaccess.h portion - gregkh] Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- include/linux/uaccess.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h index ecd3319dac33..ee7e1b8afd3a 100644 --- 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 /*