Hay
Date
July 10, 2025, 11:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.219057] ==================================================================
[   18.219134] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   18.219195] Read of size 1 at addr ffff800080a87b4a by task kunit_try_catch/253
[   18.219248] 
[   18.219285] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.219371] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.219401] Hardware name: linux,dummy-virt (DT)
[   18.219434] Call trace:
[   18.219461]  show_stack+0x20/0x38 (C)
[   18.219512]  dump_stack_lvl+0x8c/0xd0
[   18.219561]  print_report+0x310/0x608
[   18.219611]  kasan_report+0xdc/0x128
[   18.219660]  __asan_report_load1_noabort+0x20/0x30
[   18.219715]  kasan_alloca_oob_right+0x2dc/0x340
[   18.219766]  kunit_try_run_case+0x170/0x3f0
[   18.219816]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.219872]  kthread+0x328/0x630
[   18.219916]  ret_from_fork+0x10/0x20
[   18.219966] 
[   18.219988] The buggy address belongs to stack of task kunit_try_catch/253
[   18.220100] 
[   18.220173] The buggy address belongs to the virtual mapping at
[   18.220173]  [ffff800080a80000, ffff800080a89000) created by:
[   18.220173]  kernel_clone+0x150/0x7a8
[   18.220464] 
[   18.220500] The buggy address belongs to the physical page:
[   18.220536] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106444
[   18.220633] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.220702] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.220801] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.220885] page dumped because: kasan: bad access detected
[   18.220997] 
[   18.221020] Memory state around the buggy address:
[   18.221062]  ffff800080a87a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.221299]  ffff800080a87a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.221484] >ffff800080a87b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   18.221609]                                               ^
[   18.221690]  ffff800080a87b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   18.221902]  ffff800080a87c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.221976] ==================================================================

[   14.540137] ==================================================================
[   14.540923] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.541241] Read of size 1 at addr ffff888103947c4a by task kunit_try_catch/271
[   14.542408] 
[   14.542659] CPU: 1 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.542705] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.542824] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.542846] Call Trace:
[   14.542857]  <TASK>
[   14.542873]  dump_stack_lvl+0x73/0xb0
[   14.542903]  print_report+0xd1/0x650
[   14.542924]  ? __virt_addr_valid+0x1db/0x2d0
[   14.542946]  ? kasan_alloca_oob_right+0x329/0x390
[   14.542979]  ? kasan_addr_to_slab+0x11/0xa0
[   14.543001]  ? kasan_alloca_oob_right+0x329/0x390
[   14.543025]  kasan_report+0x141/0x180
[   14.543048]  ? kasan_alloca_oob_right+0x329/0x390
[   14.543076]  __asan_report_load1_noabort+0x18/0x20
[   14.543100]  kasan_alloca_oob_right+0x329/0x390
[   14.543124]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.543146]  ? finish_task_switch.isra.0+0x153/0x700
[   14.543169]  ? preempt_schedule_common+0xbe/0x110
[   14.543193]  ? trace_hardirqs_on+0x37/0xe0
[   14.543217]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.543243]  ? __schedule+0x10cc/0x2b60
[   14.543266]  ? __pfx_read_tsc+0x10/0x10
[   14.543287]  ? ktime_get_ts64+0x86/0x230
[   14.543310]  kunit_try_run_case+0x1a5/0x480
[   14.543334]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.543491]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.543517]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.543542]  ? __kthread_parkme+0x82/0x180
[   14.543563]  ? preempt_count_sub+0x50/0x80
[   14.543586]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.543611]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.543637]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.543662]  kthread+0x337/0x6f0
[   14.543682]  ? trace_preempt_on+0x20/0xc0
[   14.543704]  ? __pfx_kthread+0x10/0x10
[   14.543725]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.543746]  ? calculate_sigpending+0x7b/0xa0
[   14.543770]  ? __pfx_kthread+0x10/0x10
[   14.543791]  ret_from_fork+0x116/0x1d0
[   14.543809]  ? __pfx_kthread+0x10/0x10
[   14.543830]  ret_from_fork_asm+0x1a/0x30
[   14.543860]  </TASK>
[   14.543869] 
[   14.557141] The buggy address belongs to stack of task kunit_try_catch/271
[   14.557894] 
[   14.558055] The buggy address belongs to the physical page:
[   14.558636] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103947
[   14.559305] flags: 0x200000000000000(node=0|zone=2)
[   14.559812] raw: 0200000000000000 ffffea00040e51c8 ffffea00040e51c8 0000000000000000
[   14.560049] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.560281] page dumped because: kasan: bad access detected
[   14.560788] 
[   14.560950] Memory state around the buggy address:
[   14.561462]  ffff888103947b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.562071]  ffff888103947b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.562773] >ffff888103947c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.563446]                                               ^
[   14.563633]  ffff888103947c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.563937]  ffff888103947d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.564670] ==================================================================