FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git kspp/ro_after_init
commit 140e8814d7b74bb36967016fcabbb7ecb71d5296 ("x86: apply more __ro_after_init and
const")
in testcase: kernel_selftests
with following parameters:
on test machine: vm-vp-1G: 2 threads qemu-system-x86_64 -enable-kvm -cpu Nehalem with 1G
memory
caused below changes:
+---------------------------------------------------------------------------+----------+------------+
| | v4.7-rc3 |
140e8814d7 |
+---------------------------------------------------------------------------+----------+------------+
| boot_successes | 1991 | 4
|
| boot_failures | 93 |
12 |
| BUG:sleeping_function_called_from_invalid_context_at_kernel/irq/manage.c | 67 |
|
| backtrace:register_console | 50 |
|
| backtrace:init_netconsole | 50 |
|
| backtrace:do_init_module | 55 |
|
| backtrace:cpu_startup_entry | 10 |
|
| backtrace:load_module | 47 |
|
| backtrace:SYSC_finit_module | 48 |
|
| backtrace:SyS_finit_module | 48 |
|
| backtrace:e1000_netpoll | 1 |
|
| backtrace:disable_irq | 1 |
|
| WARNING:at_drivers/gpu/drm/i915/intel_display.c:#intel_modeset_init[i915] | 7 |
|
| backtrace:intel_modeset_init | 7 |
|
| backtrace:warn_slowpath_fmt | 7 |
|
| backtrace:__pci_register_driver | 7 |
|
| backtrace:drm_pci_init | 7 |
|
| backtrace:i915_init | 7 |
|
| invoked_oom-killer:gfp_mask=0x | 9 |
|
| Mem-Info | 9 |
|
| Out_of_memory:Kill_process | 3 |
|
| backtrace:_do_fork | 1 |
|
| backtrace:kimage_load_segment | 1 |
|
| backtrace:SyS_kexec_load | 1 |
|
| backtrace:vfs_write | 9 |
|
| backtrace:SyS_write | 8 |
|
| WARNING:at_fs/xfs/xfs_file.c:#xfs_file_read_iter | 1 |
|
| WARNING:at_fs/xfs/xfs_file.c:#xfs_file_dio_aio_write | 2 |
|
| backtrace:vfs_read | 2 |
|
| backtrace:SyS_read | 2 |
|
| backtrace:SyS_pwrite64 | 1 |
|
| BUG:kernel_test_crashed | 6 |
|
| BUG:kernel_test_hang | 1 |
|
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 6 |
|
| backtrace:populate_rootfs | 6 |
|
| backtrace:kernel_init_freeable | 6 |
|
| WARNING:at_arch/x86/events/intel/core.c:#intel_pmu_handle_irq | 1 |
|
| BUG:unable_to_handle_kernel | 0 |
12 |
| Oops | 0 |
11 |
| RIP:x86_configure_nx | 0 | 9
|
| Kernel_panic-not_syncing:Fatal_exception | 0 | 9
|
| backtrace:cpu_init | 0 | 6
|
| Kernel_panic-not_syncing:Fatal_exc | 0 | 2
|
+---------------------------------------------------------------------------+----------+------------+
[ 14.754109] smpboot: CPU 1 is now offline
[ 14.774550] x86: Booting SMP configuration:
[ 14.775495] smpboot: Booting Node 0 Processor 1 APIC 0x1
[ 14.776719] BUG: unable to handle kernel paging request at ffffffff81d72f80
[ 14.777757] IP: [<ffffffff8106c85f>] x86_configure_nx+0x3f/0x50
[ 14.778614] PGD 1e09067 PUD 1e0a063 PMD 8000000001c001e1
[ 14.779431] Oops: 0003 [#1] SMP
[ 14.779873] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver sg sr_mod
cdrom ata_generic pata_acpi ppdev crc32c_intel snd_pcm snd_timer snd soundcore pcspkr
serio_raw ata_piix i2c_piix4 libata floppy parport_pc parport acpi_cpufreq
[ 14.783412] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.7.0-rc3-00001-g140e881 #1
[ 14.784449] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1
04/01/2014
[ 14.785683] task: ffff8800343a2480 ti: ffff8800343ac000 task.ti: ffff8800343ac000
[ 14.786723] RIP: 0010:[<ffffffff8106c85f>] [<ffffffff8106c85f>]
x86_configure_nx+0x3f/0x50
[ 14.787895] RSP: 0000:ffff8800343afee0 EFLAGS: 00010046
[ 14.788646] RAX: 8000000000000000 RBX: ffff880035915b00 RCX: 00000000c0000102
[ 14.789633] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000c0000102
[ 14.790617] RBP: ffff8800343afee0 R08: 0000000000000000 R09: 0000000000000000
[ 14.791600] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
[ 14.792582] R13: 0000000000000000 R14: ffff8800343a2480 R15: ffff88003590d3a0
[ 14.793566] FS: 0000000000000000(0000) GS:ffff880035900000(0000)
knlGS:0000000000000000
[ 14.794680] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 14.795478] CR2: ffffffff81d72f80 CR3: 0000000001e06000 CR4: 00000000000000a0
[ 14.796463] Stack:
[ 14.796754] ffff8800343aff30 ffffffff8103f762 0000000000000001 ffffffff810c24b9
[ 14.797858] ffff8800343b0000 0000000000000000 0000000000000000 0000000000000000
[ 14.798967] 0000000000000000 0000000000000000 ffff8800343aff48 ffffffff8104fbfd
[ 14.800072] Call Trace:
[ 14.800423] [<ffffffff8103f762>] cpu_init+0x162/0x420
[ 14.801147] [<ffffffff810c24b9>] ? cpu_startup_entry+0x2a9/0x310
[ 14.801998] [<ffffffff8104fbfd>] start_secondary+0xd/0x130
[ 14.802765] [<ffffffff8104fbf0>] ? set_cpu_sibling_map+0x4f0/0x4f0
[ 14.803635] Code: a8 01 74 0a 8b 05 3a 21 1d 01 85 c0 74 13 48 b8 ff ff ff ff ff ff ff
7f 48 21 05 2d 67 d0 00 5d c3 48 b8 00 00 00 00 00 00 00 80 <48> 09 05 1a 67 d0 00
5d c3 0f 1f 84 00 00 00 00 00 66 66 66 66
[ 14.807531] RIP [<ffffffff8106c85f>] x86_configure_nx+0x3f/0x50
[ 14.808389] RSP <ffff8800343afee0>
[ 14.808879] CR2: ffffffff81d72f80
[ 14.809355] ---[ end trace 1b6c8bd8c36c35cd ]---
[ 14.810006] Kernel panic - not syncing: Fatal exception
FYI, raw QEMU command line is:
qemu-system-x86_64 -enable-kvm -cpu Nehalem -kernel
/pkg/linux/x86_64-rhel/gcc-4.9/140e8814d7b74bb36967016fcabbb7ecb71d5296/vmlinuz-4.7.0-rc3-00001-g140e881
-append 'root=/dev/ram0 user=lkp
job=/lkp/scheduled/vm-vp-1G-4/bisect_kernel_selftests-defaults-debian-x86_64-2015-02-07.cgz-x86_64-rhel-140e8814d7b74bb36967016fcabbb7ecb71d5296-20160614-65807-1poiw03-0.yaml~
ARCH=x86_64 kconfig=x86_64-rhel branch=linux-devel/devel-hourly-2016061410
commit=140e8814d7b74bb36967016fcabbb7ecb71d5296
BOOT_IMAGE=/pkg/linux/x86_64-rhel/gcc-4.9/140e8814d7b74bb36967016fcabbb7ecb71d5296/vmlinuz-4.7.0-rc3-00001-g140e881
max_uptime=1307
RESULT_ROOT=/result/kernel_selftests/defaults/vm-vp-1G/debian-x86_64-2015-02-07.cgz/x86_64-rhel/gcc-4.9/140e8814d7b74bb36967016fcabbb7ecb71d5296/0
LKP_SERVER=inn earlyprintk=ttyS0,115200 systemd.log_level=err debug apic=debug
sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=-1 softlockup_panic=1
nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 console=ttyS0,115200
console=tty0 vga=normal rw ip=::::vm-vp-1G-4::dhcp' -initrd
/fs/sdf1/initrd-vm-vp-1G-4 -m 1024 -smp 2 -device e1000,netdev=net0 -netdev
user,id=net0,hostfwd=tcp::23103-:22 -boot order=nc -no-reboot -watchdog i6300esb -rtc
base=localtime -drive file=/fs/sdf1/disk0-vm-vp-1G-4,media=disk,if=virtio -drive
file=/fs/sdf1/disk1-vm-vp-1G-4,media=disk,if=virtio -drive
file=/fs/sdf1/disk2-vm-vp-1G-4,media=disk,if=virtio -drive
file=/fs/sdf1/disk3-vm-vp-1G-4,media=disk,if=virtio -drive
file=/fs/sdf1/disk4-vm-vp-1G-4,media=disk,if=virtio -drive
file=/fs/sdf1/disk5-vm-vp-1G-4,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-vp-1G-4
-serial file:/dev/shm/kboot/serial-vm-vp-1G-4 -daemonize -display none -monitor null
To reproduce:
git clone
git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp run job.yaml
Thanks,
Xiaolong