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

Environment
e850-96
qemu-x86_64

[   37.310503] ==================================================================
[   37.319886] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   37.327345] Read of size 1 at addr ffff800089357b5f by task kunit_try_catch/298
[   37.334636] 
[   37.336122] CPU: 4 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   37.336181] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.336198] Hardware name: WinLink E850-96 board (DT)
[   37.336226] Call trace:
[   37.336241]  show_stack+0x20/0x38 (C)
[   37.336274]  dump_stack_lvl+0x8c/0xd0
[   37.336311]  print_report+0x310/0x608
[   37.336344]  kasan_report+0xdc/0x128
[   37.336372]  __asan_report_load1_noabort+0x20/0x30
[   37.336406]  kasan_alloca_oob_left+0x2b8/0x310
[   37.336440]  kunit_try_run_case+0x170/0x3f0
[   37.336475]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.336516]  kthread+0x328/0x630
[   37.336552]  ret_from_fork+0x10/0x20
[   37.336586] 
[   37.399223] The buggy address belongs to stack of task kunit_try_catch/298
[   37.406098] 
[   37.407558] The buggy address belongs to the virtual mapping at
[   37.407558]  [ffff800089350000, ffff800089359000) created by:
[   37.407558]  kernel_clone+0x150/0x7a8
[   37.422829] 
[   37.424309] The buggy address belongs to the physical page:
[   37.429865] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8868fb
[   37.437849] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   37.444372] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   37.452089] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   37.459808] page dumped because: kasan: bad access detected
[   37.465364] 
[   37.466839] Memory state around the buggy address:
[   37.471618]  ffff800089357a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   37.478822]  ffff800089357a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   37.486026] >ffff800089357b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   37.493227]                                                     ^
[   37.499307]  ffff800089357b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   37.506514]  ffff800089357c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   37.513713] ==================================================================

[   18.828705] ==================================================================
[   18.829679] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   18.830319] Read of size 1 at addr ffff888103a4fc3f by task kunit_try_catch/272
[   18.830921] 
[   18.831171] CPU: 1 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   18.831279] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.831308] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.831354] Call Trace:
[   18.831385]  <TASK>
[   18.831427]  dump_stack_lvl+0x73/0xb0
[   18.831499]  print_report+0xd1/0x650
[   18.831550]  ? __virt_addr_valid+0x1db/0x2d0
[   18.831600]  ? kasan_alloca_oob_left+0x320/0x380
[   18.831677]  ? kasan_addr_to_slab+0x11/0xa0
[   18.831725]  ? kasan_alloca_oob_left+0x320/0x380
[   18.831782]  kasan_report+0x141/0x180
[   18.831824]  ? kasan_alloca_oob_left+0x320/0x380
[   18.831875]  __asan_report_load1_noabort+0x18/0x20
[   18.831912]  kasan_alloca_oob_left+0x320/0x380
[   18.831960]  ? finish_task_switch.isra.0+0x153/0x700
[   18.832013]  ? rt_mutex_adjust_prio_chain+0x19ae/0x20e0
[   18.832066]  ? trace_hardirqs_on+0x37/0xe0
[   18.832119]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   18.832162]  ? __schedule+0x10cc/0x2b30
[   18.832212]  ? __pfx_read_tsc+0x10/0x10
[   18.832256]  ? ktime_get_ts64+0x86/0x230
[   18.832315]  kunit_try_run_case+0x1a5/0x480
[   18.832374]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.832418]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   18.832461]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   18.832489]  ? __kthread_parkme+0x82/0x180
[   18.832514]  ? preempt_count_sub+0x50/0x80
[   18.832542]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.832567]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.832593]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.832618]  kthread+0x337/0x6f0
[   18.832638]  ? trace_preempt_on+0x20/0xc0
[   18.832662]  ? __pfx_kthread+0x10/0x10
[   18.832682]  ? _raw_spin_unlock_irq+0x47/0x80
[   18.832705]  ? calculate_sigpending+0x7b/0xa0
[   18.832730]  ? __pfx_kthread+0x10/0x10
[   18.832776]  ret_from_fork+0x41/0x80
[   18.832803]  ? __pfx_kthread+0x10/0x10
[   18.832823]  ret_from_fork_asm+0x1a/0x30
[   18.832858]  </TASK>
[   18.832873] 
[   18.859666] The buggy address belongs to stack of task kunit_try_catch/272
[   18.860364] 
[   18.860527] The buggy address belongs to the physical page:
[   18.861354] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a4f
[   18.861976] flags: 0x200000000000000(node=0|zone=2)
[   18.862572] raw: 0200000000000000 ffffea00040e93c8 ffffea00040e93c8 0000000000000000
[   18.862975] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   18.863421] page dumped because: kasan: bad access detected
[   18.863905] 
[   18.864030] Memory state around the buggy address:
[   18.864488]  ffff888103a4fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.865222]  ffff888103a4fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.865641] >ffff888103a4fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   18.866159]                                         ^
[   18.866643]  ffff888103a4fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   18.867126]  ffff888103a4fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   18.867655] ==================================================================