Hay
Date
June 24, 2025, 12:47 p.m.

Environment
qemu-arm64
qemu-x86_64

[   27.322943] ==================================================================
[   27.323065] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   27.323200] Read of size 1 at addr ffff800080a17b4a by task kunit_try_catch/255
[   27.323317] 
[   27.323418] CPU: 1 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT 
[   27.323724] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.323798] Hardware name: linux,dummy-virt (DT)
[   27.323889] Call trace:
[   27.323997]  show_stack+0x20/0x38 (C)
[   27.324216]  dump_stack_lvl+0x8c/0xd0
[   27.324361]  print_report+0x310/0x608
[   27.324675]  kasan_report+0xdc/0x128
[   27.324940]  __asan_report_load1_noabort+0x20/0x30
[   27.325304]  kasan_alloca_oob_right+0x2dc/0x340
[   27.325502]  kunit_try_run_case+0x170/0x3f0
[   27.325652]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.325850]  kthread+0x328/0x630
[   27.326055]  ret_from_fork+0x10/0x20
[   27.326254] 
[   27.326516] The buggy address belongs to stack of task kunit_try_catch/255
[   27.326950] 
[   27.327021] The buggy address belongs to the virtual mapping at
[   27.327021]  [ffff800080a10000, ffff800080a19000) created by:
[   27.327021]  kernel_clone+0x150/0x7a8
[   27.327664] 
[   27.327743] The buggy address belongs to the physical page:
[   27.327839] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a69
[   27.328021] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   27.328286] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   27.329515] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   27.329817] page dumped because: kasan: bad access detected
[   27.329915] 
[   27.329986] Memory state around the buggy address:
[   27.330141]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.330261]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.330395] >ffff800080a17b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   27.330503]                                               ^
[   27.330606]  ffff800080a17b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   27.330947]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   27.331081] ==================================================================

[   13.874436] ==================================================================
[   13.875709] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.876124] Read of size 1 at addr ffff888103a87c4a by task kunit_try_catch/273
[   13.876637] 
[   13.876810] CPU: 0 UID: 0 PID: 273 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT(voluntary) 
[   13.877052] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.877171] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.877222] Call Trace:
[   13.877267]  <TASK>
[   13.877307]  dump_stack_lvl+0x73/0xb0
[   13.877484]  print_report+0xd1/0x650
[   13.877536]  ? __virt_addr_valid+0x1db/0x2d0
[   13.877581]  ? kasan_alloca_oob_right+0x329/0x390
[   13.877605]  ? kasan_addr_to_slab+0x11/0xa0
[   13.877645]  ? kasan_alloca_oob_right+0x329/0x390
[   13.877670]  kasan_report+0x141/0x180
[   13.877693]  ? kasan_alloca_oob_right+0x329/0x390
[   13.877719]  __asan_report_load1_noabort+0x18/0x20
[   13.877740]  kasan_alloca_oob_right+0x329/0x390
[   13.877764]  ? finish_task_switch.isra.0+0x153/0x700
[   13.877791]  ? rwsem_down_read_slowpath+0x6be/0xb90
[   13.877813]  ? trace_hardirqs_on+0x37/0xe0
[   13.877839]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.877864]  ? __schedule+0x10cc/0x2b60
[   13.877887]  ? __pfx_read_tsc+0x10/0x10
[   13.877907]  ? ktime_get_ts64+0x86/0x230
[   13.877934]  kunit_try_run_case+0x1a5/0x480
[   13.877978]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.878002]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.878026]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.878050]  ? __kthread_parkme+0x82/0x180
[   13.878075]  ? preempt_count_sub+0x50/0x80
[   13.878098]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.878123]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.878146]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.878168]  kthread+0x337/0x6f0
[   13.878185]  ? trace_preempt_on+0x20/0xc0
[   13.878207]  ? __pfx_kthread+0x10/0x10
[   13.878225]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.878248]  ? calculate_sigpending+0x7b/0xa0
[   13.878270]  ? __pfx_kthread+0x10/0x10
[   13.878313]  ret_from_fork+0x41/0x80
[   13.878354]  ? __pfx_kthread+0x10/0x10
[   13.878383]  ret_from_fork_asm+0x1a/0x30
[   13.878432]  </TASK>
[   13.878454] 
[   13.891101] The buggy address belongs to stack of task kunit_try_catch/273
[   13.892305] 
[   13.892490] The buggy address belongs to the physical page:
[   13.893042] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a87
[   13.893677] flags: 0x200000000000000(node=0|zone=2)
[   13.894046] raw: 0200000000000000 ffffea00040ea1c8 ffffea00040ea1c8 0000000000000000
[   13.894634] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.894962] page dumped because: kasan: bad access detected
[   13.895304] 
[   13.895891] Memory state around the buggy address:
[   13.896256]  ffff888103a87b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.897146]  ffff888103a87b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.897529] >ffff888103a87c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.897974]                                               ^
[   13.898375]  ffff888103a87c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.898852]  ffff888103a87d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.899451] ==================================================================