Hay
Date
June 17, 2025, 6:35 a.m.

Environment
qemu-x86_64

[   18.189787] ==================================================================
[   18.191744] BUG: KFENCE: memory corruption in kmalloc_oob_memset_16+0x187/0x330
[   18.191744] 
[   18.192421] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . ] (in kfence-#66):
[   18.193732]  kmalloc_oob_memset_16+0x187/0x330
[   18.194285]  kunit_try_run_case+0x1a5/0x480
[   18.194793]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.195440]  kthread+0x337/0x6f0
[   18.195729]  ret_from_fork+0x116/0x1d0
[   18.196137]  ret_from_fork_asm+0x1a/0x30
[   18.196521] 
[   18.196811] kfence-#66: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   18.196811] 
[   18.197594] allocated by task 205 on cpu 0 at 18.188521s (0.009068s ago):
[   18.198051]  kmalloc_oob_memset_16+0xac/0x330
[   18.198405]  kunit_try_run_case+0x1a5/0x480
[   18.198829]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.199377]  kthread+0x337/0x6f0
[   18.199740]  ret_from_fork+0x116/0x1d0
[   18.200128]  ret_from_fork_asm+0x1a/0x30
[   18.200601] 
[   18.200788] freed by task 205 on cpu 0 at 18.189727s (0.011055s ago):
[   18.201404]  kmalloc_oob_memset_16+0x187/0x330
[   18.201808]  kunit_try_run_case+0x1a5/0x480
[   18.202188]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.202621]  kthread+0x337/0x6f0
[   18.203365]  ret_from_fork+0x116/0x1d0
[   18.203749]  ret_from_fork_asm+0x1a/0x30
[   18.204116] 
[   18.204314] CPU: 0 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) 
[   18.205272] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.205541] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.206533] ==================================================================