early console in setup code
early console in extract_kernel
input_data: 0x00000000031d9255
input_len: 0x0000000000a8deab
output: 0x0000000001000000
output_len: 0x0000000001de8ce8
kernel_total_size: 0x0000000003074000

Decompressing Linux... Parsing ELF... done.
Booting the kernel.
[    0.000000] Linux version 4.14.0-01253-g01a00bfb (kbuild@lkp-snb01) (gcc version 6.4.0 20171026 (Debian 6.4.0-9)) #1 PREEMPT Tue Nov 28 00:41:05 CST 2017
[    0.000000] Command line: ip=::::vm-lkp-hsw01-1G-5::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-lkp-hsw01-1G-5/boot-1-debian-x86_64-2016-08-31.cgz-01a00bfbd7adce7baf95c54c2250de86a5675308-20171128-8973-10n7hdb-0.yaml ARCH=x86_64 kconfig=x86_64-randconfig-r0-11271738 branch=linux-devel/devel-catchup-201711271924 commit=01a00bfbd7adce7baf95c54c2250de86a5675308 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-r0-11271738/gcc-6/01a00bfbd7adce7baf95c54c2250de86a5675308/vmlinuz-4.14.0-01253-g01a00bfb max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp-hsw01-1G/debian-x86_64-2016-08-31.cgz/x86_64-randconfig-r0-11271738/gcc-6/01a00bfbd7adce7baf95c54c2250de86a5675308/0 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal 
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ffdffff] usable
[    0.000000] BIOS-e820: [mem 0x000000003ffe0000-0x000000003fffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] bootconsole [earlyser0] enabled
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] random: fast init done
[    0.000000] SMBIOS 2.8 present.
[    0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    0.000000] Hypervisor detected: KVM
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0x3ffe0 max_arch_pfn = 0x400000000
[    0.000000] MTRR default type: write-back
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-BFFFF uncachable
[    0.000000]   C0000-FFFFF write-protect
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 0080000000 mask FF80000000 uncachable
[    0.000000]   1 disabled
[    0.000000]   2 disabled
[    0.000000]   3 disabled
[    0.000000]   4 disabled
[    0.000000]   5 disabled
[    0.000000]   6 disabled
[    0.000000]   7 disabled
[    0.000000] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
[    0.000000] Scan for SMP in [mem 0x00000000-0x000003ff]
[    0.000000] Scan for SMP in [mem 0x0009fc00-0x0009ffff]
[    0.000000] Scan for SMP in [mem 0x000f0000-0x000fffff]
[    0.000000] found SMP MP-table at [mem 0x000f6a80-0x000f6a8f] mapped at [ffffffffff200a80]
[    0.000000]   mpc: f6a90-f6b74
[    0.000000] Base memory trampoline at [ffff880000099000] 99000 size 24576
[    0.000000] BRK [0x0404f000, 0x0404ffff] PGTABLE
[    0.000000] BRK [0x04050000, 0x04050fff] PGTABLE
[    0.000000] BRK [0x04051000, 0x04051fff] PGTABLE
[    0.000000] BRK [0x04052000, 0x04052fff] PGTABLE
[    0.000000] BRK [0x04053000, 0x04053fff] PGTABLE
[    0.000000] BRK [0x04054000, 0x04054fff] PGTABLE
[    0.000000] RAMDISK: [mem 0x33123000-0x3ffdffff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI:      0x00000000000F6870 000000 (v00                 00000000      00000000)
[    0.000000] kvm-clock: cpu 0, msr 0:33121001, primary cpu clock
[    0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[    0.000000] kvm-clock: using sched offset of 1359221394 cycles
[    0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x000000003ffdffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x000000003ffdffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003ffdffff]
[    0.000000] On node 0 totalpages: 262014
[    0.000000]   DMA zone: 64 pages used for memmap
[    0.000000]   DMA zone: 21 pages reserved
[    0.000000]   DMA zone: 3998 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 4032 pages used for memmap
[    0.000000]   DMA32 zone: 258016 pages, LIFO batch:31
[    0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[    0.000000] Intel MultiProcessor Specification v1.0
[    0.000000] ------------[ cut here ]------------
[    0.000000] kernel BUG at arch/x86/kernel/mpparse.c:559!
PANIC: early exception 0x06 IP 10:ffffffff82aeaf68 error 0 cr2 0xffff880032fff000
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.0-01253-g01a00bfb #1
[    0.000000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    0.000000] task: ffffffff8221fc40 task.stack: ffffffff82200000
[    0.000000] RIP: 0010:default_get_smp_config+0x627/0x6b6
[    0.000000] RSP: 0000:ffffffff82203e08 EFLAGS: 00010002 ORIG_RAX: 0000000000000000
[    0.000000] RAX: 0000000000000027 RBX: 000000003ff7ec00 RCX: 0000000000000000
[    0.000000] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[    0.000000] RBP: 000000003ffe0000 R08: ffffffff8221fc40 R09: 0000000000000001
[    0.000000] R10: ffffffff82203d88 R11: ffffffff8389778c R12: ffff88003ffdfc58
[    0.000000] R13: ffffffffff200a80 R14: 0000000000000000 R15: 0000000000000000
[    0.000000] FS:  0000000000000000(0000) GS:ffffffff82274000(0000) knlGS:0000000000000000
[    0.000000] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.000000] CR2: ffff880032fff000 CR3: 0000000002218000 CR4: 00000000000606b0
[    0.000000] Call Trace:
[    0.000000]  ? early_memunmap+0xc/0x14
[    0.000000]  ? sfi_unmap_memory+0x3b/0x43
[    0.000000]  ? sfi_init+0x188/0x2a9
[    0.000000]  ? setup_arch+0xfc5/0x109b
[    0.000000]  ? printk+0x54/0x77
[    0.000000]  ? start_kernel+0xad/0x810
[    0.000000]  ? copy_bootdata+0x29/0x132
[    0.000000]  ? x86_64_start_reservations+0x42/0x4a
[    0.000000]  ? x86_64_start_kernel+0xac/0xb5
[    0.000000]  ? secondary_startup_64+0xa5/0xb0
[    0.000000] Code: 8e 14 00 85 db 74 34 be 10 00 00 00 4c 89 ef 48 ff 05 3d 8e 14 00 e8 82 72 01 00 48 ff 05 39 8e 14 00 eb 72 48 ff 05 18 8e 14 00 <0f> 0b 48 ff 05 2f 8e 14 00 48 ff 05 30 8e 14 00 45 85 f6 75 20 

Elapsed time: 10

#!/bin/bash

# To reproduce,
# 1) save job-script and this script (both are attached in 0day report email)
# 2) run this script with your compiled kernel and optional env $INSTALL_MOD_PATH

kernel=$1

initrds=(
	/osimage/debian/debian-x86_64-2016-08-31.cgz
	/lkp/lkp/lkp-x86_64.cgz
	/osimage/deps/debian-x86_64-2016-08-31.cgz/lkp_2017-08-01.cgz
	/osimage/deps/debian-x86_64-2016-08-31.cgz/rsync-rootfs_2016-11-15.cgz
	/osimage/deps/debian-x86_64-2016-08-31.cgz/run-ipconfig_2016-11-15.cgz
)

HTTP_PREFIX=https://github.com/0day-ci/lkp-qemu/raw/master
wget --timestamping "${initrds[@]/#/$HTTP_PREFIX}"

{
	cat "${initrds[@]//*\//}"
	[[ $INSTALL_MOD_PATH ]] && (
		cd "$INSTALL_MOD_PATH"
		find lib | cpio -o -H newc --quiet | gzip
	)
	echo  job-script | cpio -o -H newc --quiet | gzip
} > initrd.img

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-cpu host
	-kernel $kernel
	-initrd initrd.img
	-m 1024
	-smp 2
	-device e1000,netdev=net0
	-netdev user,id=net0
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-watchdog-action debug
	-rtc base=localtime
	-serial stdio
	-display none
	-monitor null
)

append=(
	ip=::::vm-lkp-hsw01-1G-5::dhcp
	root=/dev/ram0
	user=lkp
	job=/job-script
	ARCH=x86_64
	kconfig=x86_64-randconfig-r0-11271738
	branch=linux-devel/devel-catchup-201711271924
	commit=01a00bfbd7adce7baf95c54c2250de86a5675308
	BOOT_IMAGE=/pkg/linux/x86_64-randconfig-r0-11271738/gcc-6/01a00bfbd7adce7baf95c54c2250de86a5675308/vmlinuz-4.14.0-01253-g01a00bfb
	max_uptime=600
	RESULT_ROOT=/result/boot/1/vm-lkp-hsw01-1G/debian-x86_64-2016-08-31.cgz/x86_64-randconfig-r0-11271738/gcc-6/01a00bfbd7adce7baf95c54c2250de86a5675308/0
	result_service=tmpfs
	debug
	apic=debug
	sysrq_always_enabled
	rcupdate.rcu_cpu_stall_timeout=100
	net.ifnames=0
	printk.devkmsg=on
	panic=-1
	softlockup_panic=1
	nmi_watchdog=panic
	oops=panic
	load_ramdisk=2
	prompt_ramdisk=0
	drbd.minor_count=8
	systemd.log_level=err
	ignore_loglevel
	console=tty0
	earlyprintk=ttyS0,115200
	console=ttyS0,115200
	vga=normal
	rw
)

"${kvm[@]}" -append "${append[*]}"
