Hay
Date
July 6, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.430996] ==================================================================
[   20.431059] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   20.431354] Read of size 1 at addr ffff800080997b4a by task kunit_try_catch/253
[   20.431426] 
[   20.431859] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   20.431963] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.432253] Hardware name: linux,dummy-virt (DT)
[   20.432350] Call trace:
[   20.432462]  show_stack+0x20/0x38 (C)
[   20.432629]  dump_stack_lvl+0x8c/0xd0
[   20.432846]  print_report+0x310/0x608
[   20.432972]  kasan_report+0xdc/0x128
[   20.433028]  __asan_report_load1_noabort+0x20/0x30
[   20.433080]  kasan_alloca_oob_right+0x2dc/0x340
[   20.433135]  kunit_try_run_case+0x170/0x3f0
[   20.433352]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.433423]  kthread+0x328/0x630
[   20.433660]  ret_from_fork+0x10/0x20
[   20.433904] 
[   20.434270] The buggy address belongs to stack of task kunit_try_catch/253
[   20.434443] 
[   20.434532] The buggy address belongs to the virtual mapping at
[   20.434532]  [ffff800080990000, ffff800080999000) created by:
[   20.434532]  kernel_clone+0x150/0x7a8
[   20.434739] 
[   20.434764] The buggy address belongs to the physical page:
[   20.434799] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106437
[   20.435295] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.435649] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.435812] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.436219] page dumped because: kasan: bad access detected
[   20.436267] 
[   20.436301] Memory state around the buggy address:
[   20.436344]  ffff800080997a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.436413]  ffff800080997a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.436513] >ffff800080997b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.436556]                                               ^
[   20.436594]  ffff800080997b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.436648]  ffff800080997c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.436697] ==================================================================

[   13.477313] ==================================================================
[   13.477976] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.478357] Read of size 1 at addr ffff8881039ffc4a by task kunit_try_catch/270
[   13.478741] 
[   13.478886] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.478961] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.478974] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.478997] Call Trace:
[   13.479010]  <TASK>
[   13.479028]  dump_stack_lvl+0x73/0xb0
[   13.479060]  print_report+0xd1/0x650
[   13.479084]  ? __virt_addr_valid+0x1db/0x2d0
[   13.479114]  ? kasan_alloca_oob_right+0x329/0x390
[   13.479137]  ? kasan_addr_to_slab+0x11/0xa0
[   13.479178]  ? kasan_alloca_oob_right+0x329/0x390
[   13.479201]  kasan_report+0x141/0x180
[   13.479223]  ? kasan_alloca_oob_right+0x329/0x390
[   13.479250]  __asan_report_load1_noabort+0x18/0x20
[   13.479275]  kasan_alloca_oob_right+0x329/0x390
[   13.479299]  ? finish_task_switch.isra.0+0x153/0x700
[   13.479322]  ? ww_mutex_unlock+0x6e/0x150
[   13.479345]  ? trace_hardirqs_on+0x37/0xe0
[   13.479371]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.479396]  ? __schedule+0x10cc/0x2b60
[   13.479435]  ? __pfx_read_tsc+0x10/0x10
[   13.479457]  ? ktime_get_ts64+0x86/0x230
[   13.479497]  kunit_try_run_case+0x1a5/0x480
[   13.479523]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.479545]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.479570]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.479593]  ? __kthread_parkme+0x82/0x180
[   13.479615]  ? preempt_count_sub+0x50/0x80
[   13.479638]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.479662]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.479685]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.479708]  kthread+0x337/0x6f0
[   13.479728]  ? trace_preempt_on+0x20/0xc0
[   13.479750]  ? __pfx_kthread+0x10/0x10
[   13.479771]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.479792]  ? calculate_sigpending+0x7b/0xa0
[   13.479816]  ? __pfx_kthread+0x10/0x10
[   13.479838]  ret_from_fork+0x116/0x1d0
[   13.479856]  ? __pfx_kthread+0x10/0x10
[   13.479876]  ret_from_fork_asm+0x1a/0x30
[   13.479908]  </TASK>
[   13.479920] 
[   13.487028] The buggy address belongs to stack of task kunit_try_catch/270
[   13.487689] 
[   13.487776] The buggy address belongs to the physical page:
[   13.488020] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039ff
[   13.488407] flags: 0x200000000000000(node=0|zone=2)
[   13.488618] raw: 0200000000000000 ffffea00040e7fc8 ffffea00040e7fc8 0000000000000000
[   13.488947] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.489410] page dumped because: kasan: bad access detected
[   13.489579] 
[   13.489663] Memory state around the buggy address:
[   13.489892]  ffff8881039ffb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.490183]  ffff8881039ffb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.490392] >ffff8881039ffc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.490712]                                               ^
[   13.490985]  ffff8881039ffc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.491272]  ffff8881039ffd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.491657] ==================================================================