Hay
Date
July 5, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.400632] ==================================================================
[   20.400725] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   20.400966] Read of size 1 at addr ffff800080a07b5f by task kunit_try_catch/251
[   20.401019] 
[   20.401054] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   20.401135] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.401178] Hardware name: linux,dummy-virt (DT)
[   20.401210] Call trace:
[   20.401235]  show_stack+0x20/0x38 (C)
[   20.401285]  dump_stack_lvl+0x8c/0xd0
[   20.401336]  print_report+0x310/0x608
[   20.401392]  kasan_report+0xdc/0x128
[   20.401618]  __asan_report_load1_noabort+0x20/0x30
[   20.401878]  kasan_alloca_oob_left+0x2b8/0x310
[   20.401979]  kunit_try_run_case+0x170/0x3f0
[   20.402457]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.402631]  kthread+0x328/0x630
[   20.403067]  ret_from_fork+0x10/0x20
[   20.403164] 
[   20.403385] The buggy address belongs to stack of task kunit_try_catch/251
[   20.403507] 
[   20.403550] The buggy address belongs to the virtual mapping at
[   20.403550]  [ffff800080a00000, ffff800080a09000) created by:
[   20.403550]  kernel_clone+0x150/0x7a8
[   20.403771] 
[   20.403796] The buggy address belongs to the physical page:
[   20.403837] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107922
[   20.403972] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.404037] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.404090] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.404175] page dumped because: kasan: bad access detected
[   20.404210] 
[   20.404231] Memory state around the buggy address:
[   20.404266]  ffff800080a07a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.404361]  ffff800080a07a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.404406] >ffff800080a07b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   20.404446]                                                     ^
[   20.404487]  ffff800080a07b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.404532]  ffff800080a07c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.404639] ==================================================================

[   15.616566] ==================================================================
[   15.617519] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   15.618342] Read of size 1 at addr ffff888103a4fc3f by task kunit_try_catch/269
[   15.618731] 
[   15.618886] CPU: 0 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   15.618948] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.618962] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.618988] Call Trace:
[   15.619006]  <TASK>
[   15.619029]  dump_stack_lvl+0x73/0xb0
[   15.619068]  print_report+0xd1/0x650
[   15.619096]  ? __virt_addr_valid+0x1db/0x2d0
[   15.619124]  ? kasan_alloca_oob_left+0x320/0x380
[   15.619329]  ? kasan_addr_to_slab+0x11/0xa0
[   15.619357]  ? kasan_alloca_oob_left+0x320/0x380
[   15.619384]  kasan_report+0x141/0x180
[   15.619410]  ? kasan_alloca_oob_left+0x320/0x380
[   15.619486]  __asan_report_load1_noabort+0x18/0x20
[   15.619516]  kasan_alloca_oob_left+0x320/0x380
[   15.619544]  ? irqentry_exit+0x2a/0x60
[   15.619571]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   15.619600]  ? trace_hardirqs_on+0x37/0xe0
[   15.619631]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   15.619662]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   15.619693]  kunit_try_run_case+0x1a5/0x480
[   15.619723]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.619748]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.619776]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.619819]  ? __kthread_parkme+0x82/0x180
[   15.619844]  ? preempt_count_sub+0x50/0x80
[   15.619873]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.619899]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.619925]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.619951]  kthread+0x337/0x6f0
[   15.619973]  ? trace_preempt_on+0x20/0xc0
[   15.619998]  ? __pfx_kthread+0x10/0x10
[   15.620022]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.620047]  ? calculate_sigpending+0x7b/0xa0
[   15.620076]  ? __pfx_kthread+0x10/0x10
[   15.620101]  ret_from_fork+0x116/0x1d0
[   15.620124]  ? __pfx_kthread+0x10/0x10
[   15.620148]  ret_from_fork_asm+0x1a/0x30
[   15.620187]  </TASK>
[   15.620203] 
[   15.633861] The buggy address belongs to stack of task kunit_try_catch/269
[   15.634704] 
[   15.634906] The buggy address belongs to the physical page:
[   15.635390] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a4f
[   15.635801] flags: 0x200000000000000(node=0|zone=2)
[   15.636016] raw: 0200000000000000 ffffea00040e93c8 ffffea00040e93c8 0000000000000000
[   15.636544] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   15.636906] page dumped because: kasan: bad access detected
[   15.637778] 
[   15.637911] Memory state around the buggy address:
[   15.638101]  ffff888103a4fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.638578]  ffff888103a4fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.639358] >ffff888103a4fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   15.639693]                                         ^
[   15.639956]  ffff888103a4fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   15.640549]  ffff888103a4fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   15.640900] ==================================================================