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

Environment
qemu-arm64
qemu-x86_64

[   21.873783] ==================================================================
[   21.874087] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   21.874529] Read of size 1 at addr ffff800080ab7b4a by task kunit_try_catch/254
[   21.874751] 
[   21.874828] CPU: 0 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   21.875065] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.875131] Hardware name: linux,dummy-virt (DT)
[   21.875214] Call trace:
[   21.875288]  show_stack+0x20/0x38 (C)
[   21.875457]  dump_stack_lvl+0x8c/0xd0
[   21.875569]  print_report+0x310/0x608
[   21.875958]  kasan_report+0xdc/0x128
[   21.876108]  __asan_report_load1_noabort+0x20/0x30
[   21.876267]  kasan_alloca_oob_right+0x2dc/0x340
[   21.876428]  kunit_try_run_case+0x170/0x3f0
[   21.876536]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.876688]  kthread+0x328/0x630
[   21.876837]  ret_from_fork+0x10/0x20
[   21.877205] 
[   21.877271] The buggy address belongs to stack of task kunit_try_catch/254
[   21.877475] 
[   21.877565] The buggy address belongs to the virtual mapping at
[   21.877565]  [ffff800080ab0000, ffff800080ab9000) created by:
[   21.877565]  kernel_clone+0x150/0x7a8
[   21.877761] 
[   21.877812] The buggy address belongs to the physical page:
[   21.877888] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107a36
[   21.878008] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.878127] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   21.878270] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   21.878757] page dumped because: kasan: bad access detected
[   21.878937] 
[   21.878982] Memory state around the buggy address:
[   21.879233]  ffff800080ab7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.879466]  ffff800080ab7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.879567] >ffff800080ab7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   21.879821]                                               ^
[   21.879935]  ffff800080ab7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   21.880044]  ffff800080ab7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   21.880142] ==================================================================

[   15.700393] ==================================================================
[   15.701060] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   15.701364] Read of size 1 at addr ffff888103a4fc4a by task kunit_try_catch/271
[   15.701634] 
[   15.701756] CPU: 0 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   15.701812] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.701827] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.701853] Call Trace:
[   15.701868]  <TASK>
[   15.701891]  dump_stack_lvl+0x73/0xb0
[   15.701924]  print_report+0xd1/0x650
[   15.701950]  ? __virt_addr_valid+0x1db/0x2d0
[   15.701978]  ? kasan_alloca_oob_right+0x329/0x390
[   15.702004]  ? kasan_addr_to_slab+0x11/0xa0
[   15.702027]  ? kasan_alloca_oob_right+0x329/0x390
[   15.702054]  kasan_report+0x141/0x180
[   15.702079]  ? kasan_alloca_oob_right+0x329/0x390
[   15.702112]  __asan_report_load1_noabort+0x18/0x20
[   15.702140]  kasan_alloca_oob_right+0x329/0x390
[   15.702164]  ? __kasan_check_write+0x18/0x20
[   15.702187]  ? __pfx_sched_clock_cpu+0x10/0x10
[   15.702213]  ? finish_task_switch.isra.0+0x153/0x700
[   15.702239]  ? ww_mutex_unlock+0x6e/0x150
[   15.702266]  ? trace_hardirqs_on+0x37/0xe0
[   15.702295]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   15.702325]  ? __schedule+0x10cc/0x2b60
[   15.702349]  ? __pfx_read_tsc+0x10/0x10
[   15.702375]  ? ktime_get_ts64+0x86/0x230
[   15.702403]  kunit_try_run_case+0x1a5/0x480
[   15.702437]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.702463]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.702489]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.702515]  ? __kthread_parkme+0x82/0x180
[   15.702539]  ? preempt_count_sub+0x50/0x80
[   15.702566]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.702593]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.702619]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.702672]  kthread+0x337/0x6f0
[   15.702912]  ? trace_preempt_on+0x20/0xc0
[   15.702944]  ? __pfx_kthread+0x10/0x10
[   15.702969]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.702996]  ? calculate_sigpending+0x7b/0xa0
[   15.703023]  ? __pfx_kthread+0x10/0x10
[   15.703343]  ret_from_fork+0x116/0x1d0
[   15.703371]  ? __pfx_kthread+0x10/0x10
[   15.703395]  ret_from_fork_asm+0x1a/0x30
[   15.703434]  </TASK>
[   15.703459] 
[   15.721705] The buggy address belongs to stack of task kunit_try_catch/271
[   15.722012] 
[   15.722196] The buggy address belongs to the physical page:
[   15.722513] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a4f
[   15.722831] flags: 0x200000000000000(node=0|zone=2)
[   15.723342] raw: 0200000000000000 ffffea00040e93c8 ffffea00040e93c8 0000000000000000
[   15.723913] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   15.724253] page dumped because: kasan: bad access detected
[   15.724561] 
[   15.724664] Memory state around the buggy address:
[   15.725047]  ffff888103a4fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.725320]  ffff888103a4fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.725697] >ffff888103a4fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   15.726142]                                               ^
[   15.726405]  ffff888103a4fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   15.726770]  ffff888103a4fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   15.727197] ==================================================================