Date
May 29, 2025, 7:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.569752] ================================================================== [ 24.569956] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 24.570129] Read of size 1 at addr ffff800080ac7b4a by task kunit_try_catch/253 [ 24.570265] [ 24.570360] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT [ 24.570605] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.570680] Hardware name: linux,dummy-virt (DT) [ 24.570763] Call trace: [ 24.570834] show_stack+0x20/0x38 (C) [ 24.570971] dump_stack_lvl+0x8c/0xd0 [ 24.571102] print_report+0x310/0x608 [ 24.571223] kasan_report+0xdc/0x128 [ 24.571346] __asan_report_load1_noabort+0x20/0x30 [ 24.571473] kasan_alloca_oob_right+0x2dc/0x340 [ 24.571587] kunit_try_run_case+0x170/0x3f0 [ 24.571716] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.571896] kthread+0x328/0x630 [ 24.572011] ret_from_fork+0x10/0x20 [ 24.572138] [ 24.572216] The buggy address belongs to stack of task kunit_try_catch/253 [ 24.572364] [ 24.572437] The buggy address belongs to the virtual mapping at [ 24.572437] [ffff800080ac0000, ffff800080ac9000) created by: [ 24.572437] kernel_clone+0x150/0x7a8 [ 24.572589] [ 24.572942] The buggy address belongs to the physical page: [ 24.573030] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063eb [ 24.573149] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.573830] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 24.574011] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 24.574171] page dumped because: kasan: bad access detected [ 24.574302] [ 24.574470] Memory state around the buggy address: [ 24.574572] ffff800080ac7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.574951] ffff800080ac7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.575105] >ffff800080ac7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 24.575291] ^ [ 24.575575] ffff800080ac7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 24.575684] ffff800080ac7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 24.576211] ==================================================================
[ 12.717799] ================================================================== [ 12.718297] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 12.718695] Read of size 1 at addr ffff888103a97c4a by task kunit_try_catch/270 [ 12.719013] [ 12.719279] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT(voluntary) [ 12.719341] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.719355] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.719389] Call Trace: [ 12.719401] <TASK> [ 12.719415] dump_stack_lvl+0x73/0xb0 [ 12.719442] print_report+0xd1/0x650 [ 12.719465] ? __virt_addr_valid+0x1db/0x2d0 [ 12.719498] ? kasan_alloca_oob_right+0x329/0x390 [ 12.719522] ? kasan_addr_to_slab+0x11/0xa0 [ 12.719553] ? kasan_alloca_oob_right+0x329/0x390 [ 12.719578] kasan_report+0x141/0x180 [ 12.719602] ? kasan_alloca_oob_right+0x329/0x390 [ 12.719641] __asan_report_load1_noabort+0x18/0x20 [ 12.719671] kasan_alloca_oob_right+0x329/0x390 [ 12.719696] ? finish_task_switch.isra.0+0x153/0x700 [ 12.719719] ? __ww_mutex_lock.constprop.0+0xc5e/0x1e90 [ 12.719752] ? trace_hardirqs_on+0x37/0xe0 [ 12.719785] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 12.719812] ? __schedule+0x10cc/0x2b60 [ 12.719836] ? __pfx_read_tsc+0x10/0x10 [ 12.719856] ? ktime_get_ts64+0x86/0x230 [ 12.719880] kunit_try_run_case+0x1a5/0x480 [ 12.719902] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.719922] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.719946] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.719971] ? __kthread_parkme+0x82/0x180 [ 12.720046] ? preempt_count_sub+0x50/0x80 [ 12.720082] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.720104] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.720143] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.720168] kthread+0x337/0x6f0 [ 12.720188] ? trace_preempt_on+0x20/0xc0 [ 12.720210] ? __pfx_kthread+0x10/0x10 [ 12.720231] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.720254] ? calculate_sigpending+0x7b/0xa0 [ 12.720277] ? __pfx_kthread+0x10/0x10 [ 12.720299] ret_from_fork+0x116/0x1d0 [ 12.720317] ? __pfx_kthread+0x10/0x10 [ 12.720338] ret_from_fork_asm+0x1a/0x30 [ 12.720368] </TASK> [ 12.720379] [ 12.730177] The buggy address belongs to stack of task kunit_try_catch/270 [ 12.730483] [ 12.730577] The buggy address belongs to the physical page: [ 12.731258] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a97 [ 12.731711] flags: 0x200000000000000(node=0|zone=2) [ 12.732010] raw: 0200000000000000 ffffea00040ea5c8 ffffea00040ea5c8 0000000000000000 [ 12.732320] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.732636] page dumped because: kasan: bad access detected [ 12.733389] [ 12.733496] Memory state around the buggy address: [ 12.734414] ffff888103a97b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.734966] ffff888103a97b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.735507] >ffff888103a97c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 12.736114] ^ [ 12.736578] ffff888103a97c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 12.737222] ffff888103a97d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 12.737681] ==================================================================