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

Environment
qemu-arm64
qemu-x86_64

[   32.918393] ==================================================================
[   32.918454] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   32.918869] Read of size 1 at addr ffff800080b47b4a by task kunit_try_catch/284
[   32.918940] 
[   32.919132] CPU: 0 UID: 0 PID: 284 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT 
[   32.919308] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.919341] Hardware name: linux,dummy-virt (DT)
[   32.919430] Call trace:
[   32.919596]  show_stack+0x20/0x38 (C)
[   32.919769]  dump_stack_lvl+0x8c/0xd0
[   32.920071]  print_report+0x310/0x5d0
[   32.920166]  kasan_report+0xdc/0x128
[   32.920345]  __asan_report_load1_noabort+0x20/0x30
[   32.920437]  kasan_alloca_oob_right+0x2dc/0x340
[   32.920780]  kunit_try_run_case+0x170/0x3f0
[   32.920901]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.921024]  kthread+0x328/0x630
[   32.921213]  ret_from_fork+0x10/0x20
[   32.921367] 
[   32.921436] The buggy address belongs to stack of task kunit_try_catch/284
[   32.921598] 
[   32.921622] The buggy address ffff800080b47b4a belongs to a vmalloc virtual mapping
[   32.921710] The buggy address belongs to the physical page:
[   32.921888] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109bb1
[   32.922160] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.922265] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   32.922439] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   32.922578] page dumped because: kasan: bad access detected
[   32.922958] 
[   32.923080] Memory state around the buggy address:
[   32.923222]  ffff800080b47a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.923406]  ffff800080b47a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.923629] >ffff800080b47b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   32.923893]                                               ^
[   32.924044]  ffff800080b47b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   32.924225]  ffff800080b47c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   32.924288] ==================================================================

[   25.153535] ==================================================================
[   25.154226] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   25.154834] Read of size 1 at addr ffff8881061efc4a by task kunit_try_catch/302
[   25.155108] 
[   25.155702] CPU: 1 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) 
[   25.155760] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.155774] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.155797] Call Trace:
[   25.155809]  <TASK>
[   25.155829]  dump_stack_lvl+0x73/0xb0
[   25.155863]  print_report+0xd1/0x610
[   25.155888]  ? __virt_addr_valid+0x1db/0x2d0
[   25.155913]  ? kasan_alloca_oob_right+0x329/0x390
[   25.155936]  ? kasan_addr_to_slab+0x11/0xa0
[   25.156059]  ? kasan_alloca_oob_right+0x329/0x390
[   25.156082]  kasan_report+0x141/0x180
[   25.156104]  ? kasan_alloca_oob_right+0x329/0x390
[   25.156131]  __asan_report_load1_noabort+0x18/0x20
[   25.156155]  kasan_alloca_oob_right+0x329/0x390
[   25.156177]  ? update_curr+0x7d/0x7f0
[   25.156202]  ? finish_task_switch.isra.0+0x153/0x700
[   25.156224]  ? down_interruptible+0x1e/0xa0
[   25.156250]  ? trace_hardirqs_on+0x37/0xe0
[   25.156276]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   25.156315]  ? __schedule+0x10c6/0x2b60
[   25.156337]  ? __pfx_read_tsc+0x10/0x10
[   25.156360]  ? ktime_get_ts64+0x86/0x230
[   25.156385]  kunit_try_run_case+0x1a5/0x480
[   25.156410]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.156432]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.156454]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.156477]  ? __kthread_parkme+0x82/0x180
[   25.156498]  ? preempt_count_sub+0x50/0x80
[   25.156519]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.156542]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.156569]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.156596]  kthread+0x337/0x6f0
[   25.156615]  ? trace_preempt_on+0x20/0xc0
[   25.156637]  ? __pfx_kthread+0x10/0x10
[   25.156657]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.156677]  ? calculate_sigpending+0x7b/0xa0
[   25.156703]  ? __pfx_kthread+0x10/0x10
[   25.156723]  ret_from_fork+0x116/0x1d0
[   25.156742]  ? __pfx_kthread+0x10/0x10
[   25.156762]  ret_from_fork_asm+0x1a/0x30
[   25.156793]  </TASK>
[   25.156804] 
[   25.164404] The buggy address belongs to stack of task kunit_try_catch/302
[   25.164736] 
[   25.164823] The buggy address belongs to the physical page:
[   25.165254] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061ef
[   25.165648] flags: 0x200000000000000(node=0|zone=2)
[   25.166060] raw: 0200000000000000 ffffea0004187bc8 ffffea0004187bc8 0000000000000000
[   25.166287] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   25.166573] page dumped because: kasan: bad access detected
[   25.166836] 
[   25.166996] Memory state around the buggy address:
[   25.167265]  ffff8881061efb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.167593]  ffff8881061efb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.167833] >ffff8881061efc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   25.168181]                                               ^
[   25.168386]  ffff8881061efc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   25.168785]  ffff8881061efd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   25.169089] ==================================================================