Date
June 23, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 23.766317] ================================================================== [ 23.766849] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 23.767951] Read of size 1 at addr ffff8881039afc4a by task kunit_try_catch/282 [ 23.768747] [ 23.768880] CPU: 1 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) [ 23.769102] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.769119] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.769147] Call Trace: [ 23.769161] <TASK> [ 23.769179] dump_stack_lvl+0x73/0xb0 [ 23.769226] print_report+0xd1/0x650 [ 23.769246] ? __virt_addr_valid+0x1db/0x2d0 [ 23.769267] ? kasan_alloca_oob_right+0x329/0x390 [ 23.769286] ? kasan_addr_to_slab+0x11/0xa0 [ 23.769303] ? kasan_alloca_oob_right+0x329/0x390 [ 23.769322] kasan_report+0x141/0x180 [ 23.769340] ? kasan_alloca_oob_right+0x329/0x390 [ 23.769362] __asan_report_load1_noabort+0x18/0x20 [ 23.769577] kasan_alloca_oob_right+0x329/0x390 [ 23.769610] ? __kasan_check_write+0x18/0x20 [ 23.769634] ? __pfx_sched_clock_cpu+0x10/0x10 [ 23.769654] ? finish_task_switch.isra.0+0x153/0x700 [ 23.769673] ? rwsem_down_write_slowpath+0x2ce/0x1150 [ 23.769695] ? trace_hardirqs_on+0x37/0xe0 [ 23.769716] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 23.769737] ? __schedule+0x10cc/0x2b60 [ 23.769755] ? __pfx_read_tsc+0x10/0x10 [ 23.769773] ? ktime_get_ts64+0x86/0x230 [ 23.769794] kunit_try_run_case+0x1a5/0x480 [ 23.769815] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.769837] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.769863] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.769881] ? __kthread_parkme+0x82/0x180 [ 23.769899] ? preempt_count_sub+0x50/0x80 [ 23.769918] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.769938] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.769958] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.769977] kthread+0x337/0x6f0 [ 23.769995] ? trace_preempt_on+0x20/0xc0 [ 23.770025] ? __pfx_kthread+0x10/0x10 [ 23.770048] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.770078] ? calculate_sigpending+0x7b/0xa0 [ 23.770145] ? __pfx_kthread+0x10/0x10 [ 23.770175] ret_from_fork+0x116/0x1d0 [ 23.770195] ? __pfx_kthread+0x10/0x10 [ 23.770215] ret_from_fork_asm+0x1a/0x30 [ 23.770246] </TASK> [ 23.770257] [ 23.782340] The buggy address belongs to stack of task kunit_try_catch/282 [ 23.782804] [ 23.782980] The buggy address belongs to the physical page: [ 23.783350] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039af [ 23.783606] flags: 0x200000000000000(node=0|zone=2) [ 23.784207] raw: 0200000000000000 ffffea00040e6bc8 ffffea00040e6bc8 0000000000000000 [ 23.784742] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 23.785344] page dumped because: kasan: bad access detected [ 23.785590] [ 23.785680] Memory state around the buggy address: [ 23.786041] ffff8881039afb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.786537] ffff8881039afb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.787038] >ffff8881039afc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 23.787812] ^ [ 23.788391] ffff8881039afc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 23.788795] ffff8881039afd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 23.789302] ==================================================================