Hay
Date
June 18, 2025, 6:43 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.148219] ==================================================================
[   23.148423] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   23.148583] Read of size 1 at addr ffff8000809c7b5f by task kunit_try_catch/261
[   23.148804] 
[   23.148907] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc2-next-20250618 #1 PREEMPT 
[   23.150095] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   23.150223] Hardware name: linux,dummy-virt (DT)
[   23.151153] Call trace:
[   23.151212]  show_stack+0x20/0x38 (C)
[   23.151341]  dump_stack_lvl+0x8c/0xd0
[   23.151441]  print_report+0x310/0x608
[   23.151552]  kasan_report+0xdc/0x128
[   23.151692]  __asan_report_load1_noabort+0x20/0x30
[   23.151966]  kasan_alloca_oob_left+0x2b8/0x310
[   23.152108]  kunit_try_run_case+0x170/0x3f0
[   23.152238]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.152376]  kthread+0x328/0x630
[   23.152486]  ret_from_fork+0x10/0x20
[   23.152632] 
[   23.152690] The buggy address belongs to stack of task kunit_try_catch/261
[   23.152864] 
[   23.152934] The buggy address belongs to the virtual mapping at
[   23.152934]  [ffff8000809c0000, ffff8000809c9000) created by:
[   23.152934]  kernel_clone+0x150/0x7a8
[   23.153995] 
[   23.154124] The buggy address belongs to the physical page:
[   23.154216] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107781
[   23.154289] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   23.154439] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   23.155115] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   23.155256] page dumped because: kasan: bad access detected
[   23.155787] 
[   23.156140] Memory state around the buggy address:
[   23.156587]  ffff8000809c7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.156965]  ffff8000809c7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.157197] >ffff8000809c7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   23.157346]                                                     ^
[   23.157978]  ffff8000809c7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   23.158261]  ffff8000809c7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   23.158362] ==================================================================

[   12.981301] ==================================================================
[   12.982020] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   12.982355] Read of size 1 at addr ffff888102b87c3f by task kunit_try_catch/277
[   12.982870] 
[   12.982962] CPU: 0 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) 
[   12.983012] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.983025] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.983047] Call Trace:
[   12.983059]  <TASK>
[   12.983074]  dump_stack_lvl+0x73/0xb0
[   12.983103]  print_report+0xd1/0x650
[   12.983125]  ? __virt_addr_valid+0x1db/0x2d0
[   12.983149]  ? kasan_alloca_oob_left+0x320/0x380
[   12.983170]  ? kasan_addr_to_slab+0x11/0xa0
[   12.983190]  ? kasan_alloca_oob_left+0x320/0x380
[   12.983223]  kasan_report+0x141/0x180
[   12.983244]  ? kasan_alloca_oob_left+0x320/0x380
[   12.983269]  __asan_report_load1_noabort+0x18/0x20
[   12.983293]  kasan_alloca_oob_left+0x320/0x380
[   12.983315]  ? __pfx_sched_clock_cpu+0x10/0x10
[   12.983337]  ? finish_task_switch.isra.0+0x153/0x700
[   12.983361]  ? rt_mutex_adjust_prio_chain+0x7ee/0x20e0
[   12.983388]  ? trace_hardirqs_on+0x37/0xe0
[   12.983413]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   12.983437]  ? __schedule+0x10cc/0x2b60
[   12.983457]  ? __pfx_read_tsc+0x10/0x10
[   12.983479]  ? ktime_get_ts64+0x86/0x230
[   12.983504]  kunit_try_run_case+0x1a5/0x480
[   12.983529]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.983551]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.983573]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.983594]  ? __kthread_parkme+0x82/0x180
[   12.983616]  ? preempt_count_sub+0x50/0x80
[   12.983639]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.983662]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.983684]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.983706]  kthread+0x337/0x6f0
[   12.983725]  ? trace_preempt_on+0x20/0xc0
[   12.983747]  ? __pfx_kthread+0x10/0x10
[   12.983767]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.983786]  ? calculate_sigpending+0x7b/0xa0
[   12.983811]  ? __pfx_kthread+0x10/0x10
[   12.983831]  ret_from_fork+0x116/0x1d0
[   12.983850]  ? __pfx_kthread+0x10/0x10
[   12.983869]  ret_from_fork_asm+0x1a/0x30
[   12.983900]  </TASK>
[   12.983910] 
[   12.993365] The buggy address belongs to stack of task kunit_try_catch/277
[   12.993659] 
[   12.993741] The buggy address belongs to the physical page:
[   12.993964] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b87
[   12.994556] flags: 0x200000000000000(node=0|zone=2)
[   12.994981] raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000
[   12.995486] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   12.995940] page dumped because: kasan: bad access detected
[   12.996354] 
[   12.996567] Memory state around the buggy address:
[   12.996784]  ffff888102b87b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.997063]  ffff888102b87b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.997609] >ffff888102b87c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   12.998062]                                         ^
[   12.998476]  ffff888102b87c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   12.998921]  ffff888102b87d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.999359] ==================================================================