Hay
Date
June 2, 2025, 2:11 p.m.

Environment
e850-96
qemu-x86_64

[   37.522626] ==================================================================
[   37.532293] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   37.539845] Read of size 1 at addr ffff800089377b4a by task kunit_try_catch/300
[   37.547133] 
[   37.548619] CPU: 3 UID: 0 PID: 300 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   37.548676] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.548695] Hardware name: WinLink E850-96 board (DT)
[   37.548722] Call trace:
[   37.548738]  show_stack+0x20/0x38 (C)
[   37.548774]  dump_stack_lvl+0x8c/0xd0
[   37.548810]  print_report+0x310/0x608
[   37.548842]  kasan_report+0xdc/0x128
[   37.548873]  __asan_report_load1_noabort+0x20/0x30
[   37.548907]  kasan_alloca_oob_right+0x2dc/0x340
[   37.548944]  kunit_try_run_case+0x170/0x3f0
[   37.548985]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.549026]  kthread+0x328/0x630
[   37.549065]  ret_from_fork+0x10/0x20
[   37.549100] 
[   37.611805] The buggy address belongs to stack of task kunit_try_catch/300
[   37.618682] 
[   37.620139] The buggy address belongs to the virtual mapping at
[   37.620139]  [ffff800089370000, ffff800089379000) created by:
[   37.620139]  kernel_clone+0x150/0x7a8
[   37.635413] 
[   37.636894] The buggy address belongs to the physical page:
[   37.642449] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8867ee
[   37.650434] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   37.656954] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   37.664672] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   37.672391] page dumped because: kasan: bad access detected
[   37.677947] 
[   37.679423] Memory state around the buggy address:
[   37.684202]  ffff800089377a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   37.691405]  ffff800089377a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   37.698610] >ffff800089377b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   37.705811]                                               ^
[   37.711370]  ffff800089377b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   37.718576]  ffff800089377c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   37.725776] ==================================================================

[   18.875125] ==================================================================
[   18.875788] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   18.876443] Read of size 1 at addr ffff888103a9fc4a by task kunit_try_catch/274
[   18.876905] 
[   18.877060] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   18.877214] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.877241] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.877283] Call Trace:
[   18.877314]  <TASK>
[   18.877354]  dump_stack_lvl+0x73/0xb0
[   18.877457]  print_report+0xd1/0x650
[   18.877513]  ? __virt_addr_valid+0x1db/0x2d0
[   18.877576]  ? kasan_alloca_oob_right+0x329/0x390
[   18.877617]  ? kasan_addr_to_slab+0x11/0xa0
[   18.877653]  ? kasan_alloca_oob_right+0x329/0x390
[   18.877692]  kasan_report+0x141/0x180
[   18.877734]  ? kasan_alloca_oob_right+0x329/0x390
[   18.877826]  __asan_report_load1_noabort+0x18/0x20
[   18.877886]  kasan_alloca_oob_right+0x329/0x390
[   18.877934]  ? finish_task_switch.isra.0+0x153/0x700
[   18.877980]  ? rt_mutex_adjust_prio_chain+0x19ae/0x20e0
[   18.878025]  ? trace_hardirqs_on+0x37/0xe0
[   18.878077]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   18.878169]  ? __schedule+0x10cc/0x2b30
[   18.878241]  ? __pfx_read_tsc+0x10/0x10
[   18.878282]  ? ktime_get_ts64+0x86/0x230
[   18.878332]  kunit_try_run_case+0x1a5/0x480
[   18.878380]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.878422]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   18.878472]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   18.878548]  ? __kthread_parkme+0x82/0x180
[   18.878598]  ? preempt_count_sub+0x50/0x80
[   18.878657]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.878700]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.878759]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.878812]  kthread+0x337/0x6f0
[   18.878850]  ? trace_preempt_on+0x20/0xc0
[   18.878899]  ? __pfx_kthread+0x10/0x10
[   18.878936]  ? _raw_spin_unlock_irq+0x47/0x80
[   18.878974]  ? calculate_sigpending+0x7b/0xa0
[   18.879022]  ? __pfx_kthread+0x10/0x10
[   18.879064]  ret_from_fork+0x41/0x80
[   18.879147]  ? __pfx_kthread+0x10/0x10
[   18.879609]  ret_from_fork_asm+0x1a/0x30
[   18.879700]  </TASK>
[   18.879719] 
[   18.900983] The buggy address belongs to stack of task kunit_try_catch/274
[   18.902252] 
[   18.902846] The buggy address belongs to the physical page:
[   18.903856] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a9f
[   18.904659] flags: 0x200000000000000(node=0|zone=2)
[   18.905512] raw: 0200000000000000 ffffea00040ea7c8 ffffea00040ea7c8 0000000000000000
[   18.906016] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   18.906680] page dumped because: kasan: bad access detected
[   18.907313] 
[   18.907934] Memory state around the buggy address:
[   18.908384]  ffff888103a9fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.908685]  ffff888103a9fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.908966] >ffff888103a9fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   18.909217]                                               ^
[   18.910408]  ffff888103a9fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   18.910977]  ffff888103a9fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   18.911546] ==================================================================