Date
July 4, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.950978] ================================================================== [ 31.951063] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 31.951131] Read of size 1 at addr ffff800080bc7b4a by task kunit_try_catch/286 [ 31.951185] [ 31.951218] CPU: 1 UID: 0 PID: 286 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT [ 31.951309] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.951338] Hardware name: linux,dummy-virt (DT) [ 31.951374] Call trace: [ 31.951400] show_stack+0x20/0x38 (C) [ 31.951452] dump_stack_lvl+0x8c/0xd0 [ 31.951501] print_report+0x310/0x608 [ 31.951563] kasan_report+0xdc/0x128 [ 31.951614] __asan_report_load1_noabort+0x20/0x30 [ 31.951665] kasan_alloca_oob_right+0x2dc/0x340 [ 31.951716] kunit_try_run_case+0x170/0x3f0 [ 31.951766] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.951824] kthread+0x328/0x630 [ 31.951870] ret_from_fork+0x10/0x20 [ 31.952267] [ 31.952294] The buggy address belongs to stack of task kunit_try_catch/286 [ 31.952630] [ 31.952667] The buggy address belongs to the virtual mapping at [ 31.952667] [ffff800080bc0000, ffff800080bc9000) created by: [ 31.952667] kernel_clone+0x150/0x7a8 [ 31.952834] [ 31.952863] The buggy address belongs to the physical page: [ 31.952911] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105aee [ 31.952980] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.953203] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 31.953273] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 31.953380] page dumped because: kasan: bad access detected [ 31.953500] [ 31.953597] Memory state around the buggy address: [ 31.953654] ffff800080bc7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.953843] ffff800080bc7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.953921] >ffff800080bc7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 31.954031] ^ [ 31.954106] ffff800080bc7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 31.954161] ffff800080bc7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 31.954458] ==================================================================
[ 26.973513] ================================================================== [ 26.974009] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 26.974612] Read of size 1 at addr ffff88810622fc4a by task kunit_try_catch/302 [ 26.975256] [ 26.975410] CPU: 1 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) [ 26.975472] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.975487] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.975513] Call Trace: [ 26.975529] <TASK> [ 26.975553] dump_stack_lvl+0x73/0xb0 [ 26.975588] print_report+0xd1/0x650 [ 26.975614] ? __virt_addr_valid+0x1db/0x2d0 [ 26.975643] ? kasan_alloca_oob_right+0x329/0x390 [ 26.975667] ? kasan_addr_to_slab+0x11/0xa0 [ 26.975695] ? kasan_alloca_oob_right+0x329/0x390 [ 26.975719] kasan_report+0x141/0x180 [ 26.975743] ? kasan_alloca_oob_right+0x329/0x390 [ 26.975773] __asan_report_load1_noabort+0x18/0x20 [ 26.975800] kasan_alloca_oob_right+0x329/0x390 [ 26.975825] ? finish_task_switch.isra.0+0x153/0x700 [ 26.975851] ? try_to_take_rt_mutex+0xfde/0xff0 [ 26.975877] ? trace_hardirqs_on+0x37/0xe0 [ 26.975906] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 26.975934] ? __schedule+0x10cc/0x2b60 [ 26.975960] ? __pfx_read_tsc+0x10/0x10 [ 26.975986] ? ktime_get_ts64+0x86/0x230 [ 26.976014] kunit_try_run_case+0x1a5/0x480 [ 26.976043] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.976070] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.976096] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.976124] ? __kthread_parkme+0x82/0x180 [ 26.976147] ? preempt_count_sub+0x50/0x80 [ 26.976172] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.976199] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.976232] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.976259] kthread+0x337/0x6f0 [ 26.976281] ? trace_preempt_on+0x20/0xc0 [ 26.976304] ? __pfx_kthread+0x10/0x10 [ 26.976328] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.976352] ? calculate_sigpending+0x7b/0xa0 [ 26.976379] ? __pfx_kthread+0x10/0x10 [ 26.976413] ret_from_fork+0x116/0x1d0 [ 26.976435] ? __pfx_kthread+0x10/0x10 [ 26.976457] ret_from_fork_asm+0x1a/0x30 [ 26.976492] </TASK> [ 26.976506] [ 26.987902] The buggy address belongs to stack of task kunit_try_catch/302 [ 26.988261] [ 26.988681] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10622f [ 26.989022] flags: 0x200000000000000(node=0|zone=2) [ 26.989210] raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000 [ 26.989773] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 26.990313] page dumped because: kasan: bad access detected [ 26.990532] [ 26.990603] Memory state around the buggy address: [ 26.990846] ffff88810622fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.991146] ffff88810622fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.991368] >ffff88810622fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 26.991939] ^ [ 26.992126] ffff88810622fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 26.992358] ffff88810622fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 26.993004] ==================================================================