Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   28.677972] ==================================================================
[   28.678101] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   28.678219] Read of size 1 at addr ffff800080aa7b4a by task kunit_try_catch/253
[   28.678374] 
[   28.678487] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   28.678999] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.679081] Hardware name: linux,dummy-virt (DT)
[   28.679166] Call trace:
[   28.679274]  show_stack+0x20/0x38 (C)
[   28.679471]  dump_stack_lvl+0x8c/0xd0
[   28.679612]  print_report+0x310/0x608
[   28.679757]  kasan_report+0xdc/0x128
[   28.680030]  __asan_report_load1_noabort+0x20/0x30
[   28.680213]  kasan_alloca_oob_right+0x2dc/0x340
[   28.680372]  kunit_try_run_case+0x170/0x3f0
[   28.680541]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.680760]  kthread+0x328/0x630
[   28.680894]  ret_from_fork+0x10/0x20
[   28.681262] 
[   28.681355] The buggy address belongs to stack of task kunit_try_catch/253
[   28.681539] 
[   28.681792] The buggy address belongs to the virtual mapping at
[   28.681792]  [ffff800080aa0000, ffff800080aa9000) created by:
[   28.681792]  kernel_clone+0x150/0x7a8
[   28.682090] 
[   28.682168] The buggy address belongs to the physical page:
[   28.682356] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107763
[   28.682658] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   28.682819] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   28.683194] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   28.683445] page dumped because: kasan: bad access detected
[   28.683572] 
[   28.683689] Memory state around the buggy address:
[   28.683901]  ffff800080aa7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.684228]  ffff800080aa7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.684369] >ffff800080aa7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   28.684477]                                               ^
[   28.684635]  ffff800080aa7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   28.684759]  ffff800080aa7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   28.684876] ==================================================================


[   13.257669] ==================================================================
[   13.258341] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.258673] Read of size 1 at addr ffff888103b4fc4a by task kunit_try_catch/270
[   13.259147] 
[   13.259356] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   13.259405] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.259418] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.259440] Call Trace:
[   13.259453]  <TASK>
[   13.259467]  dump_stack_lvl+0x73/0xb0
[   13.259595]  print_report+0xd1/0x650
[   13.259621]  ? __virt_addr_valid+0x1db/0x2d0
[   13.259657]  ? kasan_alloca_oob_right+0x329/0x390
[   13.259679]  ? kasan_addr_to_slab+0x11/0xa0
[   13.259700]  ? kasan_alloca_oob_right+0x329/0x390
[   13.259723]  kasan_report+0x141/0x180
[   13.259744]  ? kasan_alloca_oob_right+0x329/0x390
[   13.259771]  __asan_report_load1_noabort+0x18/0x20
[   13.259796]  kasan_alloca_oob_right+0x329/0x390
[   13.259820]  ? __pfx_sched_clock_cpu+0x10/0x10
[   13.259842]  ? finish_task_switch.isra.0+0x153/0x700
[   13.259864]  ? __ww_mutex_lock.constprop.0+0xc5e/0x1e90
[   13.259890]  ? trace_hardirqs_on+0x37/0xe0
[   13.259925]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.259959]  ? __schedule+0x10cc/0x2b60
[   13.259982]  ? __pfx_read_tsc+0x10/0x10
[   13.260002]  ? ktime_get_ts64+0x86/0x230
[   13.260025]  kunit_try_run_case+0x1a5/0x480
[   13.260047]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.260066]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.260090]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.260114]  ? __kthread_parkme+0x82/0x180
[   13.260134]  ? preempt_count_sub+0x50/0x80
[   13.260156]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.260177]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.260202]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.260227]  kthread+0x337/0x6f0
[   13.260246]  ? trace_preempt_on+0x20/0xc0
[   13.260268]  ? __pfx_kthread+0x10/0x10
[   13.260289]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.260313]  ? calculate_sigpending+0x7b/0xa0
[   13.260338]  ? __pfx_kthread+0x10/0x10
[   13.260359]  ret_from_fork+0x116/0x1d0
[   13.260377]  ? __pfx_kthread+0x10/0x10
[   13.260397]  ret_from_fork_asm+0x1a/0x30
[   13.260428]  </TASK>
[   13.260439] 
[   13.271477] The buggy address belongs to stack of task kunit_try_catch/270
[   13.272139] 
[   13.272234] The buggy address belongs to the physical page:
[   13.272440] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b4f
[   13.273058] flags: 0x200000000000000(node=0|zone=2)
[   13.273290] raw: 0200000000000000 ffffea00040ed3c8 ffffea00040ed3c8 0000000000000000
[   13.273816] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.274452] page dumped because: kasan: bad access detected
[   13.274648] 
[   13.274795] Memory state around the buggy address:
[   13.275239]  ffff888103b4fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.275533]  ffff888103b4fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.275885] >ffff888103b4fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.276471]                                               ^
[   13.276753]  ffff888103b4fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.277313]  ffff888103b4fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.277729] ==================================================================