Hay
Date
July 22, 2025, 5:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.572889] ==================================================================
[   32.573124] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   32.573232] Read of size 1 at addr ffff800080a37b4a by task kunit_try_catch/284
[   32.573356] 
[   32.573413] CPU: 1 UID: 0 PID: 284 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250722 #1 PREEMPT 
[   32.573523] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   32.573557] Hardware name: linux,dummy-virt (DT)
[   32.573589] Call trace:
[   32.573616]  show_stack+0x20/0x38 (C)
[   32.573668]  dump_stack_lvl+0x8c/0xd0
[   32.573717]  print_report+0x310/0x5e8
[   32.573942]  kasan_report+0xdc/0x128
[   32.574022]  __asan_report_load1_noabort+0x20/0x30
[   32.574339]  kasan_alloca_oob_right+0x2dc/0x340
[   32.574438]  kunit_try_run_case+0x170/0x3f0
[   32.574594]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.574704]  kthread+0x328/0x630
[   32.575105]  ret_from_fork+0x10/0x20
[   32.575313] 
[   32.575387] The buggy address belongs to stack of task kunit_try_catch/284
[   32.575473] 
[   32.575576] The buggy address belongs to a 8-page vmalloc region starting at 0xffff800080a30000 allocated at kernel_clone+0x150/0x7b0
[   32.575972] The buggy address belongs to the physical page:
[   32.576106] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xfff00000c95f10c8 pfn:0x1095f1
[   32.576233] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.576298] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   32.576398] raw: fff00000c95f10c8 0000000000000000 00000001ffffffff 0000000000000000
[   32.576452] page dumped because: kasan: bad access detected
[   32.576488] 
[   32.576508] Memory state around the buggy address:
[   32.576551]  ffff800080a37a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.576598]  ffff800080a37a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.576640] >ffff800080a37b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   32.576679]                                               ^
[   32.576726]  ffff800080a37b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   32.576779]  ffff800080a37c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   32.576840] ==================================================================

[   26.941381] ==================================================================
[   26.941885] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   26.942418] Read of size 1 at addr ffff8881062d7c4a by task kunit_try_catch/301
[   26.942947] 
[   26.943063] CPU: 0 UID: 0 PID: 301 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) 
[   26.943113] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.943125] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.943147] Call Trace:
[   26.943170]  <TASK>
[   26.943185]  dump_stack_lvl+0x73/0xb0
[   26.943216]  print_report+0xd1/0x640
[   26.943240]  ? __virt_addr_valid+0x1db/0x2d0
[   26.943265]  ? kasan_alloca_oob_right+0x329/0x390
[   26.943288]  ? kasan_addr_to_slab+0x11/0xa0
[   26.943310]  ? kasan_alloca_oob_right+0x329/0x390
[   26.943333]  kasan_report+0x141/0x180
[   26.943356]  ? kasan_alloca_oob_right+0x329/0x390
[   26.943385]  __asan_report_load1_noabort+0x18/0x20
[   26.943409]  kasan_alloca_oob_right+0x329/0x390
[   26.943434]  ? finish_task_switch.isra.0+0x153/0x700
[   26.943457]  ? __mutex_lock.constprop.0+0x94e/0x1770
[   26.943533]  ? trace_hardirqs_on+0x37/0xe0
[   26.943560]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   26.943586]  ? __schedule+0x10da/0x2b60
[   26.943611]  ? __pfx_read_tsc+0x10/0x10
[   26.943634]  ? ktime_get_ts64+0x86/0x230
[   26.943658]  kunit_try_run_case+0x1a5/0x480
[   26.943686]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.943710]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.943735]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.943760]  ? __kthread_parkme+0x82/0x180
[   26.943781]  ? preempt_count_sub+0x50/0x80
[   26.943804]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.943842]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.943868]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.943893]  kthread+0x337/0x6f0
[   26.943913]  ? trace_preempt_on+0x20/0xc0
[   26.943937]  ? __pfx_kthread+0x10/0x10
[   26.943958]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.943982]  ? calculate_sigpending+0x7b/0xa0
[   26.944007]  ? __pfx_kthread+0x10/0x10
[   26.944029]  ret_from_fork+0x116/0x1d0
[   26.944049]  ? __pfx_kthread+0x10/0x10
[   26.944070]  ret_from_fork_asm+0x1a/0x30
[   26.944102]  </TASK>
[   26.944113] 
[   26.951910] The buggy address belongs to stack of task kunit_try_catch/301
[   26.952207] 
[   26.952300] The buggy address belongs to the physical page:
[   26.952585] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1062d7
[   26.952872] flags: 0x200000000000000(node=0|zone=2)
[   26.953065] raw: 0200000000000000 ffffea000418b5c8 ffffea000418b5c8 0000000000000000
[   26.953644] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   26.953899] page dumped because: kasan: bad access detected
[   26.954098] 
[   26.954188] Memory state around the buggy address:
[   26.954532]  ffff8881062d7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.955048]  ffff8881062d7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.955288] >ffff8881062d7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   26.955505]                                               ^
[   26.955682]  ffff8881062d7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   26.956001]  ffff8881062d7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   26.956543] ==================================================================