Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.181084] ================================================================== [ 23.181436] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 23.181959] Read of size 1 at addr ffff8000809c7b4a by task kunit_try_catch/263 [ 23.182231] [ 23.182345] CPU: 0 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 23.182554] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 23.182640] Hardware name: linux,dummy-virt (DT) [ 23.182731] Call trace: [ 23.182794] show_stack+0x20/0x38 (C) [ 23.183412] dump_stack_lvl+0x8c/0xd0 [ 23.183644] print_report+0x310/0x608 [ 23.184028] kasan_report+0xdc/0x128 [ 23.184314] __asan_report_load1_noabort+0x20/0x30 [ 23.184760] kasan_alloca_oob_right+0x2dc/0x340 [ 23.185033] kunit_try_run_case+0x170/0x3f0 [ 23.185303] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.185496] kthread+0x328/0x630 [ 23.185893] ret_from_fork+0x10/0x20 [ 23.186564] [ 23.186640] The buggy address belongs to stack of task kunit_try_catch/263 [ 23.186821] [ 23.187047] The buggy address belongs to the virtual mapping at [ 23.187047] [ffff8000809c0000, ffff8000809c9000) created by: [ 23.187047] kernel_clone+0x150/0x7a8 [ 23.187273] [ 23.187337] The buggy address belongs to the physical page: [ 23.187895] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107781 [ 23.188143] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.188511] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 23.188680] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 23.188794] page dumped because: kasan: bad access detected [ 23.188882] [ 23.189295] Memory state around the buggy address: [ 23.189498] ffff8000809c7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.189739] ffff8000809c7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.190141] >ffff8000809c7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 23.190366] ^ [ 23.190550] ffff8000809c7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 23.190743] ffff8000809c7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 23.190853] ==================================================================
[ 13.002261] ================================================================== [ 13.002854] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 13.003692] Read of size 1 at addr ffff8881029d7c4a by task kunit_try_catch/279 [ 13.003962] [ 13.004160] CPU: 1 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 13.004217] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.004230] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.004250] Call Trace: [ 13.004263] <TASK> [ 13.004277] dump_stack_lvl+0x73/0xb0 [ 13.004302] print_report+0xd1/0x650 [ 13.004322] ? __virt_addr_valid+0x1db/0x2d0 [ 13.004344] ? kasan_alloca_oob_right+0x329/0x390 [ 13.004365] ? kasan_addr_to_slab+0x11/0xa0 [ 13.004384] ? kasan_alloca_oob_right+0x329/0x390 [ 13.004405] kasan_report+0x141/0x180 [ 13.004426] ? kasan_alloca_oob_right+0x329/0x390 [ 13.004451] __asan_report_load1_noabort+0x18/0x20 [ 13.004473] kasan_alloca_oob_right+0x329/0x390 [ 13.004493] ? __kasan_check_write+0x18/0x20 [ 13.004516] ? __pfx_sched_clock_cpu+0x10/0x10 [ 13.004536] ? finish_task_switch.isra.0+0x153/0x700 [ 13.004558] ? rt_mutex_adjust_prio_chain+0x7ee/0x20e0 [ 13.004583] ? trace_hardirqs_on+0x37/0xe0 [ 13.004606] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 13.004630] ? __schedule+0x10cc/0x2b60 [ 13.004654] ? __pfx_read_tsc+0x10/0x10 [ 13.004674] ? ktime_get_ts64+0x86/0x230 [ 13.004698] kunit_try_run_case+0x1a5/0x480 [ 13.004720] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.004741] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.004761] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.004782] ? __kthread_parkme+0x82/0x180 [ 13.004802] ? preempt_count_sub+0x50/0x80 [ 13.004823] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.004845] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.004866] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.004888] kthread+0x337/0x6f0 [ 13.004907] ? trace_preempt_on+0x20/0xc0 [ 13.004927] ? __pfx_kthread+0x10/0x10 [ 13.004947] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.004966] ? calculate_sigpending+0x7b/0xa0 [ 13.004989] ? __pfx_kthread+0x10/0x10 [ 13.005009] ret_from_fork+0x116/0x1d0 [ 13.005026] ? __pfx_kthread+0x10/0x10 [ 13.005045] ret_from_fork_asm+0x1a/0x30 [ 13.005074] </TASK> [ 13.005085] [ 13.019967] The buggy address belongs to stack of task kunit_try_catch/279 [ 13.020186] [ 13.020263] The buggy address belongs to the physical page: [ 13.020441] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029d7 [ 13.021175] flags: 0x200000000000000(node=0|zone=2) [ 13.021735] raw: 0200000000000000 ffffea00040a75c8 ffffea00040a75c8 0000000000000000 [ 13.022410] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.022631] page dumped because: kasan: bad access detected [ 13.022789] [ 13.022848] Memory state around the buggy address: [ 13.022990] ffff8881029d7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.023201] ffff8881029d7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.023869] >ffff8881029d7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 13.024577] ^ [ 13.025146] ffff8881029d7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 13.025846] ffff8881029d7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.026507] ==================================================================