Hay
Date
June 3, 2025, 7:38 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.641169] ==================================================================
[   20.641250] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   20.641317] Read of size 1 at addr ffff800080a97b5f by task kunit_try_catch/251
[   20.641610] 
[   20.641735] CPU: 1 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT 
[   20.642043] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.642183] Hardware name: linux,dummy-virt (DT)
[   20.642358] Call trace:
[   20.642382]  show_stack+0x20/0x38 (C)
[   20.642679]  dump_stack_lvl+0x8c/0xd0
[   20.643283]  print_report+0x310/0x608
[   20.643568]  kasan_report+0xdc/0x128
[   20.643644]  __asan_report_load1_noabort+0x20/0x30
[   20.643698]  kasan_alloca_oob_left+0x2b8/0x310
[   20.643747]  kunit_try_run_case+0x170/0x3f0
[   20.643799]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.643855]  kthread+0x328/0x630
[   20.643900]  ret_from_fork+0x10/0x20
[   20.644153] 
[   20.644224] The buggy address belongs to stack of task kunit_try_catch/251
[   20.644494] 
[   20.644528] The buggy address belongs to the virtual mapping at
[   20.644528]  [ffff800080a90000, ffff800080a99000) created by:
[   20.644528]  kernel_clone+0x150/0x7a8
[   20.644610] 
[   20.644634] The buggy address belongs to the physical page:
[   20.644668] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065cd
[   20.644722] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.644792] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.644862] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.644906] page dumped because: kasan: bad access detected
[   20.645103] 
[   20.645125] Memory state around the buggy address:
[   20.645477]  ffff800080a97a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.645770]  ffff800080a97a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.645817] >ffff800080a97b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   20.645858]                                                     ^
[   20.645951]  ffff800080a97b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.645996]  ffff800080a97c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.646151] ==================================================================


[   16.727637] ==================================================================
[   16.728296] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   16.728777] Read of size 1 at addr ffff888103a1fc3f by task kunit_try_catch/268
[   16.729225] 
[   16.729409] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT(voluntary) 
[   16.729489] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.729506] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.729544] Call Trace:
[   16.729563]  <TASK>
[   16.729589]  dump_stack_lvl+0x73/0xb0
[   16.729634]  print_report+0xd1/0x650
[   16.729666]  ? __virt_addr_valid+0x1db/0x2d0
[   16.729694]  ? kasan_alloca_oob_left+0x320/0x380
[   16.729793]  ? kasan_addr_to_slab+0x11/0xa0
[   16.729819]  ? kasan_alloca_oob_left+0x320/0x380
[   16.729861]  kasan_report+0x141/0x180
[   16.729888]  ? kasan_alloca_oob_left+0x320/0x380
[   16.729919]  __asan_report_load1_noabort+0x18/0x20
[   16.729943]  kasan_alloca_oob_left+0x320/0x380
[   16.729971]  ? finish_task_switch.isra.0+0x153/0x700
[   16.729997]  ? __ww_mutex_lock.constprop.0+0xc5e/0x1e90
[   16.730024]  ? trace_hardirqs_on+0x37/0xe0
[   16.730052]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   16.730080]  ? __schedule+0x10cc/0x2b60
[   16.730105]  ? __pfx_read_tsc+0x10/0x10
[   16.730142]  ? ktime_get_ts64+0x86/0x230
[   16.730175]  kunit_try_run_case+0x1a5/0x480
[   16.730225]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.730249]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   16.730275]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.730301]  ? __kthread_parkme+0x82/0x180
[   16.730325]  ? preempt_count_sub+0x50/0x80
[   16.730350]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.730373]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.730399]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.730426]  kthread+0x337/0x6f0
[   16.730447]  ? trace_preempt_on+0x20/0xc0
[   16.730490]  ? __pfx_kthread+0x10/0x10
[   16.730515]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.730539]  ? calculate_sigpending+0x7b/0xa0
[   16.730567]  ? __pfx_kthread+0x10/0x10
[   16.730590]  ret_from_fork+0x116/0x1d0
[   16.730613]  ? __pfx_kthread+0x10/0x10
[   16.730636]  ret_from_fork_asm+0x1a/0x30
[   16.730670]  </TASK>
[   16.730743] 
[   16.739922] The buggy address belongs to stack of task kunit_try_catch/268
[   16.740481] 
[   16.740651] The buggy address belongs to the physical page:
[   16.740947] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a1f
[   16.741472] flags: 0x200000000000000(node=0|zone=2)
[   16.741650] raw: 0200000000000000 ffffea00040e87c8 ffffea00040e87c8 0000000000000000
[   16.742136] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   16.742657] page dumped because: kasan: bad access detected
[   16.742924] 
[   16.742988] Memory state around the buggy address:
[   16.743111]  ffff888103a1fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.743315]  ffff888103a1fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.743836] >ffff888103a1fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   16.744101]                                         ^
[   16.744231]  ffff888103a1fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   16.744385]  ffff888103a1fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   16.745027] ==================================================================