diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-02-02 11:07:47 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-02-02 19:34:24 +0100 |
| commit | 624dad51316f9973e1349b6c71e789737d1e00d9 (patch) | |
| tree | 9c912fde3aff6bc66f9bc8aed590304fe21ad4b1 /pkg/report/testdata/linux | |
| parent | 19e096872235dc01a7748e7891d1ba60c5a7b592 (diff) | |
pkg/report: support parsing KFENCE reports
Diffstat (limited to 'pkg/report/testdata/linux')
| -rw-r--r-- | pkg/report/testdata/linux/report/216 | 1 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/5 | 1 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/590 | 92 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/591 | 48 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/592 | 49 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/593 | 57 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/594 | 31 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/595 | 24 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/596 | 23 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/597 | 23 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/598 | 40 |
11 files changed, 389 insertions, 0 deletions
diff --git a/pkg/report/testdata/linux/report/216 b/pkg/report/testdata/linux/report/216 index 45b33b2ee..883adbfc7 100644 --- a/pkg/report/testdata/linux/report/216 +++ b/pkg/report/testdata/linux/report/216 @@ -1,4 +1,5 @@ TITLE: KASAN: invalid-free in xt_free_table_info +ALT: invalid-free in xt_free_table_info [ 368.542732] ================================================================== [ 368.550228] BUG: KASAN: double-free or invalid-free in kvfree+0x36/0x60 diff --git a/pkg/report/testdata/linux/report/5 b/pkg/report/testdata/linux/report/5 index 368511f04..e68d5a310 100644 --- a/pkg/report/testdata/linux/report/5 +++ b/pkg/report/testdata/linux/report/5 @@ -1,5 +1,6 @@ # Test that we strip the report after "Kernel panic - not syncing" line. TITLE: KASAN: invalid-free in selinux_tun_dev_free_security +ALT: invalid-free in selinux_tun_dev_free_security clock_gettime(0x0, &(0x7f0000475000-0x10)={<r2=>0x0, <r3=>0x0}) write$sndseq(0xffffffffffffffff, &(0x7f0000929000-0x150)=[{0x3197a6bf, 0x0, 0x4, 0x100, @tick=0x6, {0x7, 0x6c}, {0x2, 0x9}, @connect={{0x1ff, 0x1}, {0x3ff, 0x118c}}}, {0x100000000, 0x2, 0xfffffffffffffffa, 0x2, @tick=0x5d0, {0xf556, 0x7}, {0x3, 0x1000}, @quote={{0x5, 0xfffffffffffffff7}, 0x401, &(0x7f000084a000)={0x10000, 0x9d, 0x8, 0x4, @tick=0x336f, {0x5, 0x1d}, {0x8, 0x7}, @time=@time={0x0, 0x989680}}}}, {0x200, 0x0, 0x99a, 0x6, @tick=0x1, {0x1, 0x158}, {0x200, 0x5}, @connect={{0x8, 0x4}, {0xf2, 0x100000000}}}, {0x40, 0xfffffffffffffffa, 0x100000000, 0x5, @time={r2, r3+10000000}, {0x7, 0x5}, {0x3, 0x0}, @raw32={[0x2, 0x225, 0x1]}}, {0x75f, 0x8, 0x80, 0x80, @tick=0x6, {0x9, 0x9}, {0x1, 0x6}, @queue={0x7, {0x7, 0x6}}}, {0x80, 0x6, 0x3f, 0x80000001, @time={0x0, 0x0}, {0x3f, 0x9}, {0x96, 0xfffffffffffff800}, @raw8={"e5660e9238e6f58b35448e94"}}, {0x6, 0x6f8, 0x3, 0x6, @time={0x77359400, 0x0}, {0x100000001, 0x0}, {0xe870, 0x7}, @connect={{0x4, 0x80}, {0x7ff, 0xfffffffffffffffa}}}], 0x150) diff --git a/pkg/report/testdata/linux/report/590 b/pkg/report/testdata/linux/report/590 new file mode 100644 index 000000000..b597e66b8 --- /dev/null +++ b/pkg/report/testdata/linux/report/590 @@ -0,0 +1,92 @@ +TITLE: KFENCE: use-after-free in find_uprobe +ALT: bad-access in find_uprobe + +[ 221.211609][ T9991] ================================================================== +[ 221.219706][ T9991] BUG: KFENCE: use-after-free read in memcmp+0x57/0x150 +[ 221.219706][ T9991] +[ 221.229282][ T9991] Use-after-free read at 0xffff88823bc8cf68 (in kfence-#69): +[ 221.236645][ T9991] memcpy+0x57/0x150 +[ 221.236645][ T9991] find_uprobe+0x57/0x150 +[ 221.236676][ T9991] uprobe_apply+0x26/0x130 +[ 221.236701][ T9991] uprobe_perf_close+0x41e/0x6f0 +[ 221.236726][ T9991] trace_uprobe_register+0x3e7/0x880 +[ 221.236750][ T9991] perf_uprobe_destroy+0x98/0x130 +[ 221.236772][ T9991] _free_event+0x2ee/0x1380 +[ 221.271061][ T9991] perf_event_release_kernel+0xa24/0xe00 +[ 221.276812][ T9991] perf_release+0x33/0x40 +[ 221.281146][ T9991] __fput+0x283/0x920 +[ 221.285136][ T9991] task_work_run+0xdd/0x190 +[ 221.289648][ T9991] exit_to_user_mode_prepare+0x249/0x250 +[ 221.295289][ T9991] syscall_exit_to_user_mode+0x19/0x50 +[ 221.300765][ T9991] entry_SYSCALL_64_after_hwframe+0x44/0xa9 +[ 221.306667][ T9991] +[ 221.308981][ T9991] kfence-#69 [0xffff88823bc8ce00-0xffff88823bc8cfa7, size=424, cache=kmalloc-512] allocated by task 9997: +[ 221.320273][ T9991] __uprobe_register+0x19c/0x850 +[ 221.325219][ T9991] probe_event_enable+0x357/0xa00 +[ 221.330249][ T9991] trace_uprobe_register+0x443/0x880 +[ 221.335544][ T9991] perf_trace_event_init+0x549/0xa20 +[ 221.340833][ T9991] perf_uprobe_init+0x16f/0x210 +[ 221.345687][ T9991] perf_uprobe_event_init+0xff/0x1c0 +[ 221.351154][ T9991] perf_try_init_event+0x12a/0x560 +[ 221.356278][ T9991] perf_event_alloc.part.0+0xe3b/0x3960 +[ 221.361830][ T9991] __do_sys_perf_event_open+0x647/0x2e60 +[ 221.367488][ T9991] do_syscall_64+0x2d/0x70 +[ 221.371915][ T9991] entry_SYSCALL_64_after_hwframe+0x44/0xa9 +[ 221.377815][ T9991] +[ 221.377815][ T9991] freed by task 9997: +[ 221.383987][ T9991] put_uprobe+0x13b/0x190 +[ 221.388320][ T9991] uprobe_apply+0xfc/0x130 +[ 221.392745][ T9991] trace_uprobe_register+0x5c9/0x880 +[ 221.398040][ T9991] perf_trace_event_init+0x17a/0xa20 +[ 221.403332][ T9991] perf_uprobe_init+0x16f/0x210 +[ 221.408186][ T9991] perf_uprobe_event_init+0xff/0x1c0 +[ 221.413482][ T9991] perf_try_init_event+0x12a/0x560 +[ 221.418594][ T9991] perf_event_alloc.part.0+0xe3b/0x3960 +[ 221.424147][ T9991] __do_sys_perf_event_open+0x647/0x2e60 +[ 221.429786][ T9991] do_syscall_64+0x2d/0x70 +[ 221.434212][ T9991] entry_SYSCALL_64_after_hwframe+0x44/0xa9 +[ 221.440115][ T9991] +[ 221.442441][ T9991] CPU: 1 PID: 9991 Comm: syz-executor.4 Not tainted 5.11.0-rc6-next-20210201-syzkaller #0 +[ 221.452339][ T9991] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 +[ 221.462394][ T9991] RIP: 0010:find_uprobe+0x57/0x150 +[ 221.467522][ T9991] Code: 00 00 48 bd 00 00 00 00 00 fc ff df e8 c2 3d df ff 49 8d bc 24 68 01 00 00 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 d0 00 00 00 <49> 8b 9c 24 68 01 00 00 49 39 dd 72 76 e8 97 3d df ff 49 39 dd 0f +[ 221.487136][ T9991] RSP: 0018:ffffc900022dfbf0 EFLAGS: 00010246 +[ 221.493198][ T9991] RAX: 1ffff110477919ed RBX: ffff888012f58d70 RCX: 0000000000000000 +[ 221.501190][ T9991] RDX: ffff88801e21d400 RSI: ffffffff819396ee RDI: ffff88823bc8cf68 +[ 221.509163][ T9991] RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000003 +[ 221.517337][ T9991] R10: fffff5200045bf70 R11: 0000000000000001 R12: ffff88823bc8ce00 +[ 221.525312][ T9991] R13: ffff88806e946738 R14: 0000000000000000 R15: ffffed10025eb1b0 +[ 221.533292][ T9991] FS: 0000000002787400(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 +[ 221.542233][ T9991] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 +[ 221.548825][ T9991] CR2: ffff88823bc8cf68 CR3: 00000000255bc000 CR4: 00000000001506e0 +[ 221.556801][ T9991] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 +[ 221.564769][ T9991] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 +[ 221.572830][ T9991] Call Trace: +[ 221.576109][ T9991] uprobe_apply+0x26/0x130 +[ 221.580545][ T9991] uprobe_perf_close+0x41e/0x6f0 +[ 221.585518][ T9991] trace_uprobe_register+0x3e7/0x880 +[ 221.590815][ T9991] ? rcu_read_lock_sched_held+0x3a/0x70 +[ 221.596367][ T9991] ? kfree+0x69a/0x7b0 +[ 221.600449][ T9991] perf_uprobe_destroy+0x98/0x130 +[ 221.605485][ T9991] ? perf_uprobe_init+0x210/0x210 +[ 221.610518][ T9991] _free_event+0x2ee/0x1380 +[ 221.615032][ T9991] perf_event_release_kernel+0xa24/0xe00 +[ 221.620691][ T9991] ? fsnotify_first_mark+0x1f0/0x1f0 +[ 221.625989][ T9991] ? __perf_event_exit_context+0x170/0x170 +[ 221.631814][ T9991] ? __sanitizer_cov_trace_const_cmp2+0x22/0x80 +[ 221.638068][ T9991] perf_release+0x33/0x40 +[ 221.642406][ T9991] __fput+0x283/0x920 +[ 221.646397][ T9991] ? perf_event_release_kernel+0xe00/0xe00 +[ 221.652216][ T9991] task_work_run+0xdd/0x190 +[ 221.656732][ T9991] exit_to_user_mode_prepare+0x249/0x250 +[ 221.662377][ T9991] syscall_exit_to_user_mode+0x19/0x50 +[ 221.667856][ T9991] entry_SYSCALL_64_after_hwframe+0x44/0xa9 +[ 221.673760][ T9991] RIP: 0033:0x418e1b +[ 221.677655][ T9991] Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 +[ 221.697266][ T9991] RSP: 002b:00007ffd31e83ed0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 +[ 221.705689][ T9991] RAX: 0000000000000000 RBX: 0000000000000007 RCX: 0000000000418e1b +[ 221.713665][ T9991] RDX: 0000000000000000 RSI: 0000000000574938 RDI: 0000000000000006 +[ 221.721639][ T9991] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b317278a8 +[ 221.729614][ T9991] R10: 00007ffd31e83fc0 R11: 0000000000000293 R12: 00000000000003e8 +[ 221.737588][ T9991] R13: 0000000000035f54 R14: 000000000056bf60 R15: 000000000056bf60 +[ 221.745571][ T9991] ================================================================== diff --git a/pkg/report/testdata/linux/report/591 b/pkg/report/testdata/linux/report/591 new file mode 100644 index 000000000..43e9e1fe9 --- /dev/null +++ b/pkg/report/testdata/linux/report/591 @@ -0,0 +1,48 @@ +TITLE: KFENCE: out-of-bounds in test_out_of_bounds_read +ALT: bad-access in test_out_of_bounds_read + +[ 3.317089] ================================================================== +[ 3.317855] BUG: KFENCE: out-of-bounds read in test_out_of_bounds_read+0xa6/0x234 +[ 3.317855] +[ 3.318783] Out-of-bounds read at 0xffff8c2aae231fff (1B left of kfence-#24): +[ 3.319521] test_out_of_bounds_read+0xa6/0x234 +[ 3.320001] kunit_try_run_case+0x51/0x90 +[ 3.320425] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 3.320989] kthread+0x166/0x1a0 +[ 3.321340] ret_from_fork+0x22/0x30 +[ 3.321719] +[ 3.321886] kfence-#24 [0xffff8c2aae232000-0xffff8c2aae23201f, size=32, cache=kmalloc-32] allocated by task 110: +[ 3.322934] test_alloc+0xf0/0x6ff +[ 3.323294] test_out_of_bounds_read+0x9b/0x234 +[ 3.323768] kunit_try_run_case+0x51/0x90 +[ 3.324189] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 3.324751] kthread+0x166/0x1a0 +[ 3.325092] ret_from_fork+0x22/0x30 +[ 3.325475] +[ 3.325640] CPU: 3 PID: 110 Comm: kunit_try_catch Not tainted 5.11.0-rc2+ #1 +[ 3.326368] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 +[ 3.327229] RIP: 0010:test_out_of_bounds_read+0xa6/0x234 +[ 3.327784] Code: 58 54 e8 29 e6 20 ff b9 01 00 00 00 48 89 de 4c 89 e7 ba c0 0c 00 00 45 31 f6 e8 4f e3 ff ff 49 89 c5 48 8d 40 ff 48 89 45 88 <41> 8a 45 ff 48 b8 01 00 00 00 44 01 00 00 48 89 45 a0 8b 05 12 b7 +[ 3.329702] RSP: 0000:ffffa226013dfe40 EFLAGS: 00010246 +[ 3.330250] RAX: ffff8c2aae231fff RBX: 0000000000000020 RCX: ffffffffa1f5add7 +[ 3.330986] RDX: ffff8c2783f0dd00 RSI: 0000000000000000 RDI: ffffa22600013d48 +[ 3.331721] RBP: ffffa226013dfec8 R08: 0000000000000160 R09: ffffffffa2ccf996 +[ 3.332561] R10: 0000000000000017 R11: 0000000000000002 R12: ffffa22600013d48 +[ 3.333420] R13: ffff8c2aae232000 R14: 0000000000000000 R15: ffffa22600013d60 +[ 3.334271] FS: 0000000000000000(0000) GS:ffff8c2aafcc0000(0000) knlGS:0000000000000000 +[ 3.335235] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 +[ 3.335935] CR2: ffff8c2aae231fff CR3: 000000034740c001 CR4: 0000000000770ee0 +[ 3.336793] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 +[ 3.337653] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 +[ 3.338509] PKRU: 55555554 +[ 3.338842] Call Trace: +[ 3.339145] ? test_out_of_bounds_write+0x148/0x148 +[ 3.339737] ? preempt_count_add+0x63/0xa0 +[ 3.340238] ? test_init_on_free+0x10/0x10 +[ 3.340735] kunit_try_run_case+0x51/0x90 +[ 3.341227] ? kunit_try_catch_throw+0x20/0x20 +[ 3.341769] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 3.342425] kthread+0x166/0x1a0 +[ 3.342821] ? __kthread_bind_mask+0x80/0x80 +[ 3.343339] ret_from_fork+0x22/0x30 +[ 3.343776] ================================================================== diff --git a/pkg/report/testdata/linux/report/592 b/pkg/report/testdata/linux/report/592 new file mode 100644 index 000000000..87237d927 --- /dev/null +++ b/pkg/report/testdata/linux/report/592 @@ -0,0 +1,49 @@ +TITLE: KFENCE: out-of-bounds in test_out_of_bounds_write +ALT: bad-access in test_out_of_bounds_write + +[ 3.980910] ================================================================== +[ 3.981709] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x8e/0x148 +[ 3.981709] +[ 3.982719] Out-of-bounds write at 0xffff8c2aae23bfff (1B left of kfence-#29): +[ 3.983469] test_out_of_bounds_write+0x8e/0x148 +[ 3.983955] kunit_try_run_case+0x51/0x90 +[ 3.984375] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 3.984938] kthread+0x166/0x1a0 +[ 3.985309] ret_from_fork+0x22/0x30 +[ 3.985689] +[ 3.985854] kfence-#29 [0xffff8c2aae23c000-0xffff8c2aae23c01f, size=32, cache=kmalloc-32] allocated by task 112: +[ 3.986913] test_alloc+0xf0/0x6ff +[ 3.987274] test_out_of_bounds_write+0x79/0x148 +[ 3.987760] kunit_try_run_case+0x51/0x90 +[ 3.988181] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 3.988744] kthread+0x166/0x1a0 +[ 3.989086] ret_from_fork+0x22/0x30 +[ 3.989469] +[ 3.989634] CPU: 5 PID: 112 Comm: kunit_try_catch Tainted: G B 5.11.0-rc2+ #1 +[ 3.990505] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 +[ 3.991367] RIP: 0010:test_out_of_bounds_write+0x8e/0x148 +[ 3.991932] Code: 4c 89 e7 45 31 ed ba c0 0c 00 00 be 20 00 00 00 e8 b9 e4 ff ff 48 89 c3 48 8d 40 ff 48 89 45 90 48 b8 01 00 00 00 5c 01 00 00 <c6> 43 ff 2a 48 89 45 a8 8b 05 7c b8 2f 01 4c 89 65 a0 48 c7 45 b0 +[ 3.993973] RSP: 0000:ffffa226013efe48 EFLAGS: 00010246 +[ 3.994609] RAX: 0000015c00000001 RBX: ffff8c2aae23c000 RCX: ffffffffa1f5add7 +[ 3.995473] RDX: ffff8c2783f0dd00 RSI: 0000000000000000 RDI: ffffa22600013d48 +[ 3.996333] RBP: ffffa226013efec8 R08: 0000000000000160 R09: ffffffffa2ccf996 +[ 3.997205] R10: 0000000000000017 R11: 0000000000000002 R12: ffffa22600013d48 +[ 3.998071] R13: 0000000000000000 R14: 0000000000000000 R15: ffffa22600013d60 +[ 3.998935] FS: 0000000000000000(0000) GS:ffff8c2aafd40000(0000) knlGS:0000000000000000 +[ 3.999912] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 +[ 4.000611] CR2: ffff8c2aae23bfff CR3: 000000034740c001 CR4: 0000000000770ee0 +[ 4.001499] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 +[ 4.002359] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 +[ 4.003219] PKRU: 55555554 +[ 4.003552] Call Trace: +[ 4.003856] ? test_use_after_free_read+0x143/0x143 +[ 4.004451] ? preempt_count_add+0x63/0xa0 +[ 4.004956] ? _raw_spin_lock_irqsave+0x14/0x40 +[ 4.005514] ? test_init_on_free+0x10/0x10 +[ 4.006016] kunit_try_run_case+0x51/0x90 +[ 4.006508] ? kunit_try_catch_throw+0x20/0x20 +[ 4.007055] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.007714] kthread+0x166/0x1a0 +[ 4.008113] ? __kthread_bind_mask+0x80/0x80 +[ 4.008638] ret_from_fork+0x22/0x30 +[ 4.009079] ================================================================== diff --git a/pkg/report/testdata/linux/report/593 b/pkg/report/testdata/linux/report/593 new file mode 100644 index 000000000..3522c263a --- /dev/null +++ b/pkg/report/testdata/linux/report/593 @@ -0,0 +1,57 @@ +TITLE: KFENCE: use-after-free in test_use_after_free_read +ALT: bad-access in test_use_after_free_read + +[ 4.252938] ================================================================== +[ 4.253783] BUG: KFENCE: use-after-free read in test_use_after_free_read+0xb3/0x143 +[ 4.253783] +[ 4.254748] Use-after-free read at 0xffff8c2aae240000 (in kfence-#31): +[ 4.255440] test_use_after_free_read+0xb3/0x143 +[ 4.255936] kunit_try_run_case+0x51/0x90 +[ 4.256366] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.256941] kthread+0x166/0x1a0 +[ 4.257309] ret_from_fork+0x22/0x30 +[ 4.257697] +[ 4.257865] kfence-#31 [0xffff8c2aae240000-0xffff8c2aae24001f, size=32, cache=kmalloc-32] allocated by task 114: +[ 4.258952] test_alloc+0xf0/0x6ff +[ 4.259320] test_use_after_free_read+0x76/0x143 +[ 4.259809] kunit_try_run_case+0x51/0x90 +[ 4.260238] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.260807] kthread+0x166/0x1a0 +[ 4.261157] ret_from_fork+0x22/0x30 +[ 4.261540] +[ 4.261540] freed by task 114: +[ 4.262037] test_use_after_free_read+0xa8/0x143 +[ 4.262530] kunit_try_run_case+0x51/0x90 +[ 4.262964] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.263539] kthread+0x166/0x1a0 +[ 4.263938] ret_from_fork+0x22/0x30 +[ 4.264371] +[ 4.264559] CPU: 5 PID: 114 Comm: kunit_try_catch Tainted: G B 5.11.0-rc2+ #1 +[ 4.265578] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 +[ 4.266585] RIP: 0010:test_use_after_free_read+0xb3/0x143 +[ 4.267244] Code: e8 a9 e8 20 ff 48 89 de 4c 89 ef e8 ee 32 31 ff eb 0d e8 97 e8 20 ff 48 89 df e8 cf f6 30 ff e8 8a e8 20 ff 48 8b 45 90 31 db <8a> 00 4c 89 65 a0 48 b8 01 00 00 00 6d 01 00 00 48 89 45 a8 8b 05 +[ 4.269503] RSP: 0000:ffffa226013ffe48 EFLAGS: 00010246 +[ 4.270134] RAX: ffff8c2aae240000 RBX: 0000000000000000 RCX: ffffffffa1f5c136 +[ 4.271007] RDX: ffff8c2783f0dd00 RSI: 0000000000000000 RDI: 00000000ffffffff +[ 4.271871] RBP: ffffa226013ffec8 R08: ffffffffa2957020 R09: ffffffffa2957020 +[ 4.272736] R10: 0000000000000017 R11: 0000000000000002 R12: ffffa22600013d48 +[ 4.273601] R13: 0000000000000000 R14: 0000000000000000 R15: ffffa22600013d60 +[ 4.274464] FS: 0000000000000000(0000) GS:ffff8c2aafd40000(0000) knlGS:0000000000000000 +[ 4.275436] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 +[ 4.276134] CR2: ffff8c2aae240000 CR3: 000000034740c001 CR4: 0000000000770ee0 +[ 4.276994] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 +[ 4.277859] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 +[ 4.278717] PKRU: 55555554 +[ 4.279049] Call Trace: +[ 4.279351] ? test_double_free+0x171/0x171 +[ 4.279863] ? preempt_count_add+0x63/0xa0 +[ 4.280362] ? _raw_spin_lock_irqsave+0x14/0x40 +[ 4.280912] ? test_init_on_free+0x10/0x10 +[ 4.281417] kunit_try_run_case+0x51/0x90 +[ 4.281922] ? kunit_try_catch_throw+0x20/0x20 +[ 4.282477] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.283143] kthread+0x166/0x1a0 +[ 4.283547] ? __kthread_bind_mask+0x80/0x80 +[ 4.284079] ret_from_fork+0x22/0x30 +[ 4.284534] ================================================================== + diff --git a/pkg/report/testdata/linux/report/594 b/pkg/report/testdata/linux/report/594 new file mode 100644 index 000000000..1eef359e1 --- /dev/null +++ b/pkg/report/testdata/linux/report/594 @@ -0,0 +1,31 @@ +TITLE: KFENCE: invalid free in test_double_free +ALT: invalid-free in test_double_free + +[ 4.524933] ================================================================== +[ 4.525732] BUG: KFENCE: invalid free in test_double_free+0xdc/0x171 +[ 4.525732] +[ 4.526553] Invalid free of 0xffff8c2aae244fe0 (in kfence-#33): +[ 4.527185] test_double_free+0xdc/0x171 +[ 4.527602] kunit_try_run_case+0x51/0x90 +[ 4.528032] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.528607] kthread+0x166/0x1a0 +[ 4.528958] ret_from_fork+0x22/0x30 +[ 4.529356] +[ 4.529524] kfence-#33 [0xffff8c2aae244fe0-0xffff8c2aae244fff, size=32, cache=kmalloc-32] allocated by task 116: +[ 4.530593] test_alloc+0xf0/0x6ff +[ 4.530958] test_double_free+0x76/0x171 +[ 4.531374] kunit_try_run_case+0x51/0x90 +[ 4.531803] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.532374] kthread+0x166/0x1a0 +[ 4.532719] ret_from_fork+0x22/0x30 +[ 4.533105] +[ 4.533105] freed by task 116: +[ 4.533599] test_double_free+0xa8/0x171 +[ 4.534015] kunit_try_run_case+0x51/0x90 +[ 4.534440] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.535015] kthread+0x166/0x1a0 +[ 4.535364] ret_from_fork+0x22/0x30 +[ 4.535750] +[ 4.535914] CPU: 5 PID: 116 Comm: kunit_try_catch Tainted: G B 5.11.0-rc2+ #1 +[ 4.536800] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 +[ 4.537714] ================================================================== diff --git a/pkg/report/testdata/linux/report/595 b/pkg/report/testdata/linux/report/595 new file mode 100644 index 000000000..aff67e2e7 --- /dev/null +++ b/pkg/report/testdata/linux/report/595 @@ -0,0 +1,24 @@ +TITLE: KFENCE: invalid free in test_invalid_addr_free +ALT: invalid-free in test_invalid_addr_free + +[ 4.764967] ================================================================== +[ 4.765977] BUG: KFENCE: invalid free in test_invalid_addr_free+0xb4/0x17e +[ 4.765977] +[ 4.767161] Invalid free of 0xffff8c2aae248001 (in kfence-#35): +[ 4.767986] test_invalid_addr_free+0xb4/0x17e +[ 4.768607] kunit_try_run_case+0x51/0x90 +[ 4.769182] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.769936] kthread+0x166/0x1a0 +[ 4.770390] ret_from_fork+0x22/0x30 +[ 4.770895] +[ 4.771113] kfence-#35 [0xffff8c2aae248000-0xffff8c2aae24801f, size=32, cache=kmalloc-32] allocated by task 118: +[ 4.772241] test_alloc+0xf0/0x6ff +[ 4.772610] test_invalid_addr_free+0x7e/0x17e +[ 4.773107] kunit_try_run_case+0x51/0x90 +[ 4.773542] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 4.774119] kthread+0x166/0x1a0 +[ 4.774469] ret_from_fork+0x22/0x30 +[ 4.774855] +[ 4.775024] CPU: 6 PID: 118 Comm: kunit_try_catch Tainted: G B 5.11.0-rc2+ #1 +[ 4.775917] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 +[ 4.776796] ================================================================== diff --git a/pkg/report/testdata/linux/report/596 b/pkg/report/testdata/linux/report/596 new file mode 100644 index 000000000..bdebab961 --- /dev/null +++ b/pkg/report/testdata/linux/report/596 @@ -0,0 +1,23 @@ +TITLE: KFENCE: memory corruption in test_corruption + +[ 4.996949] ================================================================== +[ 4.997809] BUG: KFENCE: memory corruption in test_corruption+0xb3/0x20f +[ 4.997809] +[ 4.998745] Corrupted memory at 0xffff8c2aae24c020 [ 0x2a . . . . . . . . . . . . . . . ] (in kfence-#37): +[ 4.999848] test_corruption+0xb3/0x20f +[ 5.000290] kunit_try_run_case+0x51/0x90 +[ 5.000751] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 5.001374] kthread+0x166/0x1a0 +[ 5.001754] ret_from_fork+0x22/0x30 +[ 5.002169] +[ 5.002349] kfence-#37 [0xffff8c2aae24c000-0xffff8c2aae24c01f, size=32, cache=kmalloc-32] allocated by task 120: +[ 5.003501] test_alloc+0xf0/0x6ff +[ 5.003894] test_corruption+0x79/0x20f +[ 5.004343] kunit_try_run_case+0x51/0x90 +[ 5.004811] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 5.005435] kthread+0x166/0x1a0 +[ 5.005809] ret_from_fork+0x22/0x30 +[ 5.006221] +[ 5.006401] CPU: 5 PID: 120 Comm: kunit_try_catch Tainted: G B 5.11.0-rc2+ #1 +[ 5.007361] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 +[ 5.008308] ================================================================== diff --git a/pkg/report/testdata/linux/report/597 b/pkg/report/testdata/linux/report/597 new file mode 100644 index 000000000..2194e0ea2 --- /dev/null +++ b/pkg/report/testdata/linux/report/597 @@ -0,0 +1,23 @@ +TITLE: KFENCE: memory corruption in kunit_try_run_case + +[ 10.396949] ================================================================== +[ 10.397720] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0xef/0x184 +[ 10.397720] +[ 10.398697] Corrupted memory at 0xffff8c2aae2b2ff9 [ 0xac . . . . . . ] (in kfence-#88): +[ 10.399538] test_kmalloc_aligned_oob_write+0xef/0x184 +[ 10.400076] kunit_try_run_case+0x51/0x90 +[ 10.400497] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 10.401060] kthread+0x166/0x1a0 +[ 10.401413] ret_from_fork+0x22/0x30 +[ 10.401795] +[ 10.401963] kfence-#88 [0xffff8c2aae2b2fb0-0xffff8c2aae2b2ff8, size=73, cache=kmalloc-96] allocated by task 127: +[ 10.403045] test_alloc+0xf0/0x6ff +[ 10.403419] test_kmalloc_aligned_oob_write+0x57/0x184 +[ 10.403971] kunit_try_run_case+0x51/0x90 +[ 10.404399] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 10.404974] kthread+0x166/0x1a0 +[ 10.405328] ret_from_fork+0x22/0x30 +[ 10.405716] +[ 10.405882] CPU: 5 PID: 127 Comm: kunit_try_catch Tainted: G B 5.11.0-rc2+ #1 +[ 10.406772] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 +[ 10.407663] ================================================================== diff --git a/pkg/report/testdata/linux/report/598 b/pkg/report/testdata/linux/report/598 new file mode 100644 index 000000000..6be9c76c4 --- /dev/null +++ b/pkg/report/testdata/linux/report/598 @@ -0,0 +1,40 @@ +TITLE: KFENCE: invalid read in test_invalid_access +ALT: bad-access in test_invalid_access + +[ 10.613348] ================================================================== +[ 10.614532] BUG: KFENCE: invalid read in test_invalid_access+0x48/0xe0 +[ 10.614532] +[ 10.615358] Invalid read at 0xffff8c2aae20000a: +[ 10.615830] test_invalid_access+0x48/0xe0 +[ 10.616267] kunit_try_run_case+0x51/0x90 +[ 10.616689] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 10.617294] kthread+0x166/0x1a0 +[ 10.617640] ret_from_fork+0x22/0x30 +[ 10.618021] +[ 10.618186] CPU: 5 PID: 130 Comm: kunit_try_catch Tainted: G B 5.11.0-rc2+ #1 +[ 10.619067] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 +[ 10.619937] RIP: 0010:test_invalid_access+0x48/0xe0 +[ 10.620455] Code: e8 31 c0 e8 ca 78 ef ff 48 8b 05 03 70 48 01 c6 45 a0 00 48 c7 45 90 d0 30 27 a1 48 8d 50 0a c7 45 88 03 00 00 00 48 89 55 98 <0f> b6 40 0a 48 b8 01 00 00 00 7c 02 00 00 48 89 45 b0 8b 05 b4 49 +[ 10.622396] RSP: 0000:ffffa2260147fe50 EFLAGS: 00010293 +[ 10.622946] RAX: ffff8c2aae200000 RBX: ffffffffa12726a0 RCX: ffffffffa12730f6 +[ 10.623695] RDX: ffff8c2aae20000a RSI: 0000000000000000 RDI: ffffa22600013d48 +[ 10.624433] RBP: ffffa2260147fec8 R08: 0000000000000000 R09: 000000000000006d +[ 10.625179] R10: ffff8c2aafd695c0 R11: 0000000000000000 R12: ffffa22600013d48 +[ 10.626001] R13: 0000000000000000 R14: 0000000000000000 R15: ffffa22600013d60 +[ 10.626857] FS: 0000000000000000(0000) GS:ffff8c2aafd40000(0000) knlGS:0000000000000000 +[ 10.627823] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 +[ 10.628516] CR2: ffff8c2aae20000a CR3: 000000034740c001 CR4: 0000000000770ee0 +[ 10.629388] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 +[ 10.630252] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 +[ 10.631116] PKRU: 55555554 +[ 10.631451] Call Trace: +[ 10.631755] ? report_matches.part.0+0x3a0/0x3a0 +[ 10.632322] ? preempt_count_add+0x63/0xa0 +[ 10.632827] ? _raw_spin_lock_irqsave+0x14/0x40 +[ 10.633389] kunit_try_run_case+0x51/0x90 +[ 10.633881] ? kunit_try_catch_throw+0x20/0x20 +[ 10.634424] kunit_generic_run_threadfn_adapter+0x16/0x30 +[ 10.635080] kthread+0x166/0x1a0 +[ 10.635478] ? __kthread_bind_mask+0x80/0x80 +[ 10.636000] ret_from_fork+0x22/0x30 +[ 10.636437] ================================================================== |
