new helper: uaccess_kernel()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -4136,7 +4136,7 @@ void __might_fault(const char *file, int line)
|
||||
* get paged out, therefore we'll never actually fault, and the
|
||||
* below annotations will generate false positives.
|
||||
*/
|
||||
if (segment_eq(get_fs(), KERNEL_DS))
|
||||
if (uaccess_kernel())
|
||||
return;
|
||||
if (pagefault_disabled())
|
||||
return;
|
||||
|
Reference in New Issue
Block a user