FYI, we noticed the following commit:
commit: 13aae042a26a059581db8353b94157a385452c6b ("mm, page_alloc: Split
alloc_pages_nodemask")
https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git
mm-pagealloc-bulk-allocator-noirq-v1r1
in testcase: boot
on test machine: qemu-system-i386 -enable-kvm -m 360M
caused below changes:
+------------------------------------------+------------+------------+
| | 921a820114 | 13aae042a2 |
+------------------------------------------+------------+------------+
| boot_successes | 6 | 0 |
| boot_failures | 0 | 4 |
| BUG:unable_to_handle_kernel | 0 | 4 |
| Oops | 0 | 4 |
| EIP_is_at_get_page_from_freelist | 0 | 4 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 4 |
+------------------------------------------+------------+------------+
[ 0.000000] .data : 0xc1cbd715 - 0xc21cc360 (5179 kB)
[ 0.000000] .text : 0xc1000000 - 0xc1cbd715 (13045 kB)
[ 0.000000] Checking if this processor honours the WP bit even in supervisor
mode...Ok.
[ 0.000000] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 0.000000] IP: [<c1119942>] get_page_from_freelist+0x12/0x8b0
[ 0.000000] *pde = 00000000
[ 0.000000] Oops: 0000 [#1] SMP
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.0-rc7-00002-g13aae04 #1
[ 0.000000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.9.3-20161025_171302-gandalf 04/01/2014
[ 0.000000] task: c20b4440 task.stack: c20ae000
[ 0.000000] EIP: 0060:[<c1119942>] EFLAGS: 00210082 CPU: 0
[ 0.000000] EIP is at get_page_from_freelist+0x12/0x8b0
[ 0.000000] EAX: 00204000 EBX: c20aff14 ECX: 00000001 EDX: 00000000
[ 0.000000] ESI: 00204000 EDI: 00000000 EBP: c20afefc ESP: c20afeb0
[ 0.000000] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 0.000000] CR0: 80050033 CR2: 00000000 CR3: 022a3000 CR4: 00000690
[ 0.000000] Stack:
[ 0.000000] c1042583 c20b4440 0000b560 d4b25f40 0000b54c c2247ee4 00000014 c2247ee4
[ 0.000000] c20aff1c c1131a8c 0000000c 00000000 0000d954 00000000 00000000 00000001
[ 0.000000] 00204000 00204000 00000000 c20aff38 c111aed3 c20aff14 ffffffff 00000000
[ 0.000000] Call Trace:
[ 0.000000] [<c1042583>] ? fixup_exception+0x23/0x40
[ 0.000000] [<c1131a8c>] ? pcpu_alloc_area+0x28c/0x380
[ 0.000000] [<c111aed3>] __alloc_pages_nodemask+0x83/0x1c0
[ 0.000000] [<c1154189>] cache_grow_begin+0x59/0x480
[ 0.000000] [<c15c3fba>] ? find_next_bit+0x1a/0x30
[ 0.000000] [<c1153d12>] kmem_cache_alloc+0x212/0x630
[ 0.000000] [<c21edb67>] create_kmalloc_cache+0x1d/0x67
[ 0.000000] [<c21ef1ad>] kmem_cache_init+0xe5/0x128
[ 0.000000] [<c21ce9c6>] start_kernel+0x193/0x334
[ 0.000000] [<c21ce2aa>] i386_start_kernel+0x91/0x95
[ 0.000000] Code: f9 02 29 cb e9 77 ff ff ff 8d 4b 03 eb f1 8d 74 26 00 8d bc 27 00 00
00 00 55 89 e5 57 56 53 83 ec 40 8b 5d 08 8b 7b 08 89 7d ec <8b> 37 89 75 f0 85 f6
0f 84 71 03 00 00 89 ce 89 4d d4 89 55 e8
[ 0.000000] EIP: [<c1119942>]
[ 0.000000] get_page_from_freelist+0x12/0x8b0
[ 0.000000] SS:ESP 0068:c20afeb0
[ 0.000000] CR2: 0000000000000000
[ 0.000000] ---[ end trace 0000000000000000 ]---
[ 0.000000] Kernel panic - not syncing: Fatal exception
Elapsed time: 10
To reproduce:
git clone
git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this
email
Thanks,
Xiaolong