Hay
Date
July 19, 2025, 11:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.458563] ==================================================================
[   17.458654] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   17.458743] Read of size 1 at addr ffff800080b57b5f by task kunit_try_catch/251
[   17.458802] 
[   17.458839] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.458924] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.458963] Hardware name: linux,dummy-virt (DT)
[   17.458997] Call trace:
[   17.459023]  show_stack+0x20/0x38 (C)
[   17.459073]  dump_stack_lvl+0x8c/0xd0
[   17.459122]  print_report+0x310/0x5d0
[   17.459170]  kasan_report+0xdc/0x128
[   17.459220]  __asan_report_load1_noabort+0x20/0x30
[   17.459283]  kasan_alloca_oob_left+0x2b8/0x310
[   17.459341]  kunit_try_run_case+0x170/0x3f0
[   17.459389]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.459445]  kthread+0x328/0x630
[   17.459493]  ret_from_fork+0x10/0x20
[   17.459543] 
[   17.459576] The buggy address belongs to stack of task kunit_try_catch/251
[   17.459645] 
[   17.459665] The buggy address ffff800080b57b5f belongs to a vmalloc virtual mapping
[   17.459733] The buggy address belongs to the physical page:
[   17.459765] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078c7
[   17.459821] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.459884] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.459935] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.459986] page dumped because: kasan: bad access detected
[   17.460019] 
[   17.460047] Memory state around the buggy address:
[   17.460081]  ffff800080b57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.460132]  ffff800080b57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.460185] >ffff800080b57b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   17.460228]                                                     ^
[   17.460269]  ffff800080b57b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   17.460313]  ffff800080b57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.460353] ==================================================================

[   13.819323] ==================================================================
[   13.819981] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   13.820253] Read of size 1 at addr ffff888103977c3f by task kunit_try_catch/268
[   13.820591] 
[   13.820735] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.820778] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.820790] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.820809] Call Trace:
[   13.820820]  <TASK>
[   13.820833]  dump_stack_lvl+0x73/0xb0
[   13.820861]  print_report+0xd1/0x610
[   13.820882]  ? __virt_addr_valid+0x1db/0x2d0
[   13.820904]  ? kasan_alloca_oob_left+0x320/0x380
[   13.820925]  ? kasan_addr_to_slab+0x11/0xa0
[   13.820945]  ? kasan_alloca_oob_left+0x320/0x380
[   13.820966]  kasan_report+0x141/0x180
[   13.820994]  ? kasan_alloca_oob_left+0x320/0x380
[   13.821031]  __asan_report_load1_noabort+0x18/0x20
[   13.821075]  kasan_alloca_oob_left+0x320/0x380
[   13.821098]  ? __pfx_sched_clock_cpu+0x10/0x10
[   13.821119]  ? finish_task_switch.isra.0+0x153/0x700
[   13.821141]  ? rt_mutex_adjust_prio_chain+0x195e/0x20e0
[   13.821163]  ? trace_hardirqs_on+0x37/0xe0
[   13.821186]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   13.821210]  ? __schedule+0x10cc/0x2b60
[   13.821231]  ? __pfx_read_tsc+0x10/0x10
[   13.821254]  ? ktime_get_ts64+0x86/0x230
[   13.821278]  kunit_try_run_case+0x1a5/0x480
[   13.821301]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.821323]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.821346]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.821368]  ? __kthread_parkme+0x82/0x180
[   13.821387]  ? preempt_count_sub+0x50/0x80
[   13.821410]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.821433]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.821455]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.821517]  kthread+0x337/0x6f0
[   13.821536]  ? trace_preempt_on+0x20/0xc0
[   13.821557]  ? __pfx_kthread+0x10/0x10
[   13.821577]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.821597]  ? calculate_sigpending+0x7b/0xa0
[   13.821620]  ? __pfx_kthread+0x10/0x10
[   13.821640]  ret_from_fork+0x116/0x1d0
[   13.821657]  ? __pfx_kthread+0x10/0x10
[   13.821677]  ret_from_fork_asm+0x1a/0x30
[   13.821705]  </TASK>
[   13.821715] 
[   13.832504] The buggy address belongs to stack of task kunit_try_catch/268
[   13.833016] 
[   13.833231] The buggy address belongs to the physical page:
[   13.833613] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103977
[   13.834099] flags: 0x200000000000000(node=0|zone=2)
[   13.834630] raw: 0200000000000000 ffffea00040e5dc8 ffffea00040e5dc8 0000000000000000
[   13.834944] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.835604] page dumped because: kasan: bad access detected
[   13.835841] 
[   13.835911] Memory state around the buggy address:
[   13.836073]  ffff888103977b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.836281]  ffff888103977b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.836486] >ffff888103977c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.836690]                                         ^
[   13.836847]  ffff888103977c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.837067]  ffff888103977d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.837279] ==================================================================