Hay
Date
July 12, 2025, 11:09 a.m.

Environment
qemu-x86_64

[   12.750033] ==================================================================
[   12.753124] BUG: KFENCE: memory corruption in kmalloc_oob_memset_4+0x187/0x330
[   12.753124] 
[   12.755265] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#38):
[   12.756798]  kmalloc_oob_memset_4+0x187/0x330
[   12.757061]  kunit_try_run_case+0x1a5/0x480
[   12.757282]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.757518]  kthread+0x337/0x6f0
[   12.757722]  ret_from_fork+0x116/0x1d0
[   12.757905]  ret_from_fork_asm+0x1a/0x30
[   12.758083] 
[   12.758324] kfence-#38: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   12.758324] 
[   12.758877] allocated by task 192 on cpu 0 at 12.747278s (0.011541s ago):
[   12.759256]  kmalloc_oob_memset_4+0xac/0x330
[   12.759462]  kunit_try_run_case+0x1a5/0x480
[   12.759669]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.759918]  kthread+0x337/0x6f0
[   12.760063]  ret_from_fork+0x116/0x1d0
[   12.760218]  ret_from_fork_asm+0x1a/0x30
[   12.760438] 
[   12.760631] freed by task 192 on cpu 0 at 12.749549s (0.011012s ago):
[   12.760945]  kmalloc_oob_memset_4+0x187/0x330
[   12.761154]  kunit_try_run_case+0x1a5/0x480
[   12.761300]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.761488]  kthread+0x337/0x6f0
[   12.761653]  ret_from_fork+0x116/0x1d0
[   12.761860]  ret_from_fork_asm+0x1a/0x30
[   12.762081] 
[   12.762222] CPU: 0 UID: 0 PID: 192 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.762647] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.762859] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.763206] ==================================================================