Date
June 3, 2025, 7:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.657479] ================================================================== [ 20.657548] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 20.657883] Read of size 1 at addr ffff800080a97b4a by task kunit_try_catch/253 [ 20.658073] [ 20.658218] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT [ 20.658335] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.658363] Hardware name: linux,dummy-virt (DT) [ 20.658397] Call trace: [ 20.658438] show_stack+0x20/0x38 (C) [ 20.658690] dump_stack_lvl+0x8c/0xd0 [ 20.658763] print_report+0x310/0x608 [ 20.658819] kasan_report+0xdc/0x128 [ 20.658922] __asan_report_load1_noabort+0x20/0x30 [ 20.659098] kasan_alloca_oob_right+0x2dc/0x340 [ 20.659181] kunit_try_run_case+0x170/0x3f0 [ 20.659236] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.659440] kthread+0x328/0x630 [ 20.659509] ret_from_fork+0x10/0x20 [ 20.659833] [ 20.659858] The buggy address belongs to stack of task kunit_try_catch/253 [ 20.659914] [ 20.659944] The buggy address belongs to the virtual mapping at [ 20.659944] [ffff800080a90000, ffff800080a99000) created by: [ 20.659944] kernel_clone+0x150/0x7a8 [ 20.660323] [ 20.660369] The buggy address belongs to the physical page: [ 20.660480] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065cd [ 20.660535] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.660606] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.660658] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.660702] page dumped because: kasan: bad access detected [ 20.660760] [ 20.660824] Memory state around the buggy address: [ 20.660913] ffff800080a97a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.660970] ffff800080a97a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.661017] >ffff800080a97b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 20.661057] ^ [ 20.661095] ffff800080a97b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 20.661138] ffff800080a97c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.661224] ==================================================================
[ 16.752183] ================================================================== [ 16.752787] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 16.753512] Read of size 1 at addr ffff8881039c7c4a by task kunit_try_catch/270 [ 16.754207] [ 16.754535] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT(voluntary) [ 16.754612] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.754629] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.754689] Call Trace: [ 16.754722] <TASK> [ 16.754750] dump_stack_lvl+0x73/0xb0 [ 16.754810] print_report+0xd1/0x650 [ 16.754838] ? __virt_addr_valid+0x1db/0x2d0 [ 16.754866] ? kasan_alloca_oob_right+0x329/0x390 [ 16.754892] ? kasan_addr_to_slab+0x11/0xa0 [ 16.754916] ? kasan_alloca_oob_right+0x329/0x390 [ 16.754942] kasan_report+0x141/0x180 [ 16.754967] ? kasan_alloca_oob_right+0x329/0x390 [ 16.754997] __asan_report_load1_noabort+0x18/0x20 [ 16.755020] kasan_alloca_oob_right+0x329/0x390 [ 16.755046] ? __pfx_sched_clock_cpu+0x10/0x10 [ 16.755071] ? finish_task_switch.isra.0+0x153/0x700 [ 16.755097] ? __ww_mutex_lock.constprop.0+0xc5e/0x1e90 [ 16.755122] ? trace_hardirqs_on+0x37/0xe0 [ 16.755149] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 16.755176] ? __schedule+0x10cc/0x2b60 [ 16.755201] ? __pfx_read_tsc+0x10/0x10 [ 16.755242] ? ktime_get_ts64+0x86/0x230 [ 16.755273] kunit_try_run_case+0x1a5/0x480 [ 16.755300] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.755322] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.755365] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.755402] ? __kthread_parkme+0x82/0x180 [ 16.755426] ? preempt_count_sub+0x50/0x80 [ 16.755451] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.755497] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.755526] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.755553] kthread+0x337/0x6f0 [ 16.755577] ? trace_preempt_on+0x20/0xc0 [ 16.755602] ? __pfx_kthread+0x10/0x10 [ 16.755625] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.755650] ? calculate_sigpending+0x7b/0xa0 [ 16.755679] ? __pfx_kthread+0x10/0x10 [ 16.755703] ret_from_fork+0x116/0x1d0 [ 16.755726] ? __pfx_kthread+0x10/0x10 [ 16.755747] ret_from_fork_asm+0x1a/0x30 [ 16.755781] </TASK> [ 16.755795] [ 16.765241] The buggy address belongs to stack of task kunit_try_catch/270 [ 16.765724] [ 16.765849] The buggy address belongs to the physical page: [ 16.766144] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039c7 [ 16.766770] flags: 0x200000000000000(node=0|zone=2) [ 16.767048] raw: 0200000000000000 ffffea00040e71c8 ffffea00040e71c8 0000000000000000 [ 16.767292] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.767756] page dumped because: kasan: bad access detected [ 16.768075] [ 16.768207] Memory state around the buggy address: [ 16.768520] ffff8881039c7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.768898] ffff8881039c7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.769402] >ffff8881039c7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 16.769845] ^ [ 16.770154] ffff8881039c7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 16.770479] ffff8881039c7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 16.770676] ==================================================================