Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-x86_64

[   11.471098] ==================================================================
[   11.472197] BUG: KFENCE: memory corruption in kmalloc_oob_memset_2+0x187/0x330
[   11.472197] 
[   11.472563] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . ] (in kfence-#35):
[   11.473512]  kmalloc_oob_memset_2+0x187/0x330
[   11.473731]  kunit_try_run_case+0x1a5/0x480
[   11.473938]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.474175]  kthread+0x337/0x6f0
[   11.474316]  ret_from_fork+0x116/0x1d0
[   11.474512]  ret_from_fork_asm+0x1a/0x30
[   11.474671] 
[   11.474990] kfence-#35: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   11.474990] 
[   11.475552] allocated by task 189 on cpu 0 at 11.469078s (0.006418s ago):
[   11.475947]  kmalloc_oob_memset_2+0xac/0x330
[   11.476154]  kunit_try_run_case+0x1a5/0x480
[   11.476493]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.476825]  kthread+0x337/0x6f0
[   11.476971]  ret_from_fork+0x116/0x1d0
[   11.477173]  ret_from_fork_asm+0x1a/0x30
[   11.477453] 
[   11.477686] freed by task 189 on cpu 0 at 11.470627s (0.006987s ago):
[   11.477951]  kmalloc_oob_memset_2+0x187/0x330
[   11.478173]  kunit_try_run_case+0x1a5/0x480
[   11.478380]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.478615]  kthread+0x337/0x6f0
[   11.478914]  ret_from_fork+0x116/0x1d0
[   11.479052]  ret_from_fork_asm+0x1a/0x30
[   11.479280] 
[   11.479479] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   11.480110] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.480261] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.480657] ==================================================================