Revision 733d1d1a7745113e2b6a1761300e7e26b6eb6009 authored by Alexander Potapenko on 03 August 2019, 04:49:22 UTC, committed by Linus Torvalds on 03 August 2019, 14:02:01 UTC
kmalloc() shouldn't sleep while in RCU critical section, therefore use
GFP_ATOMIC instead of GFP_KERNEL.

The bug was spotted by the 0day kernel testing robot.

Link: http://lkml.kernel.org/r/20190725121703.210874-1-glider@google.com
Fixes: 7e659650cbda ("lib: introduce test_meminit module")
Signed-off-by: Alexander Potapenko <glider@google.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent cbedfe1
History
File Mode Size
unittest-data
Kconfig -rw-r--r-- 2.3 KB
Makefile -rw-r--r-- 659 bytes
address.c -rw-r--r-- 24.7 KB
base.c -rw-r--r-- 58.8 KB
device.c -rw-r--r-- 8.2 KB
dynamic.c -rw-r--r-- 22.6 KB
fdt.c -rw-r--r-- 31.2 KB
fdt_address.c -rw-r--r-- 6.2 KB
irq.c -rw-r--r-- 18.6 KB
kobj.c -rw-r--r-- 3.8 KB
of_mdio.c -rw-r--r-- 13.6 KB
of_net.c -rw-r--r-- 3.2 KB
of_numa.c -rw-r--r-- 3.9 KB
of_private.h -rw-r--r-- 5.4 KB
of_reserved_mem.c -rw-r--r-- 10.3 KB
overlay.c -rw-r--r-- 34.2 KB
pdt.c -rw-r--r-- 4.8 KB
platform.c -rw-r--r-- 19.8 KB
property.c -rw-r--r-- 28.7 KB
resolver.c -rw-r--r-- 8.5 KB
unittest.c -rw-r--r-- 68.8 KB

back to top