Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.351606] ================================================================== [ 20.351686] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 20.352183] Read of size 1 at addr ffff800080a37b5f by task kunit_try_catch/251 [ 20.352346] [ 20.352410] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.352505] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.352772] Hardware name: linux,dummy-virt (DT) [ 20.352823] Call trace: [ 20.352954] show_stack+0x20/0x38 (C) [ 20.353189] dump_stack_lvl+0x8c/0xd0 [ 20.353398] print_report+0x310/0x608 [ 20.353700] kasan_report+0xdc/0x128 [ 20.354007] __asan_report_load1_noabort+0x20/0x30 [ 20.354129] kasan_alloca_oob_left+0x2b8/0x310 [ 20.354181] kunit_try_run_case+0x170/0x3f0 [ 20.354238] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.354296] kthread+0x328/0x630 [ 20.354542] ret_from_fork+0x10/0x20 [ 20.354838] [ 20.354971] The buggy address belongs to stack of task kunit_try_catch/251 [ 20.355185] [ 20.355506] The buggy address belongs to the virtual mapping at [ 20.355506] [ffff800080a30000, ffff800080a39000) created by: [ 20.355506] kernel_clone+0x150/0x7a8 [ 20.355871] [ 20.355939] The buggy address belongs to the physical page: [ 20.356299] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107095 [ 20.356461] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.356616] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.357038] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.357178] page dumped because: kasan: bad access detected [ 20.357336] [ 20.357404] Memory state around the buggy address: [ 20.357484] ffff800080a37a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.357568] ffff800080a37a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.357955] >ffff800080a37b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 20.358044] ^ [ 20.358242] ffff800080a37b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 20.358314] ffff800080a37c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.358465] ==================================================================
[ 13.266430] ================================================================== [ 13.267250] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380 [ 13.267854] Read of size 1 at addr ffff8881038ffc3f by task kunit_try_catch/270 [ 13.268745] [ 13.268853] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.268902] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.268914] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.268936] Call Trace: [ 13.268948] <TASK> [ 13.268965] dump_stack_lvl+0x73/0xb0 [ 13.268997] print_report+0xd1/0x650 [ 13.269020] ? __virt_addr_valid+0x1db/0x2d0 [ 13.269044] ? kasan_alloca_oob_left+0x320/0x380 [ 13.269066] ? kasan_addr_to_slab+0x11/0xa0 [ 13.269087] ? kasan_alloca_oob_left+0x320/0x380 [ 13.269109] kasan_report+0x141/0x180 [ 13.269131] ? kasan_alloca_oob_left+0x320/0x380 [ 13.269157] __asan_report_load1_noabort+0x18/0x20 [ 13.269180] kasan_alloca_oob_left+0x320/0x380 [ 13.269201] ? __kasan_check_write+0x18/0x20 [ 13.269221] ? __pfx_sched_clock_cpu+0x10/0x10 [ 13.269243] ? finish_task_switch.isra.0+0x153/0x700 [ 13.269266] ? out_of_line_wait_on_bit_timeout+0x7e/0x190 [ 13.269290] ? trace_hardirqs_on+0x37/0xe0 [ 13.269316] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 13.269341] ? __schedule+0x10cc/0x2b60 [ 13.269376] ? __pfx_read_tsc+0x10/0x10 [ 13.269398] ? ktime_get_ts64+0x86/0x230 [ 13.269422] kunit_try_run_case+0x1a5/0x480 [ 13.269448] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.269470] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.269504] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.269526] ? __kthread_parkme+0x82/0x180 [ 13.269548] ? preempt_count_sub+0x50/0x80 [ 13.269582] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.269605] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.269628] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.269650] kthread+0x337/0x6f0 [ 13.269670] ? trace_preempt_on+0x20/0xc0 [ 13.269691] ? __pfx_kthread+0x10/0x10 [ 13.269712] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.269733] ? calculate_sigpending+0x7b/0xa0 [ 13.269773] ? __pfx_kthread+0x10/0x10 [ 13.269795] ret_from_fork+0x116/0x1d0 [ 13.269821] ? __pfx_kthread+0x10/0x10 [ 13.269840] ret_from_fork_asm+0x1a/0x30 [ 13.269872] </TASK> [ 13.269883] [ 13.278990] The buggy address belongs to stack of task kunit_try_catch/270 [ 13.279648] [ 13.279773] The buggy address belongs to the physical page: [ 13.280044] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038ff [ 13.280437] flags: 0x200000000000000(node=0|zone=2) [ 13.280755] raw: 0200000000000000 ffffea00040e3fc8 ffffea00040e3fc8 0000000000000000 [ 13.281024] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.281393] page dumped because: kasan: bad access detected [ 13.281593] [ 13.281670] Memory state around the buggy address: [ 13.281833] ffff8881038ffb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.282152] ffff8881038ffb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.282799] >ffff8881038ffc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 13.283163] ^ [ 13.283327] ffff8881038ffc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 13.284110] ffff8881038ffd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.284452] ==================================================================