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

Environment
qemu-arm64
qemu-x86_64

[   25.836480] ==================================================================
[   25.840298] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   25.843425] Read of size 1 at addr ffff800080ba7b5f by task kunit_try_catch/240
[   25.844080] 
[   25.844345] CPU: 0 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   25.844542] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.844613] Hardware name: linux,dummy-virt (DT)
[   25.844690] Call trace:
[   25.844750]  show_stack+0x20/0x38 (C)
[   25.844874]  dump_stack_lvl+0x8c/0xd0
[   25.847707]  print_report+0x310/0x608
[   25.847837]  kasan_report+0xdc/0x128
[   25.847973]  __asan_report_load1_noabort+0x20/0x30
[   25.848097]  kasan_alloca_oob_left+0x2b8/0x310
[   25.848219]  kunit_try_run_case+0x170/0x3f0
[   25.848335]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.848465]  kthread+0x318/0x620
[   25.848577]  ret_from_fork+0x10/0x20
[   25.848698] 
[   25.864912] The buggy address belongs to stack of task kunit_try_catch/240
[   25.866512] 
[   25.866775] The buggy address belongs to the virtual mapping at
[   25.866775]  [ffff800080ba0000, ffff800080ba9000) created by:
[   25.866775]  kernel_clone+0x150/0x7a8
[   25.871294] 
[   25.871623] The buggy address belongs to the physical page:
[   25.872083] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065c1
[   25.872677] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   25.874447] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   25.875397] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   25.878352] page dumped because: kasan: bad access detected
[   25.878802] 
[   25.879052] Memory state around the buggy address:
[   25.879459]  ffff800080ba7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.881678]  ffff800080ba7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.882726] >ffff800080ba7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   25.883552]                                                     ^
[   25.886276]  ffff800080ba7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   25.887128]  ffff800080ba7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   25.889497] ==================================================================

[   20.066842] ==================================================================
[   20.067776] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x322/0x380
[   20.068328] Read of size 1 at addr ffff888102b87c3f by task kunit_try_catch/259
[   20.068733] 
[   20.068919] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   20.069028] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.069059] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.069091] Call Trace:
[   20.069111]  <TASK>
[   20.069134]  dump_stack_lvl+0x73/0xb0
[   20.069173]  print_report+0xd1/0x650
[   20.069204]  ? __virt_addr_valid+0x1db/0x2d0
[   20.069256]  ? kasan_alloca_oob_left+0x322/0x380
[   20.069287]  ? kasan_addr_to_slab+0x11/0xa0
[   20.069314]  ? kasan_alloca_oob_left+0x322/0x380
[   20.069342]  kasan_report+0x140/0x180
[   20.069371]  ? kasan_alloca_oob_left+0x322/0x380
[   20.069405]  __asan_report_load1_noabort+0x18/0x20
[   20.069434]  kasan_alloca_oob_left+0x322/0x380
[   20.069463]  ? finish_task_switch.isra.0+0x153/0x700
[   20.069493]  ? __ww_mutex_lock.constprop.0+0x4fe/0x1f20
[   20.069527]  ? trace_hardirqs_on+0x37/0xe0
[   20.069559]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   20.069589]  ? __schedule+0xce8/0x2840
[   20.069618]  ? __pfx_read_tsc+0x10/0x10
[   20.069645]  ? ktime_get_ts64+0x86/0x230
[   20.069677]  kunit_try_run_case+0x1a6/0x480
[   20.069707]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.069736]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   20.069764]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   20.069793]  ? __kthread_parkme+0x82/0x160
[   20.069821]  ? preempt_count_sub+0x50/0x80
[   20.069850]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.070223]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.070293]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   20.070357]  kthread+0x324/0x6e0
[   20.070416]  ? trace_preempt_on+0x20/0xc0
[   20.070473]  ? __pfx_kthread+0x10/0x10
[   20.070532]  ? _raw_spin_unlock_irq+0x47/0x80
[   20.070590]  ? calculate_sigpending+0x7b/0xa0
[   20.070652]  ? __pfx_kthread+0x10/0x10
[   20.070705]  ret_from_fork+0x41/0x80
[   20.070750]  ? __pfx_kthread+0x10/0x10
[   20.070783]  ret_from_fork_asm+0x1a/0x30
[   20.070823]  </TASK>
[   20.070838] 
[   20.086307] The buggy address belongs to stack of task kunit_try_catch/259
[   20.086873] 
[   20.087084] The buggy address belongs to the physical page:
[   20.087475] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b87
[   20.088286] flags: 0x200000000000000(node=0|zone=2)
[   20.088950] raw: 0200000000000000 ffffea00040ae1c8 ffffea00040ae1c8 0000000000000000
[   20.089622] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   20.090017] page dumped because: kasan: bad access detected
[   20.090644] 
[   20.090868] Memory state around the buggy address:
[   20.091195]  ffff888102b87b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.092191]  ffff888102b87b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.092879] >ffff888102b87c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.093342]                                         ^
[   20.093941]  ffff888102b87c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   20.094368]  ffff888102b87d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   20.095021] ==================================================================