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

Environment
qemu-arm64
qemu-x86_64

[   19.409677] ==================================================================
[   19.409743] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   19.409812] Read of size 1 at addr ffff800080a77b4a by task kunit_try_catch/253
[   19.409867] 
[   19.409909] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5 #1 PREEMPT 
[   19.410003] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   19.410035] Hardware name: linux,dummy-virt (DT)
[   19.410071] Call trace:
[   19.411451]  show_stack+0x20/0x38 (C)
[   19.411760]  dump_stack_lvl+0x8c/0xd0
[   19.411856]  print_report+0x310/0x608
[   19.411927]  kasan_report+0xdc/0x128
[   19.411979]  __asan_report_load1_noabort+0x20/0x30
[   19.412075]  kasan_alloca_oob_right+0x2dc/0x340
[   19.412161]  kunit_try_run_case+0x170/0x3f0
[   19.412224]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.412289]  kthread+0x328/0x630
[   19.412345]  ret_from_fork+0x10/0x20
[   19.412403] 
[   19.412434] The buggy address belongs to stack of task kunit_try_catch/253
[   19.412499] 
[   19.412538] The buggy address belongs to the virtual mapping at
[   19.412538]  [ffff800080a70000, ffff800080a79000) created by:
[   19.412538]  kernel_clone+0x150/0x7a8
[   19.412623] 
[   19.412650] The buggy address belongs to the physical page:
[   19.412686] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106c15
[   19.412764] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.412843] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.412910] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.412970] page dumped because: kasan: bad access detected
[   19.413013] 
[   19.413042] Memory state around the buggy address:
[   19.413081]  ffff800080a77a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.413970]  ffff800080a77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.414025] >ffff800080a77b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   19.414100]                                               ^
[   19.414144]  ffff800080a77b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.414529]  ffff800080a77c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.414620] ==================================================================

[   14.602173] ==================================================================
[   14.602648] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.603021] Read of size 1 at addr ffff888103aafc4a by task kunit_try_catch/270
[   14.603405] 
[   14.603511] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.603562] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.603573] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.603607] Call Trace:
[   14.603621]  <TASK>
[   14.603639]  dump_stack_lvl+0x73/0xb0
[   14.603674]  print_report+0xd1/0x650
[   14.603697]  ? __virt_addr_valid+0x1db/0x2d0
[   14.603723]  ? kasan_alloca_oob_right+0x329/0x390
[   14.603746]  ? kasan_addr_to_slab+0x11/0xa0
[   14.603767]  ? kasan_alloca_oob_right+0x329/0x390
[   14.603856]  kasan_report+0x141/0x180
[   14.603881]  ? kasan_alloca_oob_right+0x329/0x390
[   14.603909]  __asan_report_load1_noabort+0x18/0x20
[   14.603935]  kasan_alloca_oob_right+0x329/0x390
[   14.603959]  ? finish_task_switch.isra.0+0x153/0x700
[   14.603986]  ? preempt_schedule_common+0xbe/0x110
[   14.604011]  ? trace_hardirqs_on+0x37/0xe0
[   14.604038]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.604064]  ? __schedule+0x10cc/0x2b60
[   14.604086]  ? __pfx_read_tsc+0x10/0x10
[   14.604108]  ? ktime_get_ts64+0x86/0x230
[   14.604133]  kunit_try_run_case+0x1a5/0x480
[   14.604160]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.604184]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.604208]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.604233]  ? __kthread_parkme+0x82/0x180
[   14.604256]  ? preempt_count_sub+0x50/0x80
[   14.604279]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.604303]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.604329]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.604354]  kthread+0x337/0x6f0
[   14.604373]  ? trace_preempt_on+0x20/0xc0
[   14.604395]  ? __pfx_kthread+0x10/0x10
[   14.604416]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.604438]  ? calculate_sigpending+0x7b/0xa0
[   14.604463]  ? __pfx_kthread+0x10/0x10
[   14.604484]  ret_from_fork+0x116/0x1d0
[   14.604503]  ? __pfx_kthread+0x10/0x10
[   14.604523]  ret_from_fork_asm+0x1a/0x30
[   14.604556]  </TASK>
[   14.604567] 
[   14.612620] The buggy address belongs to stack of task kunit_try_catch/270
[   14.613053] 
[   14.613159] The buggy address belongs to the physical page:
[   14.613414] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103aaf
[   14.613706] flags: 0x200000000000000(node=0|zone=2)
[   14.613950] raw: 0200000000000000 ffffea00040eabc8 ffffea00040eabc8 0000000000000000
[   14.614237] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.614817] page dumped because: kasan: bad access detected
[   14.615048] 
[   14.615141] Memory state around the buggy address:
[   14.615340]  ffff888103aafb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.615580]  ffff888103aafb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.615808] >ffff888103aafc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.616023]                                               ^
[   14.616280]  ffff888103aafc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.616638]  ffff888103aafd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.617154] ==================================================================