Hay
Date
June 7, 2025, 10:40 a.m.

Environment
qemu-arm64
qemu-x86_64

[   25.918332] ==================================================================
[   25.919767] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2e4/0x348
[   25.920716] Read of size 1 at addr ffff800080ba7b4a by task kunit_try_catch/242
[   25.922120] 
[   25.922404] CPU: 1 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   25.922600] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.922671] Hardware name: linux,dummy-virt (DT)
[   25.922752] Call trace:
[   25.922810]  show_stack+0x20/0x38 (C)
[   25.923416]  dump_stack_lvl+0x8c/0xd0
[   25.923552]  print_report+0x310/0x608
[   25.923673]  kasan_report+0xdc/0x128
[   25.923789]  __asan_report_load1_noabort+0x20/0x30
[   25.924861]  kasan_alloca_oob_right+0x2e4/0x348
[   25.925514]  kunit_try_run_case+0x170/0x3f0
[   25.925826]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.925981]  kthread+0x318/0x620
[   25.926099]  ret_from_fork+0x10/0x20
[   25.926229] 
[   25.935713] The buggy address belongs to stack of task kunit_try_catch/242
[   25.938485] 
[   25.939711] The buggy address belongs to the virtual mapping at
[   25.939711]  [ffff800080ba0000, ffff800080ba9000) created by:
[   25.939711]  kernel_clone+0x150/0x7a8
[   25.940862] 
[   25.943750] The buggy address belongs to the physical page:
[   25.945282] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065c1
[   25.946629] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   25.947962] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   25.948538] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   25.950693] page dumped because: kasan: bad access detected
[   25.951560] 
[   25.952677] Memory state around the buggy address:
[   25.955513]  ffff800080ba7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.958478]  ffff800080ba7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.962704] >ffff800080ba7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   25.963591]                                               ^
[   25.966226]  ffff800080ba7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   25.969547]  ffff800080ba7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   25.970642] ==================================================================

[   20.102842] ==================================================================
[   20.103421] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x32b/0x390
[   20.104138] Read of size 1 at addr ffff888102d0fc4a by task kunit_try_catch/261
[   20.105529] 
[   20.105704] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   20.105764] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.105781] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.105809] Call Trace:
[   20.105826]  <TASK>
[   20.105849]  dump_stack_lvl+0x73/0xb0
[   20.105913]  print_report+0xd1/0x650
[   20.105944]  ? __virt_addr_valid+0x1db/0x2d0
[   20.105976]  ? kasan_alloca_oob_right+0x32b/0x390
[   20.106004]  ? kasan_addr_to_slab+0x11/0xa0
[   20.106030]  ? kasan_alloca_oob_right+0x32b/0x390
[   20.106059]  kasan_report+0x140/0x180
[   20.106087]  ? kasan_alloca_oob_right+0x32b/0x390
[   20.106121]  __asan_report_load1_noabort+0x18/0x20
[   20.106152]  kasan_alloca_oob_right+0x32b/0x390
[   20.106182]  ? finish_task_switch.isra.0+0x153/0x700
[   20.106213]  ? __ww_mutex_lock.constprop.0+0x4fe/0x1f20
[   20.106247]  ? trace_hardirqs_on+0x37/0xe0
[   20.106280]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   20.106326]  ? __schedule+0xce8/0x2840
[   20.106376]  ? __pfx_read_tsc+0x10/0x10
[   20.106434]  ? ktime_get_ts64+0x86/0x230
[   20.106499]  kunit_try_run_case+0x1a6/0x480
[   20.106561]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.106613]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   20.106671]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   20.106725]  ? __kthread_parkme+0x82/0x160
[   20.106783]  ? preempt_count_sub+0x50/0x80
[   20.106839]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.106909]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.106974]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   20.107032]  kthread+0x324/0x6e0
[   20.107085]  ? trace_preempt_on+0x20/0xc0
[   20.107135]  ? __pfx_kthread+0x10/0x10
[   20.107191]  ? _raw_spin_unlock_irq+0x47/0x80
[   20.107236]  ? calculate_sigpending+0x7b/0xa0
[   20.107288]  ? __pfx_kthread+0x10/0x10
[   20.107334]  ret_from_fork+0x41/0x80
[   20.107378]  ? __pfx_kthread+0x10/0x10
[   20.107425]  ret_from_fork_asm+0x1a/0x30
[   20.107498]  </TASK>
[   20.107524] 
[   20.124172] The buggy address belongs to stack of task kunit_try_catch/261
[   20.124751] 
[   20.124919] The buggy address belongs to the physical page:
[   20.125252] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d0f
[   20.127480] flags: 0x200000000000000(node=0|zone=2)
[   20.127992] raw: 0200000000000000 ffffea00040b43c8 ffffea00040b43c8 0000000000000000
[   20.128460] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   20.128903] page dumped because: kasan: bad access detected
[   20.129396] 
[   20.129601] Memory state around the buggy address:
[   20.130076]  ffff888102d0fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.130985]  ffff888102d0fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.131730] >ffff888102d0fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.132400]                                               ^
[   20.132930]  ffff888102d0fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   20.133568]  ffff888102d0fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   20.134250] ==================================================================