Hay
Date
June 26, 2025, 9:10 a.m.

Environment
qemu-x86_64

[   22.286525] ==================================================================
[   22.288495] BUG: KFENCE: memory corruption in kmalloc_oob_memset_16+0x187/0x330
[   22.288495] 
[   22.288776] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . ] (in kfence-#44):
[   22.289938]  kmalloc_oob_memset_16+0x187/0x330
[   22.290495]  kunit_try_run_case+0x1a5/0x480
[   22.290940]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.291323]  kthread+0x337/0x6f0
[   22.291619]  ret_from_fork+0x116/0x1d0
[   22.292004]  ret_from_fork_asm+0x1a/0x30
[   22.292231] 
[   22.292479] kfence-#44: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   22.292479] 
[   22.292919] allocated by task 207 on cpu 1 at 22.283613s (0.009246s ago):
[   22.293328]  kmalloc_oob_memset_16+0xac/0x330
[   22.293566]  kunit_try_run_case+0x1a5/0x480
[   22.293749]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.293956]  kthread+0x337/0x6f0
[   22.294070]  ret_from_fork+0x116/0x1d0
[   22.294265]  ret_from_fork_asm+0x1a/0x30
[   22.294530] 
[   22.294728] freed by task 207 on cpu 1 at 22.286026s (0.008622s ago):
[   22.294976]  kmalloc_oob_memset_16+0x187/0x330
[   22.295311]  kunit_try_run_case+0x1a5/0x480
[   22.295489]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.295707]  kthread+0x337/0x6f0
[   22.295871]  ret_from_fork+0x116/0x1d0
[   22.296001]  ret_from_fork_asm+0x1a/0x30
[   22.296233] 
[   22.296382] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   22.296787] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.296965] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.297873] ==================================================================