Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.372368] ================================================================== [ 20.372437] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 20.372493] Read of size 1 at addr ffff800080a37b4a by task kunit_try_catch/253 [ 20.372718] [ 20.372882] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.373270] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.373358] Hardware name: linux,dummy-virt (DT) [ 20.373469] Call trace: [ 20.373508] show_stack+0x20/0x38 (C) [ 20.373563] dump_stack_lvl+0x8c/0xd0 [ 20.373634] print_report+0x310/0x608 [ 20.373685] kasan_report+0xdc/0x128 [ 20.373733] __asan_report_load1_noabort+0x20/0x30 [ 20.373796] kasan_alloca_oob_right+0x2dc/0x340 [ 20.373852] kunit_try_run_case+0x170/0x3f0 [ 20.373903] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.373965] kthread+0x328/0x630 [ 20.374007] ret_from_fork+0x10/0x20 [ 20.374059] [ 20.374104] The buggy address belongs to stack of task kunit_try_catch/253 [ 20.374176] [ 20.374209] The buggy address belongs to the virtual mapping at [ 20.374209] [ffff800080a30000, ffff800080a39000) created by: [ 20.374209] kernel_clone+0x150/0x7a8 [ 20.374287] [ 20.374328] The buggy address belongs to the physical page: [ 20.374365] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107095 [ 20.374428] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.374506] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.374567] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.374639] page dumped because: kasan: bad access detected [ 20.374683] [ 20.374710] Memory state around the buggy address: [ 20.374759] ffff800080a37a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.374805] ffff800080a37a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.374855] >ffff800080a37b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 20.374895] ^ [ 20.374944] ffff800080a37b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 20.374994] ffff800080a37c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.375036] ==================================================================
[ 13.288510] ================================================================== [ 13.289217] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 13.289575] Read of size 1 at addr ffff888103a37c4a by task kunit_try_catch/272 [ 13.289890] [ 13.290025] CPU: 1 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.290071] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.290111] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.290132] Call Trace: [ 13.290144] <TASK> [ 13.290160] dump_stack_lvl+0x73/0xb0 [ 13.290189] print_report+0xd1/0x650 [ 13.290223] ? __virt_addr_valid+0x1db/0x2d0 [ 13.290245] ? kasan_alloca_oob_right+0x329/0x390 [ 13.290267] ? kasan_addr_to_slab+0x11/0xa0 [ 13.290393] ? kasan_alloca_oob_right+0x329/0x390 [ 13.290427] kasan_report+0x141/0x180 [ 13.290450] ? kasan_alloca_oob_right+0x329/0x390 [ 13.290476] __asan_report_load1_noabort+0x18/0x20 [ 13.290513] kasan_alloca_oob_right+0x329/0x390 [ 13.290537] ? finish_task_switch.isra.0+0x153/0x700 [ 13.290560] ? out_of_line_wait_on_bit_timeout+0x7e/0x190 [ 13.290636] ? trace_hardirqs_on+0x37/0xe0 [ 13.290663] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 13.290687] ? __schedule+0x10cc/0x2b60 [ 13.290708] ? __pfx_read_tsc+0x10/0x10 [ 13.290729] ? ktime_get_ts64+0x86/0x230 [ 13.290753] kunit_try_run_case+0x1a5/0x480 [ 13.290777] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.290799] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.290820] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.290842] ? __kthread_parkme+0x82/0x180 [ 13.290862] ? preempt_count_sub+0x50/0x80 [ 13.290885] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.290908] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.290942] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.290965] kthread+0x337/0x6f0 [ 13.290983] ? trace_preempt_on+0x20/0xc0 [ 13.291016] ? __pfx_kthread+0x10/0x10 [ 13.291036] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.291056] ? calculate_sigpending+0x7b/0xa0 [ 13.291079] ? __pfx_kthread+0x10/0x10 [ 13.291099] ret_from_fork+0x116/0x1d0 [ 13.291117] ? __pfx_kthread+0x10/0x10 [ 13.291136] ret_from_fork_asm+0x1a/0x30 [ 13.291168] </TASK> [ 13.291179] [ 13.304765] The buggy address belongs to stack of task kunit_try_catch/272 [ 13.305183] [ 13.305262] The buggy address belongs to the physical page: [ 13.305452] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a37 [ 13.306111] flags: 0x200000000000000(node=0|zone=2) [ 13.306633] raw: 0200000000000000 ffffea00040e8dc8 ffffea00040e8dc8 0000000000000000 [ 13.307347] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.308234] page dumped because: kasan: bad access detected [ 13.308873] [ 13.308952] Memory state around the buggy address: [ 13.309110] ffff888103a37b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.309325] ffff888103a37b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.309556] >ffff888103a37c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 13.309913] ^ [ 13.310254] ffff888103a37c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 13.310580] ffff888103a37d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.310863] ==================================================================