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

Environment
qemu-x86_64

[   12.018098] ==================================================================
[   12.019404] BUG: KFENCE: memory corruption in kmalloc_track_caller_oob_right+0x288/0x520
[   12.019404] 
[   12.019919] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#30):
[   12.020817]  kmalloc_track_caller_oob_right+0x288/0x520
[   12.021043]  kunit_try_run_case+0x1a5/0x480
[   12.021256]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.021658]  kthread+0x337/0x6f0
[   12.021819]  ret_from_fork+0x116/0x1d0
[   12.021998]  ret_from_fork_asm+0x1a/0x30
[   12.022212] 
[   12.022458] kfence-#30: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   12.022458] 
[   12.022970] allocated by task 159 on cpu 0 at 12.016109s (0.006803s ago):
[   12.023321]  kmalloc_track_caller_oob_right+0x19a/0x520
[   12.023548]  kunit_try_run_case+0x1a5/0x480
[   12.023901]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.024135]  kthread+0x337/0x6f0
[   12.024268]  ret_from_fork+0x116/0x1d0
[   12.024413]  ret_from_fork_asm+0x1a/0x30
[   12.024673] 
[   12.024875] freed by task 159 on cpu 0 at 12.017420s (0.007384s ago):
[   12.025164]  kmalloc_track_caller_oob_right+0x288/0x520
[   12.025392]  kunit_try_run_case+0x1a5/0x480
[   12.025630]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.025830]  kthread+0x337/0x6f0
[   12.025973]  ret_from_fork+0x116/0x1d0
[   12.026158]  ret_from_fork_asm+0x1a/0x30
[   12.026379] 
[   12.026544] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.026945] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.027147] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.027528] ==================================================================