Date
July 5, 2025, 5:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.309409] ================================================================== [ 20.309488] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 20.309545] Read of size 1 at addr ffff800080a97b5f by task kunit_try_catch/251 [ 20.309595] [ 20.309649] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.309733] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.309768] Hardware name: linux,dummy-virt (DT) [ 20.309800] Call trace: [ 20.309824] show_stack+0x20/0x38 (C) [ 20.310201] dump_stack_lvl+0x8c/0xd0 [ 20.310300] print_report+0x310/0x608 [ 20.310511] kasan_report+0xdc/0x128 [ 20.310576] __asan_report_load1_noabort+0x20/0x30 [ 20.310839] kasan_alloca_oob_left+0x2b8/0x310 [ 20.310983] kunit_try_run_case+0x170/0x3f0 [ 20.311082] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.311250] kthread+0x328/0x630 [ 20.311373] ret_from_fork+0x10/0x20 [ 20.311577] [ 20.311740] The buggy address belongs to stack of task kunit_try_catch/251 [ 20.311915] [ 20.311975] The buggy address belongs to the virtual mapping at [ 20.311975] [ffff800080a90000, ffff800080a99000) created by: [ 20.311975] kernel_clone+0x150/0x7a8 [ 20.312210] [ 20.312309] The buggy address belongs to the physical page: [ 20.312453] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107939 [ 20.312567] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.312722] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.312794] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.313098] page dumped because: kasan: bad access detected [ 20.313202] [ 20.313273] Memory state around the buggy address: [ 20.313457] ffff800080a97a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.313516] ffff800080a97a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.313749] >ffff800080a97b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 20.313915] ^ [ 20.313999] ffff800080a97b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 20.314163] ffff800080a97c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.314252] ==================================================================
[ 13.411870] ================================================================== [ 13.412406] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380 [ 13.412737] Read of size 1 at addr ffff8881039e7c3f by task kunit_try_catch/269 [ 13.413131] [ 13.413248] CPU: 0 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.413291] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.413305] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.413325] Call Trace: [ 13.413339] <TASK> [ 13.413355] dump_stack_lvl+0x73/0xb0 [ 13.413390] print_report+0xd1/0x650 [ 13.413411] ? __virt_addr_valid+0x1db/0x2d0 [ 13.413433] ? kasan_alloca_oob_left+0x320/0x380 [ 13.413468] ? kasan_addr_to_slab+0x11/0xa0 [ 13.413489] ? kasan_alloca_oob_left+0x320/0x380 [ 13.413511] kasan_report+0x141/0x180 [ 13.413533] ? kasan_alloca_oob_left+0x320/0x380 [ 13.413560] __asan_report_load1_noabort+0x18/0x20 [ 13.413584] kasan_alloca_oob_left+0x320/0x380 [ 13.413607] ? finish_task_switch.isra.0+0x153/0x700 [ 13.413630] ? ww_mutex_unlock+0x6e/0x150 [ 13.413652] ? trace_hardirqs_on+0x37/0xe0 [ 13.413676] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 13.413701] ? __schedule+0x10cc/0x2b60 [ 13.413724] ? __pfx_read_tsc+0x10/0x10 [ 13.413745] ? ktime_get_ts64+0x86/0x230 [ 13.413768] kunit_try_run_case+0x1a5/0x480 [ 13.413793] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.413815] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.413838] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.413861] ? __kthread_parkme+0x82/0x180 [ 13.413881] ? preempt_count_sub+0x50/0x80 [ 13.413904] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.413927] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.413950] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.413973] kthread+0x337/0x6f0 [ 13.413993] ? trace_preempt_on+0x20/0xc0 [ 13.414015] ? __pfx_kthread+0x10/0x10 [ 13.414048] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.414069] ? calculate_sigpending+0x7b/0xa0 [ 13.414109] ? __pfx_kthread+0x10/0x10 [ 13.414131] ret_from_fork+0x116/0x1d0 [ 13.414149] ? __pfx_kthread+0x10/0x10 [ 13.414170] ret_from_fork_asm+0x1a/0x30 [ 13.414257] </TASK> [ 13.414273] [ 13.421938] The buggy address belongs to stack of task kunit_try_catch/269 [ 13.422182] [ 13.422256] The buggy address belongs to the physical page: [ 13.422437] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039e7 [ 13.422971] flags: 0x200000000000000(node=0|zone=2) [ 13.423212] raw: 0200000000000000 ffffea00040e79c8 ffffea00040e79c8 0000000000000000 [ 13.423562] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.423906] page dumped because: kasan: bad access detected [ 13.424109] [ 13.424199] Memory state around the buggy address: [ 13.424424] ffff8881039e7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.424789] ffff8881039e7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.425069] >ffff8881039e7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 13.425423] ^ [ 13.425679] ffff8881039e7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 13.425972] ffff8881039e7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.426326] ==================================================================