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

Environment
qemu-arm64
qemu-x86_64

[   20.253781] ==================================================================
[   20.254124] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   20.254414] Read of size 1 at addr ffff800080a77b5f by task kunit_try_catch/251
[   20.254785] 
[   20.254991] CPU: 1 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   20.255143] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.255268] Hardware name: linux,dummy-virt (DT)
[   20.255331] Call trace:
[   20.255354]  show_stack+0x20/0x38 (C)
[   20.255407]  dump_stack_lvl+0x8c/0xd0
[   20.255626]  print_report+0x310/0x608
[   20.255677]  kasan_report+0xdc/0x128
[   20.255767]  __asan_report_load1_noabort+0x20/0x30
[   20.255864]  kasan_alloca_oob_left+0x2b8/0x310
[   20.255918]  kunit_try_run_case+0x170/0x3f0
[   20.256045]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.256098]  kthread+0x328/0x630
[   20.256181]  ret_from_fork+0x10/0x20
[   20.256271] 
[   20.256294] The buggy address belongs to stack of task kunit_try_catch/251
[   20.256421] 
[   20.256567] The buggy address belongs to the virtual mapping at
[   20.256567]  [ffff800080a70000, ffff800080a79000) created by:
[   20.256567]  kernel_clone+0x150/0x7a8
[   20.256737] 
[   20.256836] The buggy address belongs to the physical page:
[   20.256931] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106f35
[   20.256986] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.257349] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.257576] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.257674] page dumped because: kasan: bad access detected
[   20.257859] 
[   20.257960] Memory state around the buggy address:
[   20.258126]  ffff800080a77a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.258238]  ffff800080a77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.258294] >ffff800080a77b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   20.258465]                                                     ^
[   20.258784]  ffff800080a77b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.258975]  ffff800080a77c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.259093] ==================================================================

[   13.821088] ==================================================================
[   13.821938] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   13.822306] Read of size 1 at addr ffff888103a87c3f by task kunit_try_catch/268
[   13.822754] 
[   13.822888] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.822960] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.822974] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.822996] Call Trace:
[   13.823012]  <TASK>
[   13.823033]  dump_stack_lvl+0x73/0xb0
[   13.823066]  print_report+0xd1/0x650
[   13.823089]  ? __virt_addr_valid+0x1db/0x2d0
[   13.823114]  ? kasan_alloca_oob_left+0x320/0x380
[   13.823135]  ? kasan_addr_to_slab+0x11/0xa0
[   13.823155]  ? kasan_alloca_oob_left+0x320/0x380
[   13.823176]  kasan_report+0x141/0x180
[   13.823197]  ? kasan_alloca_oob_left+0x320/0x380
[   13.823235]  __asan_report_load1_noabort+0x18/0x20
[   13.823259]  kasan_alloca_oob_left+0x320/0x380
[   13.823282]  ? finish_task_switch.isra.0+0x153/0x700
[   13.823304]  ? ww_mutex_unlock+0x6e/0x150
[   13.823327]  ? trace_hardirqs_on+0x37/0xe0
[   13.823350]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   13.823373]  ? __schedule+0x10cc/0x2b60
[   13.823394]  ? __pfx_read_tsc+0x10/0x10
[   13.823414]  ? ktime_get_ts64+0x86/0x230
[   13.823438]  kunit_try_run_case+0x1a5/0x480
[   13.823462]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.823506]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.823540]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.823562]  ? __kthread_parkme+0x82/0x180
[   13.823583]  ? preempt_count_sub+0x50/0x80
[   13.823604]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.823627]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.823648]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.823670]  kthread+0x337/0x6f0
[   13.823689]  ? trace_preempt_on+0x20/0xc0
[   13.823710]  ? __pfx_kthread+0x10/0x10
[   13.823730]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.823751]  ? calculate_sigpending+0x7b/0xa0
[   13.823774]  ? __pfx_kthread+0x10/0x10
[   13.823795]  ret_from_fork+0x116/0x1d0
[   13.823812]  ? __pfx_kthread+0x10/0x10
[   13.823832]  ret_from_fork_asm+0x1a/0x30
[   13.823864]  </TASK>
[   13.823876] 
[   13.833145] The buggy address belongs to stack of task kunit_try_catch/268
[   13.833509] 
[   13.833607] The buggy address belongs to the physical page:
[   13.833946] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a87
[   13.834596] flags: 0x200000000000000(node=0|zone=2)
[   13.834841] raw: 0200000000000000 ffffea00040ea1c8 ffffea00040ea1c8 0000000000000000
[   13.835181] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.835890] page dumped because: kasan: bad access detected
[   13.836066] 
[   13.836164] Memory state around the buggy address:
[   13.836564]  ffff888103a87b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.837105]  ffff888103a87b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.837402] >ffff888103a87c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.837851]                                         ^
[   13.838327]  ffff888103a87c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.838647]  ffff888103a87d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.838967] ==================================================================