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

Environment
qemu-arm64
qemu-x86_64

[   18.681621] ==================================================================
[   18.681711] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   18.682119] Read of size 1 at addr ffff800080907b5f by task kunit_try_catch/251
[   18.682236] 
[   18.682370] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.682461] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.682542] Hardware name: linux,dummy-virt (DT)
[   18.682576] Call trace:
[   18.682631]  show_stack+0x20/0x38 (C)
[   18.682685]  dump_stack_lvl+0x8c/0xd0
[   18.682735]  print_report+0x310/0x5d0
[   18.683024]  kasan_report+0xdc/0x128
[   18.683109]  __asan_report_load1_noabort+0x20/0x30
[   18.683165]  kasan_alloca_oob_left+0x2b8/0x310
[   18.683480]  kunit_try_run_case+0x170/0x3f0
[   18.683646]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.683722]  kthread+0x328/0x630
[   18.683769]  ret_from_fork+0x10/0x20
[   18.683827] 
[   18.683850] The buggy address belongs to stack of task kunit_try_catch/251
[   18.684462] 
[   18.684508] The buggy address ffff800080907b5f belongs to a vmalloc virtual mapping
[   18.684568] The buggy address belongs to the physical page:
[   18.684698] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065fb
[   18.685027] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.685155] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.685277] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.685548] page dumped because: kasan: bad access detected
[   18.685681] 
[   18.685743] Memory state around the buggy address:
[   18.686058]  ffff800080907a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.686133]  ffff800080907a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.686314] >ffff800080907b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   18.686421]                                                     ^
[   18.686771]  ffff800080907b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   18.686875]  ffff800080907c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.687006] ==================================================================

[   14.851703] ==================================================================
[   14.852571] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   14.852888] Read of size 1 at addr ffff888103bb7c3f by task kunit_try_catch/268
[   14.853341] 
[   14.853436] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.853504] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.853516] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.853537] Call Trace:
[   14.853548]  <TASK>
[   14.853578]  dump_stack_lvl+0x73/0xb0
[   14.853609]  print_report+0xd1/0x610
[   14.853631]  ? __virt_addr_valid+0x1db/0x2d0
[   14.853655]  ? kasan_alloca_oob_left+0x320/0x380
[   14.853678]  ? kasan_addr_to_slab+0x11/0xa0
[   14.853699]  ? kasan_alloca_oob_left+0x320/0x380
[   14.853721]  kasan_report+0x141/0x180
[   14.853744]  ? kasan_alloca_oob_left+0x320/0x380
[   14.853771]  __asan_report_load1_noabort+0x18/0x20
[   14.853796]  kasan_alloca_oob_left+0x320/0x380
[   14.853821]  ? finish_task_switch.isra.0+0x153/0x700
[   14.853863]  ? __schedule+0x200e/0x2b60
[   14.853884]  ? trace_hardirqs_on+0x37/0xe0
[   14.853909]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   14.853952]  ? __schedule+0x10cc/0x2b60
[   14.853972]  ? __pfx_read_tsc+0x10/0x10
[   14.853995]  ? ktime_get_ts64+0x86/0x230
[   14.854020]  kunit_try_run_case+0x1a5/0x480
[   14.854097]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.854123]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.854149]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.854173]  ? __kthread_parkme+0x82/0x180
[   14.854195]  ? preempt_count_sub+0x50/0x80
[   14.854218]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.854243]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.854279]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.854305]  kthread+0x337/0x6f0
[   14.854324]  ? trace_preempt_on+0x20/0xc0
[   14.854346]  ? __pfx_kthread+0x10/0x10
[   14.854367]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.854389]  ? calculate_sigpending+0x7b/0xa0
[   14.854414]  ? __pfx_kthread+0x10/0x10
[   14.854436]  ret_from_fork+0x116/0x1d0
[   14.854455]  ? __pfx_kthread+0x10/0x10
[   14.854475]  ret_from_fork_asm+0x1a/0x30
[   14.854507]  </TASK>
[   14.854516] 
[   14.863297] The buggy address belongs to stack of task kunit_try_catch/268
[   14.863617] 
[   14.863728] The buggy address belongs to the physical page:
[   14.864006] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103bb7
[   14.864418] flags: 0x200000000000000(node=0|zone=2)
[   14.864633] raw: 0200000000000000 ffffea00040eedc8 ffffea00040eedc8 0000000000000000
[   14.864859] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.865142] page dumped because: kasan: bad access detected
[   14.865431] 
[   14.865555] Memory state around the buggy address:
[   14.865800]  ffff888103bb7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.866356]  ffff888103bb7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.866725] >ffff888103bb7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.866970]                                         ^
[   14.867303]  ffff888103bb7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.867512]  ffff888103bb7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.867870] ==================================================================