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

Environment
qemu-x86_64

[   12.343016] ==================================================================
[   12.343970] BUG: KFENCE: memory corruption in kmalloc_oob_memset_2+0x187/0x330
[   12.343970] 
[   12.344509] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . ] (in kfence-#40):
[   12.345220]  kmalloc_oob_memset_2+0x187/0x330
[   12.345433]  kunit_try_run_case+0x1a5/0x480
[   12.345733]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.345927]  kthread+0x337/0x6f0
[   12.346109]  ret_from_fork+0x116/0x1d0
[   12.346350]  ret_from_fork_asm+0x1a/0x30
[   12.346523] 
[   12.346808] kfence-#40: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   12.346808] 
[   12.347374] allocated by task 189 on cpu 0 at 12.341227s (0.006083s ago):
[   12.347799]  kmalloc_oob_memset_2+0xac/0x330
[   12.348222]  kunit_try_run_case+0x1a5/0x480
[   12.348390]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.348644]  kthread+0x337/0x6f0
[   12.348819]  ret_from_fork+0x116/0x1d0
[   12.348988]  ret_from_fork_asm+0x1a/0x30
[   12.349218] 
[   12.349421] freed by task 189 on cpu 0 at 12.342563s (0.006780s ago):
[   12.349687]  kmalloc_oob_memset_2+0x187/0x330
[   12.349910]  kunit_try_run_case+0x1a5/0x480
[   12.350193]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.350392]  kthread+0x337/0x6f0
[   12.350562]  ret_from_fork+0x116/0x1d0
[   12.350752]  ret_from_fork_asm+0x1a/0x30
[   12.351027] 
[   12.351195] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.351569] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.351794] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.352399] ==================================================================