Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: b955362805a1e47c5a659acf7187c6d2cf226e66 ("lru: cacheline 64 bytes for each
of lru lists")
https://github.com/alexshi/linux.git nextlru
in testcase: boot
on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 8G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-----------------------------------------------------+---------------+------------+
| | next-20201210 | b955362805 |
+-----------------------------------------------------+---------------+------------+
| boot_successes | 8 | 0 |
| boot_failures | 0 | 30 |
| WARNING:at_include/linux/vmstat.h:#si_mem_available | 0 | 30 |
| EIP:si_mem_available | 0 | 30 |
| BUG:kernel_NULL_pointer_dereference,address | 0 | 30 |
| Oops:#[##] | 0 | 30 |
| EIP:__list_add_valid | 0 | 30 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 30 |
+-----------------------------------------------------+---------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang(a)intel.com>
[ 0.232823] WARNING: CPU: 0 PID: 0 at include/linux/vmstat.h:209
si_mem_available+0x33/0xc0
[ 0.234161] Modules linked in:
[ 0.234570] CPU: 0 PID: 0 Comm: swapper Not tainted
5.10.0-rc7-next-20201210-00001-gb955362805a1 #1
[ 0.235723] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1
04/01/2014
[ 0.236783] EIP: si_mem_available+0x33/0xc0
[ 0.237322] Code: e5 56 53 83 ec 38 eb 17 8d b4 26 00 00 00 00 8b 01 89 44 95 bc 83 fa
0e 74 1d 83 c1 04 89 d0 8d 50 01 83 e8 05 83 f8 01 77 e5 <0f> 0b 8b 01 89 44 95 bc
eb e6 8d 76 00 e8 fb 1a fd ff 31 db 85 c0
[ 0.239712] EAX: 00000000 EBX: 83477100 ECX: 841f8914 EDX: 00000006
[ 0.240505] ESI: 83467f38 EDI: 00000002 EBP: 83467f08 ESP: 83467ec8
[ 0.241302] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 EFLAGS: 00210097
[ 0.242169] CR0: 80050033 CR2: ffdec000 CR3: 03b14000 CR4: 00040690
[ 0.242960] Call Trace:
[ 0.243271] ? __alloc_pages_nodemask+0x134/0x2c0
[ 0.243869] ? __alloc_pages_nodemask+0x15c/0x2c0
[ 0.244467] __rb_allocate_pages+0x24/0x1c0
[ 0.245074] rb_allocate_cpu_buffer+0x19c/0x240
[ 0.245646] __ring_buffer_alloc+0xcc/0x160
[ 0.246233] tracer_alloc_buffers+0xb7/0x2ba
[ 0.246915] early_trace_init+0x53/0x5c
[ 0.247537] start_kernel+0x1e1/0x417
[ 0.248023] ? early_idt_handler_common+0x50/0x50
[ 0.248619] i386_start_kernel+0x42/0x44
[ 0.249116] startup_32_smp+0x15f/0x170
[ 0.249621] irq event stamp: 0
[ 0.250028] hardirqs last enabled at (0): [<00000000>] 0x0
[ 0.250732] hardirqs last disabled at (0): [<00000000>] 0x0
[ 0.251440] softirqs last enabled at (0): [<00000000>] 0x0
[ 0.252156] softirqs last disabled at (0): [<00000000>] 0x0
[ 0.252883] random: get_random_bytes called from init_oops_id+0x3a/0x40 with
crng_init=0
[ 0.252893] ---[ end trace 4bc0c53f48cce3f8 ]---
To reproduce:
# build kernel
cd linux
cp config-5.10.0-rc7-next-20201210-00001-gb955362805a1 .config
make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 olddefconfig prepare modules_prepare bzImage
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
Thanks,
Oliver Sang