Hay
Date
July 18, 2025, 2:09 p.m.

Environment
qemu-x86_64

[   12.108756] ==================================================================
[   12.109894] BUG: KFENCE: memory corruption in kmalloc_oob_memset_4+0x187/0x330
[   12.109894] 
[   12.110185] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . ] (in kfence-#38):
[   12.110949]  kmalloc_oob_memset_4+0x187/0x330
[   12.111213]  kunit_try_run_case+0x1a5/0x480
[   12.111391]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.111777]  kthread+0x337/0x6f0
[   12.111974]  ret_from_fork+0x116/0x1d0
[   12.112200]  ret_from_fork_asm+0x1a/0x30
[   12.112419] 
[   12.112648] kfence-#38: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   12.112648] 
[   12.113402] allocated by task 192 on cpu 1 at 12.106956s (0.006318s ago):
[   12.113980]  kmalloc_oob_memset_4+0xac/0x330
[   12.114274]  kunit_try_run_case+0x1a5/0x480
[   12.114553]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.114903]  kthread+0x337/0x6f0
[   12.115041]  ret_from_fork+0x116/0x1d0
[   12.115226]  ret_from_fork_asm+0x1a/0x30
[   12.115672] 
[   12.115953] freed by task 192 on cpu 1 at 12.108306s (0.007554s ago):
[   12.116349]  kmalloc_oob_memset_4+0x187/0x330
[   12.116657]  kunit_try_run_case+0x1a5/0x480
[   12.116979]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.117223]  kthread+0x337/0x6f0
[   12.117385]  ret_from_fork+0x116/0x1d0
[   12.117700]  ret_from_fork_asm+0x1a/0x30
[   12.117962] 
[   12.118109] CPU: 1 UID: 0 PID: 192 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.118637] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.118868] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.119364] ==================================================================