From f034b65deaeaffccf8d1053ec2701f941ec6dd18 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 14 Jan 2019 17:41:04 +0100 Subject: pkg/report: add parsing of trusty crashes Update #933 --- pkg/report/testdata/linux/guilty/42 | 25 +++++++++++++++++++++ pkg/report/testdata/linux/report/353 | 42 ++++++++++++++++++++++++++++++++++++ pkg/report/testdata/linux/report/354 | 41 +++++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 pkg/report/testdata/linux/guilty/42 create mode 100644 pkg/report/testdata/linux/report/353 create mode 100644 pkg/report/testdata/linux/report/354 (limited to 'pkg/report/testdata/linux') diff --git a/pkg/report/testdata/linux/guilty/42 b/pkg/report/testdata/linux/guilty/42 new file mode 100644 index 000000000..4e2b61919 --- /dev/null +++ b/pkg/report/testdata/linux/guilty/42 @@ -0,0 +1,25 @@ +FILE: drivers/trusty/trusty.c + +trusty: app-mgmt-test-srv2: 146: Channel wait failed: 0(4) +trusty: panic (caller 0xffffffffe000fbb8): ASSERT FAILED at (trusty/kernel/lib/trusty/ipc.c:472): !list_in_list(&chan->node) +trusty: HALT: (reason = 9) +trusty crashed[ 388.879777] ------------[ cut here ]------------ +WARNING: CPU: 0 PID: 36 at drivers/trusty/trusty.c:215 trusty_std_call32+0x220/0x240 drivers/trusty/trusty.c:215 +Kernel panic - not syncing: panic_on_warn set ... + +CPU: 0 PID: 36 Comm: kworker/0:1 Not tainted 4.9.22-622951-geb1249894645c-dirty #15 +Hardware name: linux,dummy-virt (DT) +Workqueue: trusty-nop-wq nop_work_func +Call trace: +[] dump_backtrace+0x0/0x440 arch/arm64/kernel/traps.c:69 +[] show_stack+0x20/0x30 arch/arm64/kernel/traps.c:219 +[] __dump_stack lib/dump_stack.c:15 [inline] +[] dump_stack+0x100/0x150 lib/dump_stack.c:51 +[] panic+0x208/0x3e0 kernel/panic.c:179 +[] __warn+0x280/0x2f0 kernel/panic.c:542 +[] report_bug+0x1a8/0x270 lib/bug.c:170 +[] bug_handler.part.2+0x3c/0xf8 arch/arm64/kernel/traps.c:682 +[] bug_handler+0x48/0x68 arch/arm64/kernel/traps.c:679 +[] call_break_hook arch/arm64/kernel/debug-monitors.c:300 [inline] +[] brk_handler+0x1e4/0x2e0 arch/arm64/kernel/debug-monitors.c:316 +[] do_debug_exception+0xd0/0x230 arch/arm64/mm/fault.c:665 diff --git a/pkg/report/testdata/linux/report/353 b/pkg/report/testdata/linux/report/353 new file mode 100644 index 000000000..73a61ec76 --- /dev/null +++ b/pkg/report/testdata/linux/report/353 @@ -0,0 +1,42 @@ +TITLE: trusty: ASSERT FAILED: !list_in_list(&chan->node) + +[ 1117.120317] trusty: app-mgmt-test-srv2: 146: Channel wait failed: 0(4) +[ 1117.129650] trusty: panic (caller [ 1117.140866] trusty: 0xffffffffe000fbb8): ASSERT FAILED at (trusty/kernel/lib/trusty/ipc.c:472): !list_in_list(&chan->node) +[ 1117.141580] trusty: HALT: (reason = 9) +[ 1117.182531] trusty crashed[ 1117.184796] ------------[ cut here ]------------ +[ 1117.186349] WARNING: CPU: 0 PID: 4 at drivers/trusty/trusty.c:215 trusty_std_call32+0x220/0x240 +[ 1117.187036] Kernel panic - not syncing: panic_on_warn set ... +[ 1117.187036] +[ 1117.188047] CPU: 0 PID: 4 Comm: kworker/0:0 Not tainted 4.9.22-622951-geb1249894645c-dirty #15 +[ 1117.188495] Hardware name: linux,dummy-virt (DT) +[ 1117.189224] Workqueue: trusty-nop-wq nop_work_func +[ 1117.189958] Call trace: +[ 1117.190313] [] dump_backtrace+0x0/0x440 +[ 1117.190782] [] show_stack+0x20/0x30 +[ 1117.191180] [] dump_stack+0x100/0x150 +[ 1117.191568] [] panic+0x208/0x3e0 +[ 1117.191959] [] __warn+0x280/0x2f0 +[ 1117.192355] [] report_bug+0x1a8/0x270 +[ 1117.192772] [] bug_handler.part.2+0x3c/0xf8 +[ 1117.193201] [] bug_handler+0x48/0x68 +[ 1117.193601] [] brk_handler+0x1e4/0x2e0 +[ 1117.194006] [] do_debug_exception+0xd0/0x230 +[ 1117.194498] Exception stack(0xffff8000738e37f0 to 0xffff8000738e3920) +[ 1117.195005] 37e0: 00000000fffffff5 0001000000000000 +[ 1117.195491] 3800: ffff8000738e3a30 ffff2000093a2ed0 0000000080000145 000000000000003d +[ 1117.196038] 3820: 1ffff0000e71c75c ffff200009c8a180 ffff8000728cb5a0 ffff200009c8a140 +[ 1117.196568] 3840: 0000000041b58ab3 ffff200009e881a8 ffff2000080819a8 0000000000000000 +[ 1117.197038] 3860: 1ffff0000e71c75c ffff200009c8a180 ffff8000728cb5a0 0000000000000000 +[ 1117.197501] 3880: ffff8000738a4b4c 0000000000000000 0000000000000000 000000000e714969 +[ 1117.197965] 38a0: 0000000000000000 0000000000000000 ffff8000738e3a30 ffff8000738e3a30 +[ 1117.198429] 38c0: ffff8000738e39f0 00000000ffffffc8 ffff8000738e3910 ffff20000832e7f0 +[ 1117.198952] 38e0: ffff10000e71c72a ffff200009c8a140 ffff8000738e3a30 ffff8000738e3a30 +[ 1117.199416] 3900: 000000000000000e ffff8000738a4380 0000000000000000 1ffff0000e714969 +[ 1117.199954] [] el1_dbg+0x18/0x74 +[ 1117.200329] [] nop_work_func+0xd8/0x180 +[ 1117.200726] [] process_one_work+0x75c/0x11a0 +[ 1117.201130] [] worker_thread+0x3f4/0x1080 +[ 1117.201523] [] kthread+0x258/0x2b8 +[ 1117.201894] [] ret_from_fork+0x10/0x50 +[ 1117.203628] Kernel Offset: disabled +[ 1117.203954] Memory Limit: none diff --git a/pkg/report/testdata/linux/report/354 b/pkg/report/testdata/linux/report/354 new file mode 100644 index 000000000..c2a277f53 --- /dev/null +++ b/pkg/report/testdata/linux/report/354 @@ -0,0 +1,41 @@ +TITLE: trusty: ASSERT FAILED: list_in_list(&ref->ref_node) + +[ 740.950561] trusty: panic (caller 0xffffffffe000fbd0): DEBUG ASSERT FAILED at (trusty/kernel/include/shared/lk/reflist.h:63): list_in_list(&ref->ref_node) +[ 740.951499] trusty: HALT: (reason = 9) +[ 740.964262] trusty crashed[ 740.966534] ------------[ cut here ]------------ +[ 740.968400] WARNING: CPU: 0 PID: 36 at drivers/trusty/trusty.c:215 trusty_std_call32+0x220/0x240 +[ 740.969096] Kernel panic - not syncing: panic_on_warn set ... +[ 740.969096] +[ 740.970247] CPU: 0 PID: 36 Comm: kworker/0:1 Not tainted 4.9.22-622951-geb1249894645c-dirty #15 +[ 740.970818] Hardware name: linux,dummy-virt (DT) +[ 740.971636] Workqueue: trusty-nop-wq nop_work_func +[ 740.972429] Call trace: +[ 740.972895] [] dump_backtrace+0x0/0x440 +[ 740.973426] [] show_stack+0x20/0x30 +[ 740.973891] [] dump_stack+0x100/0x150 +[ 740.974456] [] panic+0x208/0x3e0 +[ 740.974977] [] __warn+0x280/0x2f0 +[ 740.975577] [] report_bug+0x1a8/0x270 +[ 740.976211] [] bug_handler.part.2+0x3c/0xf8 +[ 740.976808] [] bug_handler+0x48/0x68 +[ 740.977374] [] brk_handler+0x1e4/0x2e0 +[ 740.977947] [] do_debug_exception+0xd0/0x230 +[ 740.978686] Exception stack(0xffff8000739f37f0 to 0xffff8000739f3920) +[ 740.979605] 37e0: 00000000fffffff5 0001000000000000 +[ 740.980306] 3800: ffff8000739f3a30 ffff2000093a2ed0 0000000080000145 000000000000003d +[ 740.980779] 3820: 1ffff0000e73e75c ffff200009c8a180 ffff8000729835a0 ffff200009c8a140 +[ 740.981252] 3840: 0000000041b58ab3 ffff200009e881a8 ffff2000080819a8 0000000000000000 +[ 740.981719] 3860: 1ffff0000e73e75c ffff200009c8a180 ffff8000729835a0 0000000000000000 +[ 740.982176] 3880: ffff8000739dcb4c 0000000000000000 0000000000000000 000000000e73b969 +[ 740.982640] 38a0: 0000000000000000 0000000000000000 ffff8000739f3a30 ffff8000739f3a30 +[ 740.983101] 38c0: ffff8000739f39f0 00000000ffffffc8 ffff8000739f3910 ffff20000832e7f0 +[ 740.983578] 38e0: ffff10000e73e72a ffff200009c8a140 ffff8000739f3a30 ffff8000739f3a30 +[ 740.984038] 3900: 000000000000000e ffff8000739dc380 0000000000000000 1ffff0000e73b969 +[ 740.984586] [] el1_dbg+0x18/0x74 +[ 740.984970] [] nop_work_func+0xd8/0x180 +[ 740.985366] [] process_one_work+0x75c/0x11a0 +[ 740.985777] [] worker_thread+0x3f4/0x1080 +[ 740.986163] [] kthread+0x258/0x2b8 +[ 740.986581] [] ret_from_fork+0x10/0x50 +[ 740.987974] Kernel Offset: disabled +[ 740.988352] Memory Limit: none -- cgit mrf-deployment