Files
kernel_arpi/include/linux
Masami Hiramatsu 2d8d8fac3b x86/uaccess: Allow access_ok() in irq context if pagefault_disabled
WARN_ON_IN_IRQ() assumes that the access_ok() and following
user memory access can sleep. But this assumption is not
always correct; when the pagefault is disabled, following
memory access will just returns -EFAULT and never sleep.

Add pagefault_disabled() check in WARN_ON_ONCE() so that
it can ignore the case we call it with disabling pagefault.
For this purpose, this modified pagefault_disabled() as
an inline function.

Link: http://lkml.kernel.org/r/155789868664.26965.7932665824135793317.stgit@devnote2

Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2019-05-25 23:04:42 -04:00
..
2019-05-02 10:37:55 +09:00
2019-05-14 19:52:50 -07:00
2019-05-07 08:39:02 -06:00
2019-05-09 15:25:13 -04:00
2019-05-01 07:47:37 -07:00
2019-05-14 09:47:51 -07:00
2019-05-07 14:31:03 +02:00
2019-05-14 19:52:51 -07:00
2019-05-14 19:52:48 -07:00
2019-05-08 22:14:36 +02:00
2019-05-16 15:51:55 -07:00
2019-05-01 08:38:47 -06:00
2019-04-30 12:37:51 +02:00
2019-05-15 17:35:54 +01:00