Hay
Date
May 12, 2025, 11:48 a.m.

Environment
qemu-arm64
qemu-x86_64

[   18.971545] ==================================================================
[   18.971645] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   18.971710] Read of size 1 at addr ffff800080ab7b5f by task kunit_try_catch/251
[   18.971763] 
[   18.971804] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT 
[   18.971890] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.971918] Hardware name: linux,dummy-virt (DT)
[   18.971953] Call trace:
[   18.971977]  show_stack+0x20/0x38 (C)
[   18.972027]  dump_stack_lvl+0x8c/0xd0
[   18.972092]  print_report+0x310/0x608
[   18.972139]  kasan_report+0xdc/0x128
[   18.972326]  __asan_report_load1_noabort+0x20/0x30
[   18.972390]  kasan_alloca_oob_left+0x2b8/0x310
[   18.972440]  kunit_try_run_case+0x170/0x3f0
[   18.972487]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.972540]  kthread+0x328/0x630
[   18.972586]  ret_from_fork+0x10/0x20
[   18.972636] 
[   18.972660] The buggy address belongs to stack of task kunit_try_catch/251
[   18.972728] 
[   18.972755] The buggy address belongs to the virtual mapping at
[   18.972755]  [ffff800080ab0000, ffff800080ab9000) created by:
[   18.972755]  kernel_clone+0x150/0x7a8
[   18.972830] 
[   18.972854] The buggy address belongs to the physical page:
[   18.972884] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10795e
[   18.972936] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.973000] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.973063] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.973108] page dumped because: kasan: bad access detected
[   18.973144] 
[   18.973164] Memory state around the buggy address:
[   18.973197]  ffff800080ab7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.973241]  ffff800080ab7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.973285] >ffff800080ab7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   18.973611]                                                     ^
[   18.973656]  ffff800080ab7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   18.973703]  ffff800080ab7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.973743] ==================================================================

[   18.822713] ==================================================================
[   18.823581] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   18.824337] Read of size 1 at addr ffff888103bb7c3f by task kunit_try_catch/268
[   18.825299] 
[   18.825495] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) 
[   18.825633] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.825659] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.825702] Call Trace:
[   18.825732]  <TASK>
[   18.825768]  dump_stack_lvl+0x73/0xb0
[   18.825820]  print_report+0xd1/0x650
[   18.825847]  ? __virt_addr_valid+0x1db/0x2d0
[   18.825872]  ? kasan_alloca_oob_left+0x320/0x380
[   18.825897]  ? kasan_addr_to_slab+0x11/0xa0
[   18.825930]  ? kasan_alloca_oob_left+0x320/0x380
[   18.825970]  kasan_report+0x141/0x180
[   18.826028]  ? kasan_alloca_oob_left+0x320/0x380
[   18.826102]  __asan_report_load1_noabort+0x18/0x20
[   18.826138]  kasan_alloca_oob_left+0x320/0x380
[   18.826167]  ? __pfx_sched_clock_cpu+0x10/0x10
[   18.826191]  ? finish_task_switch.isra.0+0x153/0x700
[   18.826216]  ? schedule+0x1ee/0x2e0
[   18.826238]  ? trace_hardirqs_on+0x37/0xe0
[   18.826278]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   18.826307]  ? __schedule+0x10cc/0x2b60
[   18.826330]  ? __pfx_read_tsc+0x10/0x10
[   18.826353]  ? ktime_get_ts64+0x86/0x230
[   18.826379]  kunit_try_run_case+0x1a5/0x480
[   18.826406]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.826431]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   18.826454]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   18.826478]  ? __kthread_parkme+0x82/0x180
[   18.826500]  ? preempt_count_sub+0x50/0x80
[   18.826524]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.826550]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.826575]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.826599]  kthread+0x337/0x6f0
[   18.826621]  ? trace_preempt_on+0x20/0xc0
[   18.826644]  ? __pfx_kthread+0x10/0x10
[   18.826675]  ? _raw_spin_unlock_irq+0x47/0x80
[   18.826707]  ? calculate_sigpending+0x7b/0xa0
[   18.826734]  ? __pfx_kthread+0x10/0x10
[   18.826757]  ret_from_fork+0x116/0x1d0
[   18.826776]  ? __pfx_kthread+0x10/0x10
[   18.826798]  ret_from_fork_asm+0x1a/0x30
[   18.826830]  </TASK>
[   18.826844] 
[   18.840502] The buggy address belongs to stack of task kunit_try_catch/268
[   18.841013] 
[   18.841114] The buggy address belongs to the physical page:
[   18.841320] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103bb7
[   18.842153] flags: 0x200000000000000(node=0|zone=2)
[   18.842572] raw: 0200000000000000 ffffea00040eedc8 ffffea00040eedc8 0000000000000000
[   18.842952] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   18.843653] page dumped because: kasan: bad access detected
[   18.843861] 
[   18.843948] Memory state around the buggy address:
[   18.844119]  ffff888103bb7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.844383]  ffff888103bb7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.845514] >ffff888103bb7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   18.845992]                                         ^
[   18.846632]  ffff888103bb7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   18.847307]  ffff888103bb7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   18.847786] ==================================================================