Hay
Date
July 18, 2025, 1:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   33.781427] ==================================================================
[   33.781528] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   33.781936] Read of size 1 at addr ffff800080af7b5f by task kunit_try_catch/282
[   33.782007] 
[   33.782398] CPU: 0 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT 
[   33.782670] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.782718] Hardware name: linux,dummy-virt (DT)
[   33.782767] Call trace:
[   33.782804]  show_stack+0x20/0x38 (C)
[   33.782869]  dump_stack_lvl+0x8c/0xd0
[   33.783097]  print_report+0x310/0x5e8
[   33.783375]  kasan_report+0xdc/0x128
[   33.783617]  __asan_report_load1_noabort+0x20/0x30
[   33.783813]  kasan_alloca_oob_left+0x2b8/0x310
[   33.783880]  kunit_try_run_case+0x170/0x3f0
[   33.783928]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.783981]  kthread+0x328/0x630
[   33.784266]  ret_from_fork+0x10/0x20
[   33.784603] 
[   33.784667] The buggy address belongs to stack of task kunit_try_catch/282
[   33.784833] 
[   33.784917] The buggy address belongs to a 8-page vmalloc region starting at 0xffff800080af0000 allocated at kernel_clone+0x150/0x7b0
[   33.785177] The buggy address belongs to the physical page:
[   33.785250] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f92
[   33.785388] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.785483] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   33.785579] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   33.785650] page dumped because: kasan: bad access detected
[   33.785683] 
[   33.786023] Memory state around the buggy address:
[   33.786129]  ffff800080af7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.786206]  ffff800080af7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.786280] >ffff800080af7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   33.786334]                                                     ^
[   33.786663]  ffff800080af7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   33.786810]  ffff800080af7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   33.786873] ==================================================================


[   26.699563] ==================================================================
[   26.700923] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   26.701876] Read of size 1 at addr ffff8881062ffc3f by task kunit_try_catch/299
[   26.703023] 
[   26.703129] CPU: 1 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) 
[   26.703185] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.703198] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.703220] Call Trace:
[   26.703234]  <TASK>
[   26.703252]  dump_stack_lvl+0x73/0xb0
[   26.703303]  print_report+0xd1/0x640
[   26.703326]  ? __virt_addr_valid+0x1db/0x2d0
[   26.703352]  ? kasan_alloca_oob_left+0x320/0x380
[   26.703374]  ? kasan_addr_to_slab+0x11/0xa0
[   26.703394]  ? kasan_alloca_oob_left+0x320/0x380
[   26.703415]  kasan_report+0x141/0x180
[   26.703436]  ? kasan_alloca_oob_left+0x320/0x380
[   26.703462]  __asan_report_load1_noabort+0x18/0x20
[   26.703485]  kasan_alloca_oob_left+0x320/0x380
[   26.703506]  ? __kasan_check_write+0x18/0x20
[   26.703528]  ? __pfx_sched_clock_cpu+0x10/0x10
[   26.703551]  ? finish_task_switch.isra.0+0x153/0x700
[   26.703573]  ? __ww_mutex_lock.constprop.0+0x13ce/0x2570
[   26.703602]  ? trace_hardirqs_on+0x37/0xe0
[   26.703628]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   26.703652]  ? __schedule+0x10da/0x2b60
[   26.703674]  ? __pfx_read_tsc+0x10/0x10
[   26.703696]  ? ktime_get_ts64+0x86/0x230
[   26.703721]  kunit_try_run_case+0x1a5/0x480
[   26.703746]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.703768]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.703810]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.703842]  ? __kthread_parkme+0x82/0x180
[   26.703862]  ? preempt_count_sub+0x50/0x80
[   26.703884]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.703906]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.703929]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.703951]  kthread+0x337/0x6f0
[   26.703971]  ? trace_preempt_on+0x20/0xc0
[   26.703993]  ? __pfx_kthread+0x10/0x10
[   26.704012]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.704042]  ? calculate_sigpending+0x7b/0xa0
[   26.704066]  ? __pfx_kthread+0x10/0x10
[   26.704087]  ret_from_fork+0x116/0x1d0
[   26.704106]  ? __pfx_kthread+0x10/0x10
[   26.704126]  ret_from_fork_asm+0x1a/0x30
[   26.704157]  </TASK>
[   26.704169] 
[   26.712778] The buggy address belongs to stack of task kunit_try_catch/299
[   26.713116] 
[   26.713203] The buggy address belongs to the physical page:
[   26.713459] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1062ff
[   26.713807] flags: 0x200000000000000(node=0|zone=2)
[   26.714050] raw: 0200000000000000 ffffea000418bfc8 ffffea000418bfc8 0000000000000000
[   26.714391] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   26.714625] page dumped because: kasan: bad access detected
[   26.714793] 
[   26.714855] Memory state around the buggy address:
[   26.715003]  ffff8881062ffb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.715481]  ffff8881062ffb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.715875] >ffff8881062ffc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   26.716199]                                         ^
[   26.716410]  ffff8881062ffc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   26.716623]  ffff8881062ffd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   26.716921] ==================================================================