Hay
Date
July 8, 2025, 4:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.966531] ==================================================================
[   19.966592] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   19.966650] Read of size 1 at addr ffff8000809a7b4a by task kunit_try_catch/255
[   19.966712] 
[   19.966745] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT 
[   19.966844] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.966883] Hardware name: linux,dummy-virt (DT)
[   19.966916] Call trace:
[   19.966940]  show_stack+0x20/0x38 (C)
[   19.966991]  dump_stack_lvl+0x8c/0xd0
[   19.967042]  print_report+0x310/0x608
[   19.967090]  kasan_report+0xdc/0x128
[   19.967136]  __asan_report_load1_noabort+0x20/0x30
[   19.967194]  kasan_alloca_oob_right+0x2dc/0x340
[   19.967248]  kunit_try_run_case+0x170/0x3f0
[   19.967297]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.967374]  kthread+0x328/0x630
[   19.967421]  ret_from_fork+0x10/0x20
[   19.967478] 
[   19.967503] The buggy address belongs to stack of task kunit_try_catch/255
[   19.967559] 
[   19.967584] The buggy address belongs to the virtual mapping at
[   19.967584]  [ffff8000809a0000, ffff8000809a9000) created by:
[   19.967584]  kernel_clone+0x150/0x7a8
[   19.967664] 
[   19.967695] The buggy address belongs to the physical page:
[   19.967729] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063de
[   19.967790] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.967855] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.967905] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.967947] page dumped because: kasan: bad access detected
[   19.967980] 
[   19.968002] Memory state around the buggy address:
[   19.968035]  ffff8000809a7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.968079]  ffff8000809a7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.968125] >ffff8000809a7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   19.968166]                                               ^
[   19.969121]  ffff8000809a7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.969218]  ffff8000809a7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.969262] ==================================================================

[   13.157229] ==================================================================
[   13.157722] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.157994] Read of size 1 at addr ffff888103c3fc4a by task kunit_try_catch/273
[   13.158219] 
[   13.158314] CPU: 1 UID: 0 PID: 273 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT(voluntary) 
[   13.158366] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.158377] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.158400] Call Trace:
[   13.158413]  <TASK>
[   13.158429]  dump_stack_lvl+0x73/0xb0
[   13.158457]  print_report+0xd1/0x650
[   13.158480]  ? __virt_addr_valid+0x1db/0x2d0
[   13.158504]  ? kasan_alloca_oob_right+0x329/0x390
[   13.158527]  ? kasan_addr_to_slab+0x11/0xa0
[   13.158548]  ? kasan_alloca_oob_right+0x329/0x390
[   13.158571]  kasan_report+0x141/0x180
[   13.158594]  ? kasan_alloca_oob_right+0x329/0x390
[   13.158621]  __asan_report_load1_noabort+0x18/0x20
[   13.158643]  kasan_alloca_oob_right+0x329/0x390
[   13.158667]  ? finish_task_switch.isra.0+0x153/0x700
[   13.158692]  ? ww_mutex_unlock+0x10e/0x150
[   13.158712]  ? trace_hardirqs_on+0x37/0xe0
[   13.158737]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.158763]  ? __schedule+0x10cc/0x2b60
[   13.158786]  ? __pfx_read_tsc+0x10/0x10
[   13.158807]  ? ktime_get_ts64+0x86/0x230
[   13.158832]  kunit_try_run_case+0x1a5/0x480
[   13.158855]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.158915]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.158944]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.158968]  ? __kthread_parkme+0x82/0x180
[   13.158991]  ? preempt_count_sub+0x50/0x80
[   13.159017]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.159039]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.159064]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.159091]  kthread+0x337/0x6f0
[   13.159108]  ? trace_preempt_on+0x20/0xc0
[   13.159131]  ? __pfx_kthread+0x10/0x10
[   13.159150]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.159173]  ? calculate_sigpending+0x7b/0xa0
[   13.159195]  ? __pfx_kthread+0x10/0x10
[   13.159215]  ret_from_fork+0x41/0x80
[   13.159237]  ? __pfx_kthread+0x10/0x10
[   13.159256]  ret_from_fork_asm+0x1a/0x30
[   13.159287]  </TASK>
[   13.159299] 
[   13.174700] The buggy address belongs to stack of task kunit_try_catch/273
[   13.175434] 
[   13.175655] The buggy address belongs to the physical page:
[   13.176248] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c3f
[   13.177134] flags: 0x200000000000000(node=0|zone=2)
[   13.177661] raw: 0200000000000000 ffffea00040f0fc8 ffffea00040f0fc8 0000000000000000
[   13.178566] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.179453] page dumped because: kasan: bad access detected
[   13.180134] 
[   13.180305] Memory state around the buggy address:
[   13.180924]  ffff888103c3fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.181705]  ffff888103c3fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.182527] >ffff888103c3fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.183303]                                               ^
[   13.183970]  ffff888103c3fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.184217]  ffff888103c3fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.184434] ==================================================================