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

Environment
qemu-arm64
qemu-x86_64

[   28.651270] ==================================================================
[   28.651471] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   28.651601] Read of size 1 at addr ffff800080aa7b5f by task kunit_try_catch/251
[   28.651726] 
[   28.651804] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   28.652026] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.652097] Hardware name: linux,dummy-virt (DT)
[   28.652175] Call trace:
[   28.652233]  show_stack+0x20/0x38 (C)
[   28.652373]  dump_stack_lvl+0x8c/0xd0
[   28.652503]  print_report+0x310/0x608
[   28.652626]  kasan_report+0xdc/0x128
[   28.652742]  __asan_report_load1_noabort+0x20/0x30
[   28.652865]  kasan_alloca_oob_left+0x2b8/0x310
[   28.652991]  kunit_try_run_case+0x170/0x3f0
[   28.653116]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.653299]  kthread+0x328/0x630
[   28.653443]  ret_from_fork+0x10/0x20
[   28.653594] 
[   28.653657] The buggy address belongs to stack of task kunit_try_catch/251
[   28.654406] 
[   28.654931] The buggy address belongs to the virtual mapping at
[   28.654931]  [ffff800080aa0000, ffff800080aa9000) created by:
[   28.654931]  kernel_clone+0x150/0x7a8
[   28.655497] 
[   28.655568] The buggy address belongs to the physical page:
[   28.655658] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107763
[   28.655815] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   28.656060] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   28.656210] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   28.656348] page dumped because: kasan: bad access detected
[   28.656436] 
[   28.656530] Memory state around the buggy address:
[   28.656625]  ffff800080aa7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.656844]  ffff800080aa7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.657056] >ffff800080aa7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   28.657170]                                                     ^
[   28.657550]  ffff800080aa7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   28.658156]  ffff800080aa7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   28.658369] ==================================================================


[   13.235988] ==================================================================
[   13.236416] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   13.236766] Read of size 1 at addr ffff888102d37c3f by task kunit_try_catch/268
[   13.237066] 
[   13.237178] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   13.237221] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.237233] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.237254] Call Trace:
[   13.237265]  <TASK>
[   13.237278]  dump_stack_lvl+0x73/0xb0
[   13.237302]  print_report+0xd1/0x650
[   13.237324]  ? __virt_addr_valid+0x1db/0x2d0
[   13.237368]  ? kasan_alloca_oob_left+0x320/0x380
[   13.237390]  ? kasan_addr_to_slab+0x11/0xa0
[   13.237411]  ? kasan_alloca_oob_left+0x320/0x380
[   13.237435]  kasan_report+0x141/0x180
[   13.237457]  ? kasan_alloca_oob_left+0x320/0x380
[   13.237483]  __asan_report_load1_noabort+0x18/0x20
[   13.237507]  kasan_alloca_oob_left+0x320/0x380
[   13.237531]  ? finish_task_switch.isra.0+0x153/0x700
[   13.237554]  ? __ww_mutex_lock.constprop.0+0xc5e/0x1e90
[   13.237581]  ? trace_hardirqs_on+0x37/0xe0
[   13.237603]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   13.237628]  ? __schedule+0x10cc/0x2b60
[   13.237651]  ? __pfx_read_tsc+0x10/0x10
[   13.237671]  ? ktime_get_ts64+0x86/0x230
[   13.237694]  kunit_try_run_case+0x1a5/0x480
[   13.237715]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.237734]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.237758]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.237782]  ? __kthread_parkme+0x82/0x180
[   13.237813]  ? preempt_count_sub+0x50/0x80
[   13.237835]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.237856]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.237879]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.237914]  kthread+0x337/0x6f0
[   13.237933]  ? trace_preempt_on+0x20/0xc0
[   13.237966]  ? __pfx_kthread+0x10/0x10
[   13.237986]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.238009]  ? calculate_sigpending+0x7b/0xa0
[   13.238032]  ? __pfx_kthread+0x10/0x10
[   13.238053]  ret_from_fork+0x116/0x1d0
[   13.238071]  ? __pfx_kthread+0x10/0x10
[   13.238091]  ret_from_fork_asm+0x1a/0x30
[   13.238121]  </TASK>
[   13.238131] 
[   13.249237] The buggy address belongs to stack of task kunit_try_catch/268
[   13.249693] 
[   13.249883] The buggy address belongs to the physical page:
[   13.250191] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d37
[   13.250532] flags: 0x200000000000000(node=0|zone=2)
[   13.250806] raw: 0200000000000000 0000000000000000 ffffea00040b4dc8 0000000000000000
[   13.251362] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.251773] page dumped because: kasan: bad access detected
[   13.252141] 
[   13.252228] Memory state around the buggy address:
[   13.252437]  ffff888102d37b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.252931]  ffff888102d37b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.253397] >ffff888102d37c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.253935]                                         ^
[   13.254323]  ffff888102d37c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.254733]  ffff888102d37d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.255127] ==================================================================