Hay
Date
June 17, 2025, 3:40 p.m.

Environment
qemu-arm64
qemu-x86_64

[   24.523298] ==================================================================
[   24.523800] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   24.523979] Read of size 1 at addr ffff800080a97b5f by task kunit_try_catch/253
[   24.524115] 
[   24.524204] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT 
[   24.524418] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.524487] Hardware name: linux,dummy-virt (DT)
[   24.524568] Call trace:
[   24.524626]  show_stack+0x20/0x38 (C)
[   24.525301]  dump_stack_lvl+0x8c/0xd0
[   24.525752]  print_report+0x310/0x608
[   24.526031]  kasan_report+0xdc/0x128
[   24.526123]  __asan_report_load1_noabort+0x20/0x30
[   24.526224]  kasan_alloca_oob_left+0x2b8/0x310
[   24.526394]  kunit_try_run_case+0x170/0x3f0
[   24.526549]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.526668]  kthread+0x328/0x630
[   24.526825]  ret_from_fork+0x10/0x20
[   24.526963] 
[   24.527035] The buggy address belongs to stack of task kunit_try_catch/253
[   24.527221] 
[   24.527284] The buggy address belongs to the virtual mapping at
[   24.527284]  [ffff800080a90000, ffff800080a99000) created by:
[   24.527284]  kernel_clone+0x150/0x7a8
[   24.527490] 
[   24.527540] The buggy address belongs to the physical page:
[   24.527612] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078e1
[   24.527793] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   24.528017] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   24.528213] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   24.528343] page dumped because: kasan: bad access detected
[   24.528415] 
[   24.528456] Memory state around the buggy address:
[   24.528567]  ffff800080a97a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.528680]  ffff800080a97a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.528803] >ffff800080a97b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   24.528920]                                                     ^
[   24.529018]  ffff800080a97b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   24.529130]  ffff800080a97c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   24.529264] ==================================================================

[   22.195348] ==================================================================
[   22.197200] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   22.197810] Read of size 1 at addr ffff8881039bfc3f by task kunit_try_catch/271
[   22.199116] 
[   22.199519] CPU: 0 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT(voluntary) 
[   22.199656] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.199682] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.199716] Call Trace:
[   22.199738]  <TASK>
[   22.199766]  dump_stack_lvl+0x73/0xb0
[   22.199864]  print_report+0xd1/0x650
[   22.199924]  ? __virt_addr_valid+0x1db/0x2d0
[   22.199964]  ? kasan_alloca_oob_left+0x320/0x380
[   22.200002]  ? kasan_addr_to_slab+0x11/0xa0
[   22.200041]  ? kasan_alloca_oob_left+0x320/0x380
[   22.200105]  kasan_report+0x141/0x180
[   22.200148]  ? kasan_alloca_oob_left+0x320/0x380
[   22.200192]  __asan_report_load1_noabort+0x18/0x20
[   22.200226]  kasan_alloca_oob_left+0x320/0x380
[   22.200269]  ? kasan_alloca_oob_left+0xb2/0x380
[   22.200336]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   22.200379]  ? __schedule+0x10cc/0x2b60
[   22.200419]  ? __pfx_read_tsc+0x10/0x10
[   22.200456]  ? ktime_get_ts64+0x86/0x230
[   22.200498]  kunit_try_run_case+0x1a5/0x480
[   22.200541]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.200577]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   22.200617]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   22.200654]  ? __kthread_parkme+0x82/0x180
[   22.200691]  ? preempt_count_sub+0x50/0x80
[   22.200732]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.200772]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.200809]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   22.200847]  kthread+0x337/0x6f0
[   22.200874]  ? trace_preempt_on+0x20/0xc0
[   22.200915]  ? __pfx_kthread+0x10/0x10
[   22.200943]  ? _raw_spin_unlock_irq+0x47/0x80
[   22.200979]  ? calculate_sigpending+0x7b/0xa0
[   22.201014]  ? __pfx_kthread+0x10/0x10
[   22.201056]  ret_from_fork+0x41/0x80
[   22.201159]  ? __pfx_kthread+0x10/0x10
[   22.201216]  ret_from_fork_asm+0x1a/0x30
[   22.201316]  </TASK>
[   22.201348] 
[   22.222678] The buggy address belongs to stack of task kunit_try_catch/271
[   22.223559] 
[   22.223777] The buggy address belongs to the physical page:
[   22.224237] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039bf
[   22.225820] flags: 0x200000000000000(node=0|zone=2)
[   22.226423] raw: 0200000000000000 ffffea00040e6fc8 ffffea00040e6fc8 0000000000000000
[   22.227281] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   22.228137] page dumped because: kasan: bad access detected
[   22.228776] 
[   22.229334] Memory state around the buggy address:
[   22.229697]  ffff8881039bfb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.230790]  ffff8881039bfb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.231656] >ffff8881039bfc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   22.232259]                                         ^
[   22.232950]  ffff8881039bfc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   22.234334]  ffff8881039bfd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   22.235402] ==================================================================