Hay
Date
July 23, 2025, 3:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.760399] ==================================================================
[   32.760516] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   32.760715] Read of size 1 at addr ffff800080b77b5f by task kunit_try_catch/284
[   32.760772] 
[   32.760810] CPU: 1 UID: 0 PID: 284 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   32.760921] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   32.760953] Hardware name: linux,dummy-virt (DT)
[   32.760988] Call trace:
[   32.761013]  show_stack+0x20/0x38 (C)
[   32.761066]  dump_stack_lvl+0x8c/0xd0
[   32.761115]  print_report+0x310/0x5e8
[   32.761161]  kasan_report+0xdc/0x128
[   32.761228]  __asan_report_load1_noabort+0x20/0x30
[   32.761283]  kasan_alloca_oob_left+0x2b8/0x310
[   32.761334]  kunit_try_run_case+0x170/0x3f0
[   32.761383]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.761437]  kthread+0x328/0x630
[   32.761480]  ret_from_fork+0x10/0x20
[   32.761532] 
[   32.761591] The buggy address belongs to stack of task kunit_try_catch/284
[   32.761781] 
[   32.761806] The buggy address belongs to a 8-page vmalloc region starting at 0xffff800080b70000 allocated at kernel_clone+0x150/0x7b0
[   32.761959] The buggy address belongs to the physical page:
[   32.761998] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109c18
[   32.762083] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.762151] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   32.762203] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   32.762246] page dumped because: kasan: bad access detected
[   32.762279] 
[   32.762298] Memory state around the buggy address:
[   32.762334]  ffff800080b77a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.762384]  ffff800080b77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.762429] >ffff800080b77b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   32.763205]                                                     ^
[   32.763405]  ffff800080b77b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   32.763544]  ffff800080b77c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   32.763634] ==================================================================

[   27.116809] ==================================================================
[   27.117417] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   27.117671] Read of size 1 at addr ffff8881061d7c3f by task kunit_try_catch/300
[   27.117890] 
[   27.117979] CPU: 0 UID: 0 PID: 300 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) 
[   27.118032] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.118045] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.118068] Call Trace:
[   27.118083]  <TASK>
[   27.118103]  dump_stack_lvl+0x73/0xb0
[   27.118135]  print_report+0xd1/0x640
[   27.118173]  ? __virt_addr_valid+0x1db/0x2d0
[   27.118198]  ? kasan_alloca_oob_left+0x320/0x380
[   27.118221]  ? kasan_addr_to_slab+0x11/0xa0
[   27.118242]  ? kasan_alloca_oob_left+0x320/0x380
[   27.118264]  kasan_report+0x141/0x180
[   27.118287]  ? kasan_alloca_oob_left+0x320/0x380
[   27.118410]  __asan_report_load1_noabort+0x18/0x20
[   27.118500]  kasan_alloca_oob_left+0x320/0x380
[   27.118528]  ? finish_task_switch.isra.0+0x153/0x700
[   27.118553]  ? __wait_for_common+0x1fe/0x440
[   27.118700]  ? trace_hardirqs_on+0x37/0xe0
[   27.118730]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   27.118756]  ? __schedule+0x10da/0x2b60
[   27.118781]  ? __pfx_read_tsc+0x10/0x10
[   27.118803]  ? ktime_get_ts64+0x86/0x230
[   27.118829]  kunit_try_run_case+0x1a5/0x480
[   27.118856]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.118880]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   27.118906]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   27.119398]  ? __kthread_parkme+0x82/0x180
[   27.119429]  ? preempt_count_sub+0x50/0x80
[   27.119454]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.119482]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.119510]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   27.119535]  kthread+0x337/0x6f0
[   27.119556]  ? trace_preempt_on+0x20/0xc0
[   27.119581]  ? __pfx_kthread+0x10/0x10
[   27.119602]  ? _raw_spin_unlock_irq+0x47/0x80
[   27.119632]  ? calculate_sigpending+0x7b/0xa0
[   27.119657]  ? __pfx_kthread+0x10/0x10
[   27.119679]  ret_from_fork+0x116/0x1d0
[   27.119700]  ? __pfx_kthread+0x10/0x10
[   27.119720]  ret_from_fork_asm+0x1a/0x30
[   27.119753]  </TASK>
[   27.119765] 
[   27.132006] The buggy address belongs to stack of task kunit_try_catch/300
[   27.132506] 
[   27.132671] The buggy address belongs to the physical page:
[   27.133081] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061d7
[   27.133434] flags: 0x200000000000000(node=0|zone=2)
[   27.133685] raw: 0200000000000000 ffffea00041875c8 ffffea00041875c8 0000000000000000
[   27.134015] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   27.134334] page dumped because: kasan: bad access detected
[   27.134566] 
[   27.134640] Memory state around the buggy address:
[   27.134855]  ffff8881061d7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.135687]  ffff8881061d7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.136125] >ffff8881061d7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   27.136666]                                         ^
[   27.137091]  ffff8881061d7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   27.137589]  ffff8881061d7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   27.138109] ==================================================================