Hay
Date
July 11, 2025, 11:09 p.m.

Environment
qemu-x86_64

[   12.537318] ==================================================================
[   12.538361] BUG: KFENCE: memory corruption in kmalloc_oob_memset_16+0x187/0x330
[   12.538361] 
[   12.538821] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . ] (in kfence-#36):
[   12.539699]  kmalloc_oob_memset_16+0x187/0x330
[   12.539954]  kunit_try_run_case+0x1a5/0x480
[   12.540250]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.540466]  kthread+0x337/0x6f0
[   12.540654]  ret_from_fork+0x116/0x1d0
[   12.540878]  ret_from_fork_asm+0x1a/0x30
[   12.541170] 
[   12.541442] kfence-#36: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   12.541442] 
[   12.542266] allocated by task 195 on cpu 1 at 12.535245s (0.006751s ago):
[   12.542704]  kmalloc_oob_memset_16+0xac/0x330
[   12.542964]  kunit_try_run_case+0x1a5/0x480
[   12.543246]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.543479]  kthread+0x337/0x6f0
[   12.543645]  ret_from_fork+0x116/0x1d0
[   12.543873]  ret_from_fork_asm+0x1a/0x30
[   12.544229] 
[   12.544489] freed by task 195 on cpu 1 at 12.536824s (0.007548s ago):
[   12.544793]  kmalloc_oob_memset_16+0x187/0x330
[   12.545119]  kunit_try_run_case+0x1a5/0x480
[   12.545331]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.545543]  kthread+0x337/0x6f0
[   12.545729]  ret_from_fork+0x116/0x1d0
[   12.545886]  ret_from_fork_asm+0x1a/0x30
[   12.546130] 
[   12.546396] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.546788] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.547161] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.547566] ==================================================================