Hay
Date
July 9, 2025, 2:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.392797] ==================================================================
[   19.392894] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   19.392968] Read of size 1 at addr ffff800080a77b5f by task kunit_try_catch/251
[   19.393025] 
[   19.393067] CPU: 1 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5 #1 PREEMPT 
[   19.393178] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   19.393215] Hardware name: linux,dummy-virt (DT)
[   19.393249] Call trace:
[   19.393275]  show_stack+0x20/0x38 (C)
[   19.393331]  dump_stack_lvl+0x8c/0xd0
[   19.393383]  print_report+0x310/0x608
[   19.393432]  kasan_report+0xdc/0x128
[   19.393483]  __asan_report_load1_noabort+0x20/0x30
[   19.394099]  kasan_alloca_oob_left+0x2b8/0x310
[   19.394179]  kunit_try_run_case+0x170/0x3f0
[   19.394235]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.394835]  kthread+0x328/0x630
[   19.394997]  ret_from_fork+0x10/0x20
[   19.395116] 
[   19.395230] The buggy address belongs to stack of task kunit_try_catch/251
[   19.395608] 
[   19.395699] The buggy address belongs to the virtual mapping at
[   19.395699]  [ffff800080a70000, ffff800080a79000) created by:
[   19.395699]  kernel_clone+0x150/0x7a8
[   19.395843] 
[   19.395957] The buggy address belongs to the physical page:
[   19.396012] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106c15
[   19.396156] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.396254] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.396337] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.396658] page dumped because: kasan: bad access detected
[   19.396830] 
[   19.396989] Memory state around the buggy address:
[   19.397094]  ffff800080a77a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.397555]  ffff800080a77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.397750] >ffff800080a77b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   19.397970]                                                     ^
[   19.398107]  ffff800080a77b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.398183]  ffff800080a77c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.398286] ==================================================================

[   14.582168] ==================================================================
[   14.582633] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   14.582987] Read of size 1 at addr ffff888103a7fc3f by task kunit_try_catch/268
[   14.583311] 
[   14.583433] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.583481] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.583492] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.583512] Call Trace:
[   14.583526]  <TASK>
[   14.583541]  dump_stack_lvl+0x73/0xb0
[   14.583570]  print_report+0xd1/0x650
[   14.583603]  ? __virt_addr_valid+0x1db/0x2d0
[   14.583626]  ? kasan_alloca_oob_left+0x320/0x380
[   14.583648]  ? kasan_addr_to_slab+0x11/0xa0
[   14.583670]  ? kasan_alloca_oob_left+0x320/0x380
[   14.583707]  kasan_report+0x141/0x180
[   14.583729]  ? kasan_alloca_oob_left+0x320/0x380
[   14.583758]  __asan_report_load1_noabort+0x18/0x20
[   14.583783]  kasan_alloca_oob_left+0x320/0x380
[   14.583825]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.583857]  ? finish_task_switch.isra.0+0x153/0x700
[   14.583882]  ? preempt_schedule_common+0xbe/0x110
[   14.583906]  ? trace_hardirqs_on+0x37/0xe0
[   14.583932]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   14.583958]  ? __schedule+0x10cc/0x2b60
[   14.583979]  ? __pfx_read_tsc+0x10/0x10
[   14.584000]  ? ktime_get_ts64+0x86/0x230
[   14.584025]  kunit_try_run_case+0x1a5/0x480
[   14.584049]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.584073]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.584096]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.584119]  ? __kthread_parkme+0x82/0x180
[   14.584142]  ? preempt_count_sub+0x50/0x80
[   14.584165]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.584189]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.584214]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.584238]  kthread+0x337/0x6f0
[   14.584257]  ? trace_preempt_on+0x20/0xc0
[   14.584279]  ? __pfx_kthread+0x10/0x10
[   14.584300]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.584322]  ? calculate_sigpending+0x7b/0xa0
[   14.584347]  ? __pfx_kthread+0x10/0x10
[   14.584368]  ret_from_fork+0x116/0x1d0
[   14.584387]  ? __pfx_kthread+0x10/0x10
[   14.584408]  ret_from_fork_asm+0x1a/0x30
[   14.584439]  </TASK>
[   14.584449] 
[   14.592359] The buggy address belongs to stack of task kunit_try_catch/268
[   14.592852] 
[   14.592950] The buggy address belongs to the physical page:
[   14.593128] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a7f
[   14.593492] flags: 0x200000000000000(node=0|zone=2)
[   14.593749] raw: 0200000000000000 ffffea00040e9fc8 ffffea00040e9fc8 0000000000000000
[   14.594074] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.594449] page dumped because: kasan: bad access detected
[   14.594636] 
[   14.594704] Memory state around the buggy address:
[   14.595185]  ffff888103a7fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.595493]  ffff888103a7fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.595732] >ffff888103a7fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.595970]                                         ^
[   14.596250]  ffff888103a7fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.596566]  ffff888103a7fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.597052] ==================================================================