Hay
Date
June 16, 2025, 7:07 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.158747] ==================================================================
[   22.159553] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   22.159688] Read of size 1 at addr ffff800080a47b5f by task kunit_try_catch/260
[   22.159763] 
[   22.159950] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT 
[   22.160407] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.160564] Hardware name: linux,dummy-virt (DT)
[   22.160748] Call trace:
[   22.160817]  show_stack+0x20/0x38 (C)
[   22.160949]  dump_stack_lvl+0x8c/0xd0
[   22.161050]  print_report+0x310/0x608
[   22.161110]  kasan_report+0xdc/0x128
[   22.161172]  __asan_report_load1_noabort+0x20/0x30
[   22.161229]  kasan_alloca_oob_left+0x2b8/0x310
[   22.161285]  kunit_try_run_case+0x170/0x3f0
[   22.161460]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.161921]  kthread+0x328/0x630
[   22.161991]  ret_from_fork+0x10/0x20
[   22.162114] 
[   22.162150] The buggy address belongs to stack of task kunit_try_catch/260
[   22.162409] 
[   22.162630] The buggy address belongs to the virtual mapping at
[   22.162630]  [ffff800080a40000, ffff800080a49000) created by:
[   22.162630]  kernel_clone+0x150/0x7a8
[   22.162743] 
[   22.162906] The buggy address belongs to the physical page:
[   22.163124] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063f4
[   22.163352] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   22.163555] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   22.163884] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   22.164016] page dumped because: kasan: bad access detected
[   22.164066] 
[   22.164093] Memory state around the buggy address:
[   22.164253]  ffff800080a47a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.164328]  ffff800080a47a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.164388] >ffff800080a47b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   22.164447]                                                     ^
[   22.164499]  ffff800080a47b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   22.164553]  ffff800080a47c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   22.164602] ==================================================================

[   13.327728] ==================================================================
[   13.328239] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   13.328536] Read of size 1 at addr ffff8881039ffc3f by task kunit_try_catch/276
[   13.329143] 
[   13.329253] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) 
[   13.329299] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.329310] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.329330] Call Trace:
[   13.329342]  <TASK>
[   13.329357]  dump_stack_lvl+0x73/0xb0
[   13.329385]  print_report+0xd1/0x650
[   13.329490]  ? __virt_addr_valid+0x1db/0x2d0
[   13.329514]  ? kasan_alloca_oob_left+0x320/0x380
[   13.329552]  ? kasan_addr_to_slab+0x11/0xa0
[   13.329572]  ? kasan_alloca_oob_left+0x320/0x380
[   13.329608]  kasan_report+0x141/0x180
[   13.329629]  ? kasan_alloca_oob_left+0x320/0x380
[   13.329655]  __asan_report_load1_noabort+0x18/0x20
[   13.329678]  kasan_alloca_oob_left+0x320/0x380
[   13.329706]  ? finish_task_switch.isra.0+0x153/0x700
[   13.329727]  ? rwsem_down_read_slowpath+0x58e/0xb90
[   13.329752]  ? trace_hardirqs_on+0x37/0xe0
[   13.329777]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   13.329801]  ? __schedule+0x10cc/0x2b60
[   13.329822]  ? __pfx_read_tsc+0x10/0x10
[   13.329842]  ? ktime_get_ts64+0x86/0x230
[   13.329865]  kunit_try_run_case+0x1a5/0x480
[   13.329889]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.329910]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.329942]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.329964]  ? __kthread_parkme+0x82/0x180
[   13.329983]  ? preempt_count_sub+0x50/0x80
[   13.330005]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.330028]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.330050]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.330073]  kthread+0x337/0x6f0
[   13.330092]  ? trace_preempt_on+0x20/0xc0
[   13.330113]  ? __pfx_kthread+0x10/0x10
[   13.330133]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.330152]  ? calculate_sigpending+0x7b/0xa0
[   13.330176]  ? __pfx_kthread+0x10/0x10
[   13.330197]  ret_from_fork+0x116/0x1d0
[   13.330215]  ? __pfx_kthread+0x10/0x10
[   13.330234]  ret_from_fork_asm+0x1a/0x30
[   13.330264]  </TASK>
[   13.330274] 
[   13.340653] The buggy address belongs to stack of task kunit_try_catch/276
[   13.340938] 
[   13.341024] The buggy address belongs to the physical page:
[   13.341242] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039ff
[   13.342103] flags: 0x200000000000000(node=0|zone=2)
[   13.342397] raw: 0200000000000000 ffffea00040e7fc8 ffffea00040e7fc8 0000000000000000
[   13.342915] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.343491] page dumped because: kasan: bad access detected
[   13.343860] 
[   13.344150] Memory state around the buggy address:
[   13.344362]  ffff8881039ffb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.344907]  ffff8881039ffb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.345214] >ffff8881039ffc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.345924]                                         ^
[   13.346222]  ffff8881039ffc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.346728]  ffff8881039ffd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.347027] ==================================================================