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

Environment
qemu-arm64
qemu-x86_64

[   17.595242] ==================================================================
[   17.595378] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   17.596116] Read of size 1 at addr ffff800080a97b5f by task kunit_try_catch/251
[   17.596428] 
[   17.596501] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.596590] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.596630] Hardware name: linux,dummy-virt (DT)
[   17.596678] Call trace:
[   17.596704]  show_stack+0x20/0x38 (C)
[   17.596994]  dump_stack_lvl+0x8c/0xd0
[   17.597072]  print_report+0x310/0x5d0
[   17.597439]  kasan_report+0xdc/0x128
[   17.597562]  __asan_report_load1_noabort+0x20/0x30
[   17.597925]  kasan_alloca_oob_left+0x2b8/0x310
[   17.598141]  kunit_try_run_case+0x170/0x3f0
[   17.598201]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.598550]  kthread+0x328/0x630
[   17.598672]  ret_from_fork+0x10/0x20
[   17.598851] 
[   17.598918] The buggy address belongs to stack of task kunit_try_catch/251
[   17.599027] 
[   17.599052] The buggy address ffff800080a97b5f belongs to a vmalloc virtual mapping
[   17.599560] The buggy address belongs to the physical page:
[   17.599615] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107858
[   17.599776] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.599937] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.600032] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.600171] page dumped because: kasan: bad access detected
[   17.600259] 
[   17.600389] Memory state around the buggy address:
[   17.600549]  ffff800080a97a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.600960]  ffff800080a97a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.601064] >ffff800080a97b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   17.601126]                                                     ^
[   17.601449]  ffff800080a97b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   17.601586]  ffff800080a97c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.601684] ==================================================================

[   14.006216] ==================================================================
[   14.006849] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   14.007337] Read of size 1 at addr ffff888103ae7c3f by task kunit_try_catch/270
[   14.007896] 
[   14.008187] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.008359] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.008374] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.008394] Call Trace:
[   14.008406]  <TASK>
[   14.008419]  dump_stack_lvl+0x73/0xb0
[   14.008451]  print_report+0xd1/0x610
[   14.008564]  ? __virt_addr_valid+0x1db/0x2d0
[   14.008590]  ? kasan_alloca_oob_left+0x320/0x380
[   14.008612]  ? kasan_addr_to_slab+0x11/0xa0
[   14.008632]  ? kasan_alloca_oob_left+0x320/0x380
[   14.008655]  kasan_report+0x141/0x180
[   14.008677]  ? kasan_alloca_oob_left+0x320/0x380
[   14.008704]  __asan_report_load1_noabort+0x18/0x20
[   14.008728]  kasan_alloca_oob_left+0x320/0x380
[   14.008751]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.008773]  ? finish_task_switch.isra.0+0x153/0x700
[   14.008796]  ? __schedule+0x100e/0x2b60
[   14.008816]  ? trace_hardirqs_on+0x37/0xe0
[   14.008839]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   14.008865]  ? __schedule+0x10cc/0x2b60
[   14.008886]  ? __pfx_read_tsc+0x10/0x10
[   14.008907]  ? ktime_get_ts64+0x86/0x230
[   14.008931]  kunit_try_run_case+0x1a5/0x480
[   14.008962]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.008984]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.009042]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.009066]  ? __kthread_parkme+0x82/0x180
[   14.009088]  ? preempt_count_sub+0x50/0x80
[   14.009110]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.009135]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.009158]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.009182]  kthread+0x337/0x6f0
[   14.009202]  ? trace_preempt_on+0x20/0xc0
[   14.009223]  ? __pfx_kthread+0x10/0x10
[   14.009242]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.009264]  ? calculate_sigpending+0x7b/0xa0
[   14.009288]  ? __pfx_kthread+0x10/0x10
[   14.009321]  ret_from_fork+0x116/0x1d0
[   14.009340]  ? __pfx_kthread+0x10/0x10
[   14.009360]  ret_from_fork_asm+0x1a/0x30
[   14.009390]  </TASK>
[   14.009401] 
[   14.020848] The buggy address belongs to stack of task kunit_try_catch/270
[   14.021333] 
[   14.021413] The buggy address belongs to the physical page:
[   14.021857] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ae7
[   14.022385] flags: 0x200000000000000(node=0|zone=2)
[   14.022644] raw: 0200000000000000 ffffea00040eb9c8 ffffea00040eb9c8 0000000000000000
[   14.023231] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.023698] page dumped because: kasan: bad access detected
[   14.024079] 
[   14.024185] Memory state around the buggy address:
[   14.024599]  ffff888103ae7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.025021]  ffff888103ae7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.025489] >ffff888103ae7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.025899]                                         ^
[   14.026258]  ffff888103ae7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.026619]  ffff888103ae7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.027099] ==================================================================