Skip to content

Instantly share code, notes, and snippets.

@josephlr
Created November 15, 2019 12:56
Show Gist options
  • Save josephlr/501852d91d4930ff4f25b507797b7727 to your computer and use it in GitHub Desktop.
Save josephlr/501852d91d4930ff4f25b507797b7727 to your computer and use it in GitHub Desktop.
Crashed Boot (QEMU)
early console in extract_kernel
input_data: 0x000000000243b3b1
input_len: 0x0000000000497de4
output: 0x0000000001000000
output_len: 0x00000000018aa2c0
kernel_total_size: 0x000000000162c000
trampoline_32bit: 0x000000000009d000
booted via startup_64()
Physical KASLR disabled: no suitable memory region!
Virtual KASLR using RDRAND RDTSC...
Decompressing Linux... Parsing ELF... Performing relocations... done.
Booting the kernel.
[ 0.000000] Linux version 5.0.6-318.kvm (mockbuild@kojibld01) (gcc version 8.3.1 20190403 gcc-8-branch@270109 (Clear Linux OS for Intel Architecture)) #2 SMP Wed Apr 3 07:10:32 UTC 2019
[ 0.000000] Command line: earlyprintk=serial,keep root=PARTUUID=ae06d187-e9fc-4d3b-9e5b-8e6ff28e894f bootmem_debug console=tty0 console=ttyS0,115200n8 console=hvc0 init=/usr/lib/systemd/systemd-bootchart initcall_debug tsc=reliable no_timer_check noreplace-smp cryptomgr.notests rootfstype=ext4,btrfs,xfs kvm-intel.nested=1 rw
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 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: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64
[ 0.000000] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64
[ 0.000000] x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format.
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e801: [mem 0x0000000000000000-0x000000000009efff] usable
[ 0.000000] printk: console [earlyser0] enabled
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: QEMU Standard PC (Q35 + ICH9, 2009), BIOS ?-20191013_105130-anatol 04/01/2014
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 245f001, primary cpu clock
[ 0.000001] kvm-clock: using sched offset of 803473229 cycles
[ 0.000487] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.001894] tsc: Detected 1991.996 MHz processor
[ 0.004760] .text .data .bss are not marked as E820_TYPE_RAM!
[ 0.006193] last_pfn = 0x262c max_arch_pfn = 0x400000000
[ 0.007366] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
Memory KASLR using RDRAND RDTSC...
[ 0.014481] found SMP MP-table at [mem 0x000f5cf0-0x000f5cff] mapped at [(____ptrval____)]
[ 0.016695] Using GB pages for direct mapping
[ 0.017601] Kernel panic - not syncing: alloc_low_pages: can not alloc memory
[ 0.018918] CPU: 0 PID: 0 Comm: swapper Not tainted 5.0.6-318.kvm #2
[ 0.020012] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS ?-20191013_105130-anatol 04/01/2014
[ 0.021478] Call Trace:
[ 0.022114] ? dump_stack+0x47/0x70
[ 0.023013] ? panic+0xe6/0x261
[ 0.023876] ? alloc_low_pages+0xfa/0x190
[ 0.025167] ? phys_pmd_init+0x226/0x2ef
[ 0.026250] ? phys_pud_init+0x13a/0x306
[ 0.027330] ? kernel_physical_mapping_init+0xbd/0x1d3
[ 0.028467] ? init_memory_mapping+0x212/0x300
[ 0.028919] ? init_range_memory_mapping+0xb6/0xfc
[ 0.029511] ? init_mem_mapping+0x29a/0x309
[ 0.030193] ? setup_arch+0x5e7/0x987
[ 0.030588] ? start_kernel+0x4e/0x47d
[ 0.031059] ? secondary_startup_64+0xa4/0xb0
[ 0.031469] ---[ end Kernel panic - not syncing: alloc_low_pages: can not alloc memory ]---
PANIC: early exception 0x08 IP 246:10 error ffffffff9d0ebbd2 cr2 0xffffa1e3c2601000
[ 0.032889] CPU: 0 PID: 0 Comm: swapper Not tainted 5.0.6-318.kvm #2
[ 0.033421] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS ?-20191013_105130-anatol 04/01/2014
[ 0.034235] RIP: 0246:0x10
[ 0.034479] Code: Bad RIP value.
[ 0.034749] RSP: 0008:0000000000000000 EFLAGS: ffffffff9e003be0 ORIG_RAX: ffffffff9d0ebbd2
[ 0.035436] RAX: 000000000000004f RBX: 0000000000000000 RCX: 0000000000000000
[ 0.036033] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 0.036716] RBP: ffffffff9e003c48 R08: 0000000000000000 R09: 0000000000000000
[ 0.037310] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[ 0.037997] R13: 0000000000000000 R14: 8000000000000163 R15: 0000000002800000
[ 0.038625] FS: 0000000000000000 GS: 0000000000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment