Date
Dec. 9, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.877071] ================================================================== [ 26.878180] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2e4/0x348 [ 26.879429] Read of size 1 at addr ffff800080b77bea by task kunit_try_catch/241 [ 26.880846] [ 26.881158] CPU: 1 UID: 0 PID: 241 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 26.882510] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.883161] Hardware name: linux,dummy-virt (DT) [ 26.883813] Call trace: [ 26.884286] show_stack+0x20/0x38 (C) [ 26.884939] dump_stack_lvl+0x8c/0xd0 [ 26.885581] print_report+0x2fc/0x5e0 [ 26.886244] kasan_report+0xc8/0x118 [ 26.886881] __asan_report_load1_noabort+0x20/0x30 [ 26.887637] kasan_alloca_oob_right+0x2e4/0x348 [ 26.888340] kunit_try_run_case+0x14c/0x3d0 [ 26.889046] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.889856] kthread+0x24c/0x2d0 [ 26.890300] ret_from_fork+0x10/0x20 [ 26.890789] [ 26.891076] The buggy address belongs to stack of task kunit_try_catch/241 [ 26.891882] [ 26.892172] The buggy address belongs to the virtual mapping at [ 26.892172] [ffff800080b70000, ffff800080b79000) created by: [ 26.892172] kernel_clone+0x140/0x788 [ 26.894184] [ 26.894578] The buggy address belongs to the physical page: [ 26.895341] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1012e6 [ 26.896398] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.897304] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 26.898260] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 26.899160] page dumped because: kasan: bad access detected [ 26.899886] [ 26.900320] Memory state around the buggy address: [ 26.901023] ffff800080b77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.901876] ffff800080b77b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.902739] >ffff800080b77b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 26.903558] ^ [ 26.904343] ffff800080b77c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 26.905241] ffff800080b77c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 26.906084] ==================================================================
[ 27.225804] ================================================================== [ 27.227623] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x328/0x390 [ 27.228467] Read of size 1 at addr ffff888102b9fcaa by task kunit_try_catch/260 [ 27.229555] [ 27.229782] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 27.231231] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.232029] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.233206] Call Trace: [ 27.234195] <TASK> [ 27.235033] dump_stack_lvl+0x73/0xb0 [ 27.235662] print_report+0xd1/0x640 [ 27.236065] ? __virt_addr_valid+0x1db/0x2d0 [ 27.236817] ? kasan_addr_to_slab+0x11/0xa0 [ 27.237790] kasan_report+0x102/0x140 [ 27.238188] ? kasan_alloca_oob_right+0x328/0x390 [ 27.239463] ? kasan_alloca_oob_right+0x328/0x390 [ 27.240224] __asan_report_load1_noabort+0x18/0x20 [ 27.241582] kasan_alloca_oob_right+0x328/0x390 [ 27.242124] ? trace_raw_output_sched_switch+0xa0/0x250 [ 27.243273] ? __schedule+0xc70/0x27e0 [ 27.243735] ? trace_hardirqs_on+0x37/0xe0 [ 27.244484] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 27.245375] ? __schedule+0xc70/0x27e0 [ 27.245845] ? __pfx_read_tsc+0x10/0x10 [ 27.246560] ? ktime_get_ts64+0x86/0x230 [ 27.247370] kunit_try_run_case+0x1b3/0x490 [ 27.247988] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.248881] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 27.249486] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.250483] ? __kthread_parkme+0x82/0x160 [ 27.251599] ? preempt_count_sub+0x50/0x80 [ 27.252366] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.252822] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.253688] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.254651] kthread+0x257/0x310 [ 27.255315] ? __pfx_kthread+0x10/0x10 [ 27.256162] ret_from_fork+0x41/0x80 [ 27.256648] ? __pfx_kthread+0x10/0x10 [ 27.257593] ret_from_fork_asm+0x1a/0x30 [ 27.258476] </TASK> [ 27.258721] [ 27.258866] The buggy address belongs to stack of task kunit_try_catch/260 [ 27.259737] [ 27.260446] The buggy address belongs to the physical page: [ 27.261528] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b9f [ 27.262305] flags: 0x200000000000000(node=0|zone=2) [ 27.263054] raw: 0200000000000000 ffffea00040ae7c8 ffffea00040ae7c8 0000000000000000 [ 27.264094] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 27.264746] page dumped because: kasan: bad access detected [ 27.265984] [ 27.266184] Memory state around the buggy address: [ 27.266688] ffff888102b9fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.268558] ffff888102b9fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.269486] >ffff888102b9fc80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 27.270752] ^ [ 27.271167] ffff888102b9fd00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 27.272012] ffff888102b9fd80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 27.273126] ==================================================================