diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-12-29 10:05:14 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-12-29 14:30:51 +0100 |
| commit | 856f7b87e5d63bd061fc6ecd4143cd4a6aa8292e (patch) | |
| tree | 11399afc9567404307a52f15964d77c08fea9e83 /pkg | |
| parent | 80910769fd1f04ef3263915865ffec0da1d7a421 (diff) | |
pkg/report: add more arm64/riscv64 oops examples
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/report/linux.go | 1 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/541 | 47 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/542 | 40 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/543 | 65 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/544 | 17 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/545 | 33 |
6 files changed, 203 insertions, 0 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index b2bb37f9d..b33c3c833 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -751,6 +751,7 @@ var linuxStackParams = &stackParams{ "_trap", "show_stack", "dump_stack", + "walk_stack", "dump_backtrace", "warn_slowpath", "warn_alloc", diff --git a/pkg/report/testdata/linux/report/541 b/pkg/report/testdata/linux/report/541 new file mode 100644 index 000000000..1038a251b --- /dev/null +++ b/pkg/report/testdata/linux/report/541 @@ -0,0 +1,47 @@ +TITLE: Internal error in clear_page + +[ 4.227552][ T1] DMI not present or invalid. +[ 4.282443][ T1] NET: Registered protocol family 16 +[ 4.493539][ T1] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations +[ 4.496451][ T1] Internal error: synchronous external abort: 96000050 [#1] PREEMPT SMP +[ 4.497227][ T1] Modules linked in: +[ 4.498230][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.2 #24 +[ 4.498610][ T1] Hardware name: linux,dummy-virt (DT) +[ 4.499302][ T1] pstate: 10000005 (nzcV daif -PAN -UAO -TCO BTYPE=--) +[ 4.499760][ T1] pc : clear_page+0x14/0x28 +[ 4.500225][ T1] lr : kernel_init_free_pages+0x7c/0x190 +[ 4.500580][ T1] sp : ffff0001001ff600 +[ 4.500909][ T1] x29: ffff0001001ff600 x28: dfffa00000000000 +[ 4.501492][ T1] x27: ffff0001001f14a8 x26: ffff80002003e295 +[ 4.502108][ T1] x25: fffffdffffe00000 x24: 00000000000014a8 +[ 4.502650][ T1] x23: ffff0001001f0000 x22: fffffe0000182000 +[ 4.503274][ T1] x21: ffffa000194cac58 x20: dfffa00000000000 +[ 4.503925][ T1] x19: fffffe0000180000 x18: ffff000118930b48 +[ 4.504419][ T1] x17: 0000000000001008 x16: ffffa00010385650 +[ 4.504911][ T1] x15: ffffa0001c4a6010 x14: 1fffe0002003fe82 +[ 4.505402][ T1] x13: ffff0001001f0000 x12: ffff9fc000030007 +[ 4.505893][ T1] x11: 1fffffc000030006 x10: ffff9fc000030006 +[ 4.506457][ T1] x9 : 0000000000000000 x8 : ffff800001c10000 +[ 4.506963][ T1] x7 : 0000000000000000 x6 : 000000000000003f +[ 4.507471][ T1] x5 : 0000000000000040 x4 : 1ffff400039e3590 +[ 4.508023][ T1] x3 : 1fffe0002003e002 x2 : 0000000000000004 +[ 4.508526][ T1] x1 : 0000000000000040 x0 : ffff00000e000000 +[ 4.509236][ T1] Call trace: +[ 4.509645][ T1] clear_page+0x14/0x28 +[ 4.510010][ T1] prep_new_page+0x11c/0x250 +[ 4.510368][ T1] get_page_from_freelist+0x2604/0x31b0 +[ 4.510909][ T1] __alloc_pages_nodemask+0x2a4/0x269c +[ 4.511347][ T1] alloc_page_interleave+0x38/0x20c +[ 4.511743][ T1] alloc_pages_current+0x2d0/0x364 +[ 4.512105][ T1] atomic_pool_expand+0x3d0/0x624 +[ 4.512488][ T1] __dma_atomic_pool_init+0xc4/0x164 +[ 4.512885][ T1] dma_atomic_pool_init+0x128/0x1e4 +[ 4.513243][ T1] do_one_initcall+0x18c/0xce0 +[ 4.513604][ T1] kernel_init_freeable+0x868/0x8f4 +[ 4.513974][ T1] kernel_init+0x1c/0x210 +[ 4.514319][ T1] ret_from_fork+0x10/0x34 +[ 4.515141][ T1] Code: d53b00e1 12000c21 d2800082 9ac12041 (d50b7420) +[ 4.516455][ T1] ---[ end trace 1a4edb2d835d8567 ]--- +[ 4.517220][ T1] Kernel panic - not syncing: synchronous external abort: Fatal exception +[ 4.517808][ T1] SMP: stopping secondary CPUs +[ 4.519265][ T1] Rebooting in 86400 seconds.. diff --git a/pkg/report/testdata/linux/report/542 b/pkg/report/testdata/linux/report/542 new file mode 100644 index 000000000..2d46a065a --- /dev/null +++ b/pkg/report/testdata/linux/report/542 @@ -0,0 +1,40 @@ +TITLE: kernel panic: bad mode + +[ 0.000000][ C0] Bad mode in Synchronous Abort handler detected on CPU0, code 0x34000001 -- BTI +[ 0.000000][ C0] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.2 #24 +[ 0.000000][ C0] Hardware name: linux,dummy-virt (DT) +[ 0.000000][ C0] pstate: 80000489 (Nzcv daIf -PAN -UAO -TCO BTYPE=jc) +[ 0.000000][ C0] pc : update_cpu_capabilities+0x0/0x3c0 +[ 0.000000][ C0] lr : init_cpu_features+0xbc4/0xbec +[ 0.000000][ C0] sp : ffffa00019957eb0 +[ 0.000000][ C0] x29: ffffa00019957eb0 x28: ffffa00019a1e828 +[ 0.000000][ C0] x27: 0000000000000000 x26: ffffa00017a2feb0 +[ 0.000000][ C0] x25: 00000000001be000 x24: ffffa00019a1d3e0 +[ 0.000000][ C0] x23: 0000000000000023 x22: 1ffff40003895fc4 +[ 0.000000][ C0] x21: 0000000000000002 x20: 0000000000000001 +[ 0.000000][ C0] x19: ffffa0001c4af880 x18: 0000000000000001 +[ 0.000000][ C0] x17: 0000000000000000 x16: ffffa000100424c0 +[ 0.000000][ C0] x15: 0000000000000000 x14: ffff000000000000 +[ 0.000000][ C0] x13: 0000000000000000 x12: 0000000000000000 +[ 0.000000][ C0] x11: 0000000000000000 x10: 0000000000000000 +[ 0.000000][ C0] x9 : 0000000000000000 x8 : 0000000000000000 +[ 0.000000][ C0] x7 : 0000000000000000 x6 : ffffa000194ca9b0 +[ 0.000000][ C0] x5 : ffffa00019a06380 x4 : 0000000000000000 +[ 0.000000][ C0] x3 : ffffa000196ba1cc x2 : 000000000000003a +[ 0.000000][ C0] x1 : ffffa00019a06380 x0 : 0000000000000005 +[ 0.000000][ C0] Kernel panic - not syncing: bad mode +[ 0.000000][ C0] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.2 #24 +[ 0.000000][ C0] Hardware name: linux,dummy-virt (DT) +[ 0.000000][ C0] Call trace: +[ 0.000000][ C0] dump_backtrace+0x0/0x4f4 +[ 0.000000][ C0] show_stack+0x30/0x80 +[ 0.000000][ C0] dump_stack+0x1f0/0x294 +[ 0.000000][ C0] panic+0x484/0x8b8 +[ 0.000000][ C0] bad_mode+0x14c/0x1b4 +[ 0.000000][ C0] el1_inv+0x3c/0x5c +[ 0.000000][ C0] el1_sync_handler+0x80/0x170 +[ 0.000000][ C0] el1_sync+0x80/0x100 +[ 0.000000][ C0] update_cpu_capabilities+0x0/0x3c0 +[ 0.000000][ C0] cpuinfo_store_boot_cpu+0xc4/0xd4 +[ 0.000000][ C0] smp_prepare_boot_cpu+0x98/0xac +[ 0.000000][ C0] start_kernel+0xc8/0x4f4 diff --git a/pkg/report/testdata/linux/report/543 b/pkg/report/testdata/linux/report/543 new file mode 100644 index 000000000..6e5fd2c55 --- /dev/null +++ b/pkg/report/testdata/linux/report/543 @@ -0,0 +1,65 @@ +TITLE: inconsistent lock state in vprintk_emit + +[ 0.000000][ C0] ================================ +[ 0.000000][ C0] WARNING: inconsistent lock state +[ 0.000000][ C0] 5.10.2 #24 Not tainted +[ 0.000000][ C0] -------------------------------- +[ 0.000000][ C0] inconsistent {INITIAL USE} -> {IN-NMI} usage. +[ 0.000000][ C0] swapper/0 [HC1[1]:SC0[0]:HE0:SE1] takes: +[ 0.000000][ C0] ffffa00019b517b8 (logbuf_lock){....}-{2:2}, at: vprintk_emit+0xec/0x510 +[ 0.000000][ C0] {INITIAL USE} state was registered at: +[ 0.000000][ C0] __lock_acquire+0x5ac/0x58f0 +[ 0.000000][ C0] lock_acquire.part.0+0x330/0x820 +[ 0.000000][ C0] lock_acquire+0x94/0xc0 +[ 0.000000][ C0] _raw_spin_lock+0x90/0x120 +[ 0.000000][ C0] vprintk_emit+0xec/0x510 +[ 0.000000][ C0] vprintk_default+0x48/0x60 +[ 0.000000][ C0] vprintk_func+0x394/0x730 +[ 0.000000][ C0] printk+0xbc/0xf4 +[ 0.000000][ C0] smp_setup_processor_id+0x44/0x50 +[ 0.000000][ C0] start_kernel+0x40/0x4f4 +[ 0.000000][ C0] irq event stamp: 0 +[ 0.000000][ C0] hardirqs last enabled at (0): [<0000000000000000>] 0x0 +[ 0.000000][ C0] hardirqs last disabled at (0): [<0000000000000000>] 0x0 +[ 0.000000][ C0] softirqs last enabled at (0): [<0000000000000000>] 0x0 +[ 0.000000][ C0] softirqs last disabled at (0): [<0000000000000000>] 0x0 +[ 0.000000][ C0] +[ 0.000000][ C0] other info that might help us debug this: +[ 0.000000][ C0] Possible unsafe locking scenario: +[ 0.000000][ C0] +[ 0.000000][ C0] CPU0 +[ 0.000000][ C0] ---- +[ 0.000000][ C0] lock(logbuf_lock); +[ 0.000000][ C0] <Interrupt> +[ 0.000000][ C0] lock(logbuf_lock); +[ 0.000000][ C0] +[ 0.000000][ C0] *** DEADLOCK *** +[ 0.000000][ C0] +[ 0.000000][ C0] no locks held by swapper/0. +[ 0.000000][ C0] +[ 0.000000][ C0] stack backtrace: +[ 0.000000][ C0] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.2 #24 +[ 0.000000][ C0] Hardware name: linux,dummy-virt (DT) +[ 0.000000][ C0] Call trace: +[ 0.000000][ C0] dump_backtrace+0x0/0x4f4 +[ 0.000000][ C0] show_stack+0x30/0x80 +[ 0.000000][ C0] dump_stack+0x1f0/0x294 +[ 0.000000][ C0] print_usage_bug.part.0+0x52c/0x550 +[ 0.000000][ C0] lock_acquire.part.0+0x610/0x820 +[ 0.000000][ C0] lock_acquire+0x94/0xc0 +[ 0.000000][ C0] _raw_spin_lock+0x90/0x120 +[ 0.000000][ C0] vprintk_emit+0xec/0x510 +[ 0.000000][ C0] vprintk_deferred+0x48/0x6c +[ 0.000000][ C0] printk_deferred+0xbc/0xf4 +[ 0.000000][ C0] __printk_safe_flush+0x4ac/0x4e0 +[ 0.000000][ C0] printk_safe_flush+0xb4/0x1f0 +[ 0.000000][ C0] printk_safe_flush_on_panic+0x104/0x130 +[ 0.000000][ C0] panic+0x4a4/0x8b8 +[ 0.000000][ C0] bad_mode+0x14c/0x1b4 +[ 0.000000][ C0] el1_inv+0x3c/0x5c +[ 0.000000][ C0] el1_sync_handler+0x80/0x170 +[ 0.000000][ C0] el1_sync+0x80/0x100 +[ 0.000000][ C0] update_cpu_capabilities+0x0/0x3c0 +[ 0.000000][ C0] cpuinfo_store_boot_cpu+0xc4/0xd4 +[ 0.000000][ C0] smp_prepare_boot_cpu+0x98/0xac +[ 0.000000][ C0] start_kernel+0xc8/0x4f4 diff --git a/pkg/report/testdata/linux/report/544 b/pkg/report/testdata/linux/report/544 new file mode 100644 index 000000000..81412d812 --- /dev/null +++ b/pkg/report/testdata/linux/report/544 @@ -0,0 +1,17 @@ +TITLE: BUG: using smp_processor_id() in preemptible code in get_cache_size + +[ 74.831966][ T4088] BUG: using smp_processor_id() in preemptible [00000000] code: dhcpcd/4088 +[ 74.832401][ T4088] caller is debug_smp_processor_id+0x1c/0x26 +[ 74.832713][ T4088] CPU: 1 PID: 4088 Comm: dhcpcd Not tainted 5.10.2 #18 +[ 74.833035][ T4088] Call Trace: +[ 74.833253][ T4088] [<ffffffe00020383c>] walk_stackframe+0x0/0xaa +[ 74.833582][ T4088] [<ffffffe002141ec4>] show_stack+0x32/0x3e +[ 74.833878][ T4088] [<ffffffe002150a3a>] dump_stack+0x8e/0xb4 +[ 74.834212][ T4088] [<ffffffe002173288>] check_preemption_disabled+0xaa/0xac +[ 74.834564][ T4088] [<ffffffe0021732a6>] debug_smp_processor_id+0x1c/0x26 +[ 74.834906][ T4088] [<ffffffe000203fd0>] get_cache_size+0x18/0x68 +[ 74.835234][ T4088] [<ffffffe00046a262>] load_elf_binary+0x8a4/0xeee +[ 74.835557][ T4088] [<ffffffe0003eb4a2>] bprm_execve+0x352/0x7da +[ 74.835881][ T4088] [<ffffffe0003ec17e>] do_execveat_common+0x10c/0x150 +[ 74.836242][ T4088] [<ffffffe0003ece8e>] sys_execve+0x24/0x30 +[ 74.836546][ T4088] [<ffffffe000201ba0>] ret_from_syscall+0x0/0x2 diff --git a/pkg/report/testdata/linux/report/545 b/pkg/report/testdata/linux/report/545 new file mode 100644 index 000000000..de9c0f427 --- /dev/null +++ b/pkg/report/testdata/linux/report/545 @@ -0,0 +1,33 @@ +# TOOD: should be in __virt_to_phys, or somewhere down the stack, but there is no stack and no PC symbol. +TITLE: WARNING in ret_from_exception + +[ 75.189488][ T4090] ------------[ cut here ]------------ +[ 75.190329][ T4090] virt_to_phys used for non-linear address: 0000000022abe3fe (0xffffffd01514e038) +[ 75.192486][ T4090] WARNING: CPU: 1 PID: 4090 at arch/riscv/mm/physaddr.c:16 __virt_to_phys+0x44/0x5c +[ 75.193022][ T4090] Modules linked in: +[ 75.193507][ T4090] CPU: 1 PID: 4090 Comm: dhcpcd Not tainted 5.10.2 #18 +[ 75.193884][ T4090] epc: ffffffe000207654 ra : ffffffe000207654 sp : ffffffe00b777cd0 +[ 75.194301][ T4090] gp : ffffffe003833fd0 tp : ffffffe00d271580 t0 : ffffffe00b777a18 +[ 75.195975][ T4090] t1 : 0000000000000003 t2 : 0000000000000000 s0 : ffffffe00b777cf0 +[ 75.197705][ T4090] s1 : ffffffd01514e038 a0 : 000000000000004f a1 : ffffffe002d76078 +[ 75.199321][ T4090] a2 : ffffffe07ed74eb8 a3 : 0000000000000000 a4 : 8b259e98d0dda300 +[ 75.201422][ T4090] a5 : 8b259e98d0dda300 a6 : 0000000000000002 a7 : ffffffe00026c9e2 +[ 75.202998][ T4090] s2 : 0000000000000040 s3 : 0000000000000000 s4 : ffffffd01514e078 +[ 75.204827][ T4090] s5 : 0000003fffd885e0 s6 : 0000000000000000 s7 : ffffffe00383c0d0 +[ 75.206432][ T4090] s8 : ffffffe00db6b000 s9 : 000000000004e000 s10: 000000000004d648 +[ 75.208186][ T4090] s11: ffffffffffffffff t3 : ffffffe00384c4e8 t4 : ffffffe00383c3d4 +[ 75.209939][ T4090] t5 : 0000000000000108 t6 : ffffffe00b777a08 +[ 75.212122][ T4090] status: 0000000000000120 badaddr: 0000000000000000 cause: 0000000000000003 +[ 75.213908][ T4090] Kernel panic - not syncing: panic_on_warn set ... +[ 75.215283][ T4090] CPU: 1 PID: 4090 Comm: dhcpcd Not tainted 5.10.2 #18 +[ 75.216759][ T4090] Call Trace: +[ 75.217460][ T4090] [<ffffffe00020383c>] walk_stackframe+0x0/0xaa +[ 75.218679][ T4090] [<ffffffe002141ec4>] show_stack+0x32/0x3e +[ 75.219851][ T4090] [<ffffffe002150a3a>] dump_stack+0x8e/0xb4 +[ 75.221087][ T4090] [<ffffffe0021420e2>] panic+0x10c/0x2e0 +[ 75.221402][ T4090] [<ffffffe00020fd1e>] __warn+0x88/0x108 +[ 75.221704][ T4090] [<ffffffe000ccca62>] report_bug+0x84/0x102 +[ 75.222008][ T4090] [<ffffffe000203766>] do_trap_break+0x56/0xa2 +[ 75.222332][ T4090] [<ffffffe000201bae>] ret_from_exception+0x0/0x10 +[ 75.223024][ T4090] SMP: stopping secondary CPUs +[ 75.225137][ T4090] Rebooting in 86400 seconds.. |
