Hay
Date
July 19, 2025, 11:11 a.m.

Environment
qemu-arm64
qemu-x86_64

[   17.471261] ==================================================================
[   17.471344] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   17.471404] Read of size 1 at addr ffff800080a77b5f by task kunit_try_catch/252
[   17.471457] 
[   17.471489] CPU: 1 UID: 0 PID: 252 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.472930] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.473077] Hardware name: linux,dummy-virt (DT)
[   17.473110] Call trace:
[   17.473136]  show_stack+0x20/0x38 (C)
[   17.473193]  dump_stack_lvl+0x8c/0xd0
[   17.473243]  print_report+0x310/0x5d0
[   17.473291]  kasan_report+0xdc/0x128
[   17.473337]  __asan_report_load1_noabort+0x20/0x30
[   17.473393]  kasan_alloca_oob_left+0x2b8/0x310
[   17.474253]  kunit_try_run_case+0x170/0x3f0
[   17.474554]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.474615]  kthread+0x328/0x630
[   17.475032]  ret_from_fork+0x10/0x20
[   17.475488] 
[   17.475668] The buggy address belongs to stack of task kunit_try_catch/252
[   17.476014] 
[   17.476183] The buggy address ffff800080a77b5f belongs to a vmalloc virtual mapping
[   17.476230] The buggy address belongs to the physical page:
[   17.476763] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106e85
[   17.477032] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.477257] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.477609] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.477931] page dumped because: kasan: bad access detected
[   17.477973] 
[   17.477993] Memory state around the buggy address:
[   17.478029]  ffff800080a77a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.478074]  ffff800080a77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.478124] >ffff800080a77b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   17.478491]                                                     ^
[   17.478547]  ffff800080a77b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   17.478594]  ffff800080a77c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.478636] ==================================================================

[   13.858356] ==================================================================
[   13.858871] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   13.859355] Read of size 1 at addr ffff888103a7fc3f by task kunit_try_catch/269
[   13.860149] 
[   13.860379] CPU: 1 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.860433] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.860444] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.860467] Call Trace:
[   13.860480]  <TASK>
[   13.860506]  dump_stack_lvl+0x73/0xb0
[   13.860539]  print_report+0xd1/0x610
[   13.860560]  ? __virt_addr_valid+0x1db/0x2d0
[   13.860584]  ? kasan_alloca_oob_left+0x320/0x380
[   13.860606]  ? kasan_addr_to_slab+0x11/0xa0
[   13.860627]  ? kasan_alloca_oob_left+0x320/0x380
[   13.860650]  kasan_report+0x141/0x180
[   13.860672]  ? kasan_alloca_oob_left+0x320/0x380
[   13.860698]  __asan_report_load1_noabort+0x18/0x20
[   13.860723]  kasan_alloca_oob_left+0x320/0x380
[   13.860747]  ? finish_task_switch.isra.0+0x153/0x700
[   13.860770]  ? __schedule+0x100e/0x2b60
[   13.860791]  ? trace_hardirqs_on+0x37/0xe0
[   13.860816]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   13.860841]  ? __schedule+0x10cc/0x2b60
[   13.860862]  ? __pfx_read_tsc+0x10/0x10
[   13.860882]  ? ktime_get_ts64+0x86/0x230
[   13.860906]  kunit_try_run_case+0x1a5/0x480
[   13.860931]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.860954]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.860978]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.861002]  ? __kthread_parkme+0x82/0x180
[   13.861021]  ? preempt_count_sub+0x50/0x80
[   13.861182]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.861212]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.861237]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.861261]  kthread+0x337/0x6f0
[   13.861280]  ? trace_preempt_on+0x20/0xc0
[   13.861301]  ? __pfx_kthread+0x10/0x10
[   13.861321]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.861342]  ? calculate_sigpending+0x7b/0xa0
[   13.861366]  ? __pfx_kthread+0x10/0x10
[   13.861387]  ret_from_fork+0x116/0x1d0
[   13.861406]  ? __pfx_kthread+0x10/0x10
[   13.861425]  ret_from_fork_asm+0x1a/0x30
[   13.861456]  </TASK>
[   13.861467] 
[   13.873084] The buggy address belongs to stack of task kunit_try_catch/269
[   13.873687] 
[   13.873812] The buggy address belongs to the physical page:
[   13.874302] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a7f
[   13.874661] flags: 0x200000000000000(node=0|zone=2)
[   13.875002] raw: 0200000000000000 ffffea00040e9fc8 ffffea00040e9fc8 0000000000000000
[   13.875676] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.876015] page dumped because: kasan: bad access detected
[   13.876744] 
[   13.876844] Memory state around the buggy address:
[   13.877052]  ffff888103a7fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.877649]  ffff888103a7fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.877973] >ffff888103a7fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.878440]                                         ^
[   13.878694]  ffff888103a7fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.879174]  ffff888103a7fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.879578] ==================================================================