Hay
Date
July 23, 2025, 2:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   17.629631] ==================================================================
[   17.630209] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   17.630479] Read of size 1 at addr ffff800080a57b5f by task kunit_try_catch/251
[   17.630543] 
[   17.630587] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   17.630920] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.631092] Hardware name: linux,dummy-virt (DT)
[   17.631146] Call trace:
[   17.631174]  show_stack+0x20/0x38 (C)
[   17.631238]  dump_stack_lvl+0x8c/0xd0
[   17.631288]  print_report+0x310/0x5d0
[   17.631345]  kasan_report+0xdc/0x128
[   17.631402]  __asan_report_load1_noabort+0x20/0x30
[   17.631486]  kasan_alloca_oob_left+0x2b8/0x310
[   17.631538]  kunit_try_run_case+0x170/0x3f0
[   17.631588]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.631644]  kthread+0x328/0x630
[   17.631687]  ret_from_fork+0x10/0x20
[   17.631762] 
[   17.631803] The buggy address belongs to stack of task kunit_try_catch/251
[   17.631909] 
[   17.631934] The buggy address ffff800080a57b5f belongs to a vmalloc virtual mapping
[   17.631988] The buggy address belongs to the physical page:
[   17.632027] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103faa
[   17.632087] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.632151] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.632207] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.632273] page dumped because: kasan: bad access detected
[   17.632305] 
[   17.632327] Memory state around the buggy address:
[   17.632361]  ffff800080a57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.632417]  ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.632474] >ffff800080a57b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   17.632523]                                                     ^
[   17.632579]  ffff800080a57b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   17.632639]  ffff800080a57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.632682] ==================================================================

[   14.388420] ==================================================================
[   14.388881] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   14.389582] Read of size 1 at addr ffff888103af7c3f by task kunit_try_catch/268
[   14.389901] 
[   14.390013] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   14.390058] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.390070] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.390093] Call Trace:
[   14.390106]  <TASK>
[   14.390121]  dump_stack_lvl+0x73/0xb0
[   14.390151]  print_report+0xd1/0x610
[   14.390174]  ? __virt_addr_valid+0x1db/0x2d0
[   14.390197]  ? kasan_alloca_oob_left+0x320/0x380
[   14.390220]  ? kasan_addr_to_slab+0x11/0xa0
[   14.390241]  ? kasan_alloca_oob_left+0x320/0x380
[   14.390265]  kasan_report+0x141/0x180
[   14.390587]  ? kasan_alloca_oob_left+0x320/0x380
[   14.390617]  __asan_report_load1_noabort+0x18/0x20
[   14.390642]  kasan_alloca_oob_left+0x320/0x380
[   14.390665]  ? __kasan_check_write+0x18/0x20
[   14.390685]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.390708]  ? finish_task_switch.isra.0+0x153/0x700
[   14.390732]  ? rt_mutex_adjust_prio_chain+0x195e/0x20e0
[   14.390755]  ? trace_hardirqs_on+0x37/0xe0
[   14.390780]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   14.390804]  ? __kasan_check_write+0x18/0x20
[   14.390837]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.390864]  ? trace_hardirqs_on+0x37/0xe0
[   14.390887]  ? __pfx_read_tsc+0x10/0x10
[   14.390908]  ? ktime_get_ts64+0x86/0x230
[   14.390931]  kunit_try_run_case+0x1a5/0x480
[   14.390958]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.390984]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.391008]  ? __kthread_parkme+0x82/0x180
[   14.391029]  ? preempt_count_sub+0x50/0x80
[   14.391052]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.391077]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.391116]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.391141]  kthread+0x337/0x6f0
[   14.391161]  ? trace_preempt_on+0x20/0xc0
[   14.391184]  ? __pfx_kthread+0x10/0x10
[   14.391301]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.391332]  ? calculate_sigpending+0x7b/0xa0
[   14.391360]  ? __pfx_kthread+0x10/0x10
[   14.391383]  ret_from_fork+0x116/0x1d0
[   14.391403]  ? __pfx_kthread+0x10/0x10
[   14.391424]  ret_from_fork_asm+0x1a/0x30
[   14.391458]  </TASK>
[   14.391470] 
[   14.400079] The buggy address belongs to stack of task kunit_try_catch/268
[   14.400427] 
[   14.400526] The buggy address belongs to the physical page:
[   14.400786] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103af7
[   14.401255] flags: 0x200000000000000(node=0|zone=2)
[   14.401457] raw: 0200000000000000 ffffea00040ebdc8 ffffea00040ebdc8 0000000000000000
[   14.401774] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.402079] page dumped because: kasan: bad access detected
[   14.402312] 
[   14.402385] Memory state around the buggy address:
[   14.402618]  ffff888103af7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.403032]  ffff888103af7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.403484] >ffff888103af7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.403873]                                         ^
[   14.404087]  ffff888103af7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.404419]  ffff888103af7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.404705] ==================================================================