FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git kaslr/memory
commit 66174bd03a6386eb82f304bea95d69e777144b0b ("x86/mm: Implement ASLR for kernel
memory sections (x86_64)")
on test machine: vm-kbuild-yocto-ia32: 1 threads qemu-system-x86_64 -enable-kvm -cpu
Westmere with 320M memory
caused below changes:
+----------------+------------+------------+
| | a4f6fdb166 | 66174bd03a |
+----------------+------------+------------+
| boot_successes | 12 | 0 |
+----------------+------------+------------+
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.000000] BUG: unable to handle kernel paging request at fffff57810000004
[ 0.000000] IP: [<ffffffffa5c93436>] reserve_bootmem_region+0x282/0x2fd
[ 0.000000] PGD 0
[ 0.000000] Oops: 0000 [#1] SMP KASAN
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.7.0-rc1-00031-g66174bd #1
[ 0.000000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1
04/01/2014
[ 0.000000] task: ffffffffa6611a40 ti: ffffffffa6600000 task.ti: ffffffffa6600000
[ 0.000000] RIP: 0010:[<ffffffffa5c93436>] [<ffffffffa5c93436>]
reserve_bootmem_region+0x282/0x2fd
[ 0.000000] RSP: 0000:ffffffffa6607d70 EFLAGS: 00010802
[ 0.000000] RAX: ffffcbc080000020 RBX: dffffc0000000000 RCX: 0000000000000000
[ 0.000000] RDX: 1ffff97810000004 RSI: 0000000000000010 RDI: ffffffffa6aeac28
[ 0.000000] RBP: ffffffffa6607dc0 R08: ffffffffa6607d38 R09: ffffffffa6d81694
[ 0.000000] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
[ 0.000000] R13: ffffcbc080000000 R14: ffffffffa6673bc0 R15: 0000000000000000
[ 0.000000] FS: 0000000000000000(0000) GS:ffff923d4bc00000(0000)
knlGS:0000000000000000
[ 0.000000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.000000] CR2: fffff57810000004 CR3: 000000000e20a000 CR4: 00000000000006b0
[ 0.000000] Stack:
[ 0.000000] 00000000ffffffff fffffbfff4cce778 ffffffffffffffff 0000000000000010
[ 0.000000] 0000000000000000 ffffffffa6607eb8 1ffffffff4cc0fe0 ffffffffa6607df8
[ 0.000000] ffffffffa6607e78 ffffffffa6607e38 ffffffffa6607ee0 ffffffffa6d9ffc7
[ 0.000000] Call Trace:
[ 0.000000] [<ffffffffa6d9ffc7>] free_all_bootmem+0xe0/0x231
[ 0.000000] [<ffffffffa6d9fee7>] ? reset_all_zones_managed_pages+0xb5/0xb5
[ 0.000000] [<ffffffffa6d6b6e8>] ? check_iommu_entries+0xd3/0x133
[ 0.000000] [<ffffffffa6d82cd5>] mem_init+0x13/0x74
[ 0.000000] [<ffffffffa6d544f4>] start_kernel+0x30a/0x701
[ 0.000000] [<ffffffffa6d541ea>] ? thread_info_cache_init+0xb/0xb
[ 0.000000] [<ffffffffa6d53120>] ? early_idt_handler_array+0x120/0x120
[ 0.000000] [<ffffffffa5c977e4>] ? memblock_reserve+0x59/0x5e
[ 0.000000] [<ffffffffa6d53120>] ? early_idt_handler_array+0x120/0x120
[ 0.000000] [<ffffffffa6d5329a>] x86_64_start_reservations+0x29/0x2b
[ 0.000000] [<ffffffffa6d533da>] x86_64_start_kernel+0x13e/0x14d
[ 0.000000] Code: 57 20 48 89 f9 48 c1 e9 03 80 3c 19 00 74 0d 48 89 55 c0 e8 ad d5 1c
ff 48 8b 55 c0 49 89 57 28 49 8d 45 20 48 89 c2 48 c1 ea 03 <80> 3c 1a 00 74 10 48
89 c7 48 89 45 c0 e8 88 d5 1c ff 48 8b 45
[ 0.000000] RIP [<ffffffffa5c93436>] reserve_bootmem_region+0x282/0x2fd
[ 0.000000] RSP <ffffffffa6607d70>
[ 0.000000] CR2: fffff57810000004
[ 0.000000] ---[ end trace 52fd474ee1adf4a2 ]---
[ 0.000000] Kernel panic - not syncing: Fatal exception
FYI, raw QEMU command line is:
qemu-system-x86_64 -enable-kvm -cpu Westmere -kernel
/pkg/linux/x86_64-randconfig-s5-06011053/gcc-6/66174bd03a6386eb82f304bea95d69e777144b0b/vmlinuz-4.7.0-rc1-00031-g66174bd
-append 'root=/dev/ram0 user=lkp
job=/lkp/scheduled/vm-kbuild-yocto-ia32-4/rand_boot-1-yocto-minimal-i386.cgz-x86_64-randconfig-s5-06011053-66174bd03a6386eb82f304bea95d69e777144b0b-20160601-88682-jg99rm-0.yaml
ARCH=x86_64 kconfig=x86_64-randconfig-s5-06011053
branch=linux-devel/devel-hourly-2016060108 commit=66174bd03a6386eb82f304bea95d69e777144b0b
BOOT_IMAGE=/pkg/linux/x86_64-randconfig-s5-06011053/gcc-6/66174bd03a6386eb82f304bea95d69e777144b0b/vmlinuz-4.7.0-rc1-00031-g66174bd
max_uptime=600
RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-ia32/yocto-minimal-i386.cgz/x86_64-randconfig-s5-06011053/gcc-6/66174bd03a6386eb82f304bea95d69e777144b0b/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-kbuild-yocto-ia32-4::dhcp drbd.minor_count=8'
-initrd /fs/sdd1/initrd-vm-kbuild-yocto-ia32-4 -m 320 -smp 1 -device e1000,netdev=net0
-netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime
-drive file=/fs/sdd1/disk0-vm-kbuild-yocto-ia32-4,media=disk,if=virtio -pidfile
/dev/shm/kboot/pid-vm-kbuild-yocto-ia32-4 -serial
file:/dev/shm/kboot/serial-vm-kbuild-yocto-ia32-4 -daemonize -display none -monitor null
Thanks,
Kernel Test Robot