Hay
Date
July 25, 2025, 3:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   34.584220] ==================================================================
[   34.584289] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   34.584390] Read of size 1 at addr ffff800080bc7b4a by task kunit_try_catch/285
[   34.584444] 
[   34.584477] CPU: 0 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250725 #1 PREEMPT 
[   34.584569] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   34.584602] Hardware name: linux,dummy-virt (DT)
[   34.584635] Call trace:
[   34.584680]  show_stack+0x20/0x38 (C)
[   34.584730]  dump_stack_lvl+0x8c/0xd0
[   34.584790]  print_report+0x310/0x5e8
[   34.584837]  kasan_report+0xdc/0x128
[   34.584892]  __asan_report_load1_noabort+0x20/0x30
[   34.584943]  kasan_alloca_oob_right+0x2dc/0x340
[   34.584993]  kunit_try_run_case+0x170/0x3f0
[   34.585045]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.585097]  kthread+0x328/0x630
[   34.585140]  ret_from_fork+0x10/0x20
[   34.585196] 
[   34.585220] The buggy address belongs to stack of task kunit_try_catch/285
[   34.585275] 
[   34.585297] The buggy address belongs to a 8-page vmalloc region starting at 0xffff800080bc0000 allocated at kernel_clone+0x150/0x7b0
[   34.585408] The buggy address belongs to the physical page:
[   34.585445] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a7e
[   34.585507] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   34.585570] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   34.585622] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   34.586444] page dumped because: kasan: bad access detected
[   34.586499] 
[   34.586565] Memory state around the buggy address:
[   34.586603]  ffff800080bc7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.586699]  ffff800080bc7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.586845] >ffff800080bc7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   34.586951]                                               ^
[   34.587179]  ffff800080bc7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   34.587258]  ffff800080bc7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   34.587400] ==================================================================

[   27.679632] ==================================================================
[   27.680394] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   27.680736] Read of size 1 at addr ffff8881061dfc4a by task kunit_try_catch/302
[   27.681259] 
[   27.681347] CPU: 1 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) 
[   27.681398] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.681412] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.681433] Call Trace:
[   27.681447]  <TASK>
[   27.681462]  dump_stack_lvl+0x73/0xb0
[   27.681493]  print_report+0xd1/0x640
[   27.681518]  ? __virt_addr_valid+0x1db/0x2d0
[   27.681544]  ? kasan_alloca_oob_right+0x329/0x390
[   27.681567]  ? kasan_addr_to_slab+0x11/0xa0
[   27.681589]  ? kasan_alloca_oob_right+0x329/0x390
[   27.681614]  kasan_report+0x141/0x180
[   27.681637]  ? kasan_alloca_oob_right+0x329/0x390
[   27.681666]  __asan_report_load1_noabort+0x18/0x20
[   27.681692]  kasan_alloca_oob_right+0x329/0x390
[   27.681718]  ? finish_task_switch.isra.0+0x153/0x700
[   27.681742]  ? mutex_lock_interruptible+0xbe/0xe0
[   27.681768]  ? trace_hardirqs_on+0x37/0xe0
[   27.681852]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   27.681881]  ? __schedule+0x10da/0x2b60
[   27.681904]  ? __pfx_read_tsc+0x10/0x10
[   27.681928]  ? ktime_get_ts64+0x86/0x230
[   27.681969]  kunit_try_run_case+0x1a5/0x480
[   27.681995]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.682019]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   27.682041]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   27.682079]  ? __kthread_parkme+0x82/0x180
[   27.682100]  ? preempt_count_sub+0x50/0x80
[   27.682125]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.682150]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.682175]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   27.682201]  kthread+0x337/0x6f0
[   27.682223]  ? trace_preempt_on+0x20/0xc0
[   27.682247]  ? __pfx_kthread+0x10/0x10
[   27.682269]  ? _raw_spin_unlock_irq+0x47/0x80
[   27.682294]  ? calculate_sigpending+0x7b/0xa0
[   27.682318]  ? __pfx_kthread+0x10/0x10
[   27.682341]  ret_from_fork+0x116/0x1d0
[   27.682361]  ? __pfx_kthread+0x10/0x10
[   27.682383]  ret_from_fork_asm+0x1a/0x30
[   27.682415]  </TASK>
[   27.682427] 
[   27.690578] The buggy address belongs to stack of task kunit_try_catch/302
[   27.691094] 
[   27.691176] The buggy address belongs to the physical page:
[   27.691419] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061df
[   27.691734] flags: 0x200000000000000(node=0|zone=2)
[   27.692049] raw: 0200000000000000 ffffea00041877c8 ffffea00041877c8 0000000000000000
[   27.692379] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   27.692669] page dumped because: kasan: bad access detected
[   27.692978] 
[   27.693052] Memory state around the buggy address:
[   27.693364]  ffff8881061dfb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.693653]  ffff8881061dfb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.693988] >ffff8881061dfc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   27.694210]                                               ^
[   27.694388]  ffff8881061dfc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   27.694609]  ffff8881061dfd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   27.694917] ==================================================================