Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.860079] ================================================================== [ 21.860230] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 21.860304] Read of size 1 at addr ffff800080a87b4a by task kunit_try_catch/254 [ 21.860504] [ 21.860548] CPU: 1 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.860888] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.860967] Hardware name: linux,dummy-virt (DT) [ 21.861023] Call trace: [ 21.861069] show_stack+0x20/0x38 (C) [ 21.861380] dump_stack_lvl+0x8c/0xd0 [ 21.861552] print_report+0x310/0x608 [ 21.861675] kasan_report+0xdc/0x128 [ 21.861779] __asan_report_load1_noabort+0x20/0x30 [ 21.861874] kasan_alloca_oob_right+0x2dc/0x340 [ 21.861997] kunit_try_run_case+0x170/0x3f0 [ 21.862051] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.862350] kthread+0x328/0x630 [ 21.862477] ret_from_fork+0x10/0x20 [ 21.862714] [ 21.862777] The buggy address belongs to stack of task kunit_try_catch/254 [ 21.862892] [ 21.862941] The buggy address belongs to the virtual mapping at [ 21.862941] [ffff800080a80000, ffff800080a89000) created by: [ 21.862941] kernel_clone+0x150/0x7a8 [ 21.863079] [ 21.863105] The buggy address belongs to the physical page: [ 21.863159] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106ea1 [ 21.863465] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.863652] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 21.863769] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.863857] page dumped because: kasan: bad access detected [ 21.863918] [ 21.864013] Memory state around the buggy address: [ 21.864119] ffff800080a87a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.864214] ffff800080a87a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.864262] >ffff800080a87b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 21.864429] ^ [ 21.864555] ffff800080a87b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 21.864794] ffff800080a87c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 21.864899] ==================================================================
[ 14.559358] ================================================================== [ 14.560657] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 14.561499] Read of size 1 at addr ffff888102c27c4a by task kunit_try_catch/270 [ 14.562055] [ 14.562467] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.562520] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.562532] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.562555] Call Trace: [ 14.562568] <TASK> [ 14.562586] dump_stack_lvl+0x73/0xb0 [ 14.562621] print_report+0xd1/0x650 [ 14.562644] ? __virt_addr_valid+0x1db/0x2d0 [ 14.562667] ? kasan_alloca_oob_right+0x329/0x390 [ 14.562690] ? kasan_addr_to_slab+0x11/0xa0 [ 14.562720] ? kasan_alloca_oob_right+0x329/0x390 [ 14.562743] kasan_report+0x141/0x180 [ 14.562765] ? kasan_alloca_oob_right+0x329/0x390 [ 14.562792] __asan_report_load1_noabort+0x18/0x20 [ 14.562817] kasan_alloca_oob_right+0x329/0x390 [ 14.562840] ? __kasan_check_write+0x18/0x20 [ 14.562859] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.562883] ? finish_task_switch.isra.0+0x153/0x700 [ 14.562907] ? preempt_schedule_common+0xbe/0x110 [ 14.562943] ? trace_hardirqs_on+0x37/0xe0 [ 14.563199] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 14.563227] ? __schedule+0x10cc/0x2b60 [ 14.563250] ? __pfx_read_tsc+0x10/0x10 [ 14.563271] ? ktime_get_ts64+0x86/0x230 [ 14.563296] kunit_try_run_case+0x1a5/0x480 [ 14.563323] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.563346] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.563371] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.563395] ? __kthread_parkme+0x82/0x180 [ 14.563416] ? preempt_count_sub+0x50/0x80 [ 14.563439] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.563464] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.563489] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.563514] kthread+0x337/0x6f0 [ 14.563533] ? trace_preempt_on+0x20/0xc0 [ 14.563555] ? __pfx_kthread+0x10/0x10 [ 14.563576] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.563598] ? calculate_sigpending+0x7b/0xa0 [ 14.563622] ? __pfx_kthread+0x10/0x10 [ 14.563643] ret_from_fork+0x116/0x1d0 [ 14.563661] ? __pfx_kthread+0x10/0x10 [ 14.563682] ret_from_fork_asm+0x1a/0x30 [ 14.563713] </TASK> [ 14.563724] [ 14.577794] The buggy address belongs to stack of task kunit_try_catch/270 [ 14.578244] [ 14.578336] The buggy address belongs to the physical page: [ 14.578630] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c27 [ 14.579052] flags: 0x200000000000000(node=0|zone=2) [ 14.579526] raw: 0200000000000000 0000000000000000 ffffea00040b09c8 0000000000000000 [ 14.579923] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 14.580517] page dumped because: kasan: bad access detected [ 14.580851] [ 14.580959] Memory state around the buggy address: [ 14.581220] ffff888102c27b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.581966] ffff888102c27b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.582340] >ffff888102c27c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 14.582635] ^ [ 14.583044] ffff888102c27c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 14.583330] ffff888102c27d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 14.583833] ==================================================================