Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.980663] ================================================================== [ 18.980869] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 18.980929] Read of size 1 at addr ffff800080ab7b4a by task kunit_try_catch/253 [ 18.980981] [ 18.981014] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 18.981119] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.981149] Hardware name: linux,dummy-virt (DT) [ 18.981181] Call trace: [ 18.981209] show_stack+0x20/0x38 (C) [ 18.981260] dump_stack_lvl+0x8c/0xd0 [ 18.981311] print_report+0x310/0x608 [ 18.981356] kasan_report+0xdc/0x128 [ 18.981407] __asan_report_load1_noabort+0x20/0x30 [ 18.981459] kasan_alloca_oob_right+0x2dc/0x340 [ 18.981508] kunit_try_run_case+0x170/0x3f0 [ 18.981554] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.981607] kthread+0x328/0x630 [ 18.981652] ret_from_fork+0x10/0x20 [ 18.981701] [ 18.981726] The buggy address belongs to stack of task kunit_try_catch/253 [ 18.981787] [ 18.981838] The buggy address belongs to the virtual mapping at [ 18.981838] [ffff800080ab0000, ffff800080ab9000) created by: [ 18.981838] kernel_clone+0x150/0x7a8 [ 18.981954] [ 18.981978] The buggy address belongs to the physical page: [ 18.982022] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10795e [ 18.982095] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.982197] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 18.982256] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 18.982401] page dumped because: kasan: bad access detected [ 18.982687] [ 18.982718] Memory state around the buggy address: [ 18.982755] ffff800080ab7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.982803] ffff800080ab7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.982880] >ffff800080ab7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 18.982918] ^ [ 18.982967] ffff800080ab7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 18.983095] ffff800080ab7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 18.983138] ==================================================================
[ 18.853702] ================================================================== [ 18.854177] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 18.855934] Read of size 1 at addr ffff888103c4fc4a by task kunit_try_catch/270 [ 18.856645] [ 18.857018] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 18.857297] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.857318] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.857353] Call Trace: [ 18.857381] <TASK> [ 18.857416] dump_stack_lvl+0x73/0xb0 [ 18.857461] print_report+0xd1/0x650 [ 18.857487] ? __virt_addr_valid+0x1db/0x2d0 [ 18.857511] ? kasan_alloca_oob_right+0x329/0x390 [ 18.857535] ? kasan_addr_to_slab+0x11/0xa0 [ 18.857557] ? kasan_alloca_oob_right+0x329/0x390 [ 18.857581] kasan_report+0x141/0x180 [ 18.857604] ? kasan_alloca_oob_right+0x329/0x390 [ 18.857632] __asan_report_load1_noabort+0x18/0x20 [ 18.857654] kasan_alloca_oob_right+0x329/0x390 [ 18.857732] ? pick_task_fair+0xc9/0x340 [ 18.857784] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 18.857832] ? trace_hardirqs_on+0x37/0xe0 [ 18.857867] ? __schedule+0x207f/0x2b60 [ 18.857891] ? __pfx_read_tsc+0x10/0x10 [ 18.857913] ? ktime_get_ts64+0x86/0x230 [ 18.857939] kunit_try_run_case+0x1a5/0x480 [ 18.857965] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.857988] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.858012] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.858053] ? __kthread_parkme+0x82/0x180 [ 18.858177] ? preempt_count_sub+0x50/0x80 [ 18.858202] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.858228] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.858253] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.858299] kthread+0x337/0x6f0 [ 18.858320] ? trace_preempt_on+0x20/0xc0 [ 18.858343] ? __pfx_kthread+0x10/0x10 [ 18.858364] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.858386] ? calculate_sigpending+0x7b/0xa0 [ 18.858412] ? __pfx_kthread+0x10/0x10 [ 18.858434] ret_from_fork+0x116/0x1d0 [ 18.858453] ? __pfx_kthread+0x10/0x10 [ 18.858475] ret_from_fork_asm+0x1a/0x30 [ 18.858507] </TASK> [ 18.858520] [ 18.871991] The buggy address belongs to stack of task kunit_try_catch/270 [ 18.872791] [ 18.873017] The buggy address belongs to the physical page: [ 18.873614] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c4f [ 18.874488] flags: 0x200000000000000(node=0|zone=2) [ 18.875250] raw: 0200000000000000 ffffea00040f13c8 ffffea00040f13c8 0000000000000000 [ 18.876017] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 18.876464] page dumped because: kasan: bad access detected [ 18.877217] [ 18.877377] Memory state around the buggy address: [ 18.877622] ffff888103c4fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.878394] ffff888103c4fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.878751] >ffff888103c4fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 18.880100] ^ [ 18.880491] ffff888103c4fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 18.881492] ffff888103c4fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 18.881938] ==================================================================