Hay
Date
June 7, 2025, 10:40 a.m.

Environment
qemu-arm64
qemu-x86_64

[   25.406246] ==================================================================
[   25.406928] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   25.407412] Read of size 1 at addr ffff8000809c7b4a by task kunit_try_catch/257
[   25.407712] 
[   25.407874] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G    B            N  6.15.2-rc1 #1 PREEMPT 
[   25.408527] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.408887] Hardware name: linux,dummy-virt (DT)
[   25.409381] Call trace:
[   25.409509]  show_stack+0x20/0x38 (C)
[   25.409649]  dump_stack_lvl+0x8c/0xd0
[   25.410166]  print_report+0x310/0x608
[   25.410533]  kasan_report+0xdc/0x128
[   25.410679]  __asan_report_load1_noabort+0x20/0x30
[   25.410809]  kasan_alloca_oob_right+0x2dc/0x340
[   25.410918]  kunit_try_run_case+0x170/0x3f0
[   25.411273]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.411745]  kthread+0x328/0x630
[   25.411877]  ret_from_fork+0x10/0x20
[   25.412086] 
[   25.412151] The buggy address belongs to stack of task kunit_try_catch/257
[   25.412279] 
[   25.412345] The buggy address belongs to the virtual mapping at
[   25.412345]  [ffff8000809c0000, ffff8000809c9000) created by:
[   25.412345]  kernel_clone+0x150/0x7a8
[   25.412555] 
[   25.413032] The buggy address belongs to the physical page:
[   25.413249] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063be
[   25.413412] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   25.414042] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   25.414324] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   25.414530] page dumped because: kasan: bad access detected
[   25.414639] 
[   25.415064] Memory state around the buggy address:
[   25.415188]  ffff8000809c7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.415412]  ffff8000809c7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.415617] >ffff8000809c7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   25.415726]                                               ^
[   25.415842]  ffff8000809c7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   25.416035]  ffff8000809c7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   25.416144] ==================================================================

[   15.795992] ==================================================================
[   15.796398] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   15.796852] Read of size 1 at addr ffff888103a47c4a by task kunit_try_catch/273
[   15.797241] 
[   15.797322] CPU: 1 UID: 0 PID: 273 Comm: kunit_try_catch Tainted: G    B            N  6.15.2-rc1 #1 PREEMPT(voluntary) 
[   15.797379] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.797392] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.797416] Call Trace:
[   15.797433]  <TASK>
[   15.797453]  dump_stack_lvl+0x73/0xb0
[   15.797497]  print_report+0xd1/0x650
[   15.797523]  ? __virt_addr_valid+0x1db/0x2d0
[   15.797547]  ? kasan_alloca_oob_right+0x329/0x390
[   15.797590]  ? kasan_addr_to_slab+0x11/0xa0
[   15.797612]  ? kasan_alloca_oob_right+0x329/0x390
[   15.797694]  kasan_report+0x141/0x180
[   15.797728]  ? kasan_alloca_oob_right+0x329/0x390
[   15.797755]  __asan_report_load1_noabort+0x18/0x20
[   15.797776]  kasan_alloca_oob_right+0x329/0x390
[   15.797799]  ? finish_task_switch.isra.0+0x153/0x700
[   15.797838]  ? rt_mutex_adjust_prio_chain+0x19ae/0x20e0
[   15.797860]  ? trace_hardirqs_on+0x37/0xe0
[   15.797884]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   15.797921]  ? __schedule+0x10cc/0x2b30
[   15.797942]  ? __pfx_read_tsc+0x10/0x10
[   15.797975]  ? ktime_get_ts64+0x86/0x230
[   15.798003]  kunit_try_run_case+0x1a5/0x480
[   15.798037]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.798061]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.798083]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.798104]  ? __kthread_parkme+0x82/0x180
[   15.798126]  ? preempt_count_sub+0x50/0x80
[   15.798147]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.798169]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.798191]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.798212]  kthread+0x337/0x6f0
[   15.798230]  ? trace_preempt_on+0x20/0xc0
[   15.798250]  ? __pfx_kthread+0x10/0x10
[   15.798268]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.798287]  ? calculate_sigpending+0x7b/0xa0
[   15.798308]  ? __pfx_kthread+0x10/0x10
[   15.798325]  ret_from_fork+0x41/0x80
[   15.798345]  ? __pfx_kthread+0x10/0x10
[   15.798362]  ret_from_fork_asm+0x1a/0x30
[   15.798391]  </TASK>
[   15.798403] 
[   15.805228] The buggy address belongs to stack of task kunit_try_catch/273
[   15.805732] 
[   15.805860] The buggy address belongs to the physical page:
[   15.806040] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a47
[   15.806349] flags: 0x200000000000000(node=0|zone=2)
[   15.806605] raw: 0200000000000000 ffffea00040e91c8 ffffea00040e91c8 0000000000000000
[   15.807046] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   15.807372] page dumped because: kasan: bad access detected
[   15.807725] 
[   15.807858] Memory state around the buggy address:
[   15.808063]  ffff888103a47b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.808204]  ffff888103a47b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.808331] >ffff888103a47c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   15.808451]                                               ^
[   15.808557]  ffff888103a47c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   15.808723]  ffff888103a47d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   15.809348] ==================================================================