Hay
Date
July 23, 2025, 2:10 a.m.

Environment
qemu-x86_64

[   12.136500] ==================================================================
[   12.137633] BUG: KFENCE: memory corruption in kmalloc_track_caller_oob_right+0x288/0x520
[   12.137633] 
[   12.138270] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . ] (in kfence-#30):
[   12.139574]  kmalloc_track_caller_oob_right+0x288/0x520
[   12.139961]  kunit_try_run_case+0x1a5/0x480
[   12.140332]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.140724]  kthread+0x337/0x6f0
[   12.141032]  ret_from_fork+0x116/0x1d0
[   12.141342]  ret_from_fork_asm+0x1a/0x30
[   12.141799] 
[   12.142045] kfence-#30: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   12.142045] 
[   12.143103] allocated by task 159 on cpu 1 at 12.134843s (0.008033s ago):
[   12.143664]  kmalloc_track_caller_oob_right+0x19a/0x520
[   12.144082]  kunit_try_run_case+0x1a5/0x480
[   12.144500]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.144886]  kthread+0x337/0x6f0
[   12.145186]  ret_from_fork+0x116/0x1d0
[   12.145519]  ret_from_fork_asm+0x1a/0x30
[   12.146072] 
[   12.146315] freed by task 159 on cpu 1 at 12.136052s (0.010176s ago):
[   12.147135]  kmalloc_track_caller_oob_right+0x288/0x520
[   12.147434]  kunit_try_run_case+0x1a5/0x480
[   12.147764]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.148029]  kthread+0x337/0x6f0
[   12.148411]  ret_from_fork+0x116/0x1d0
[   12.148716]  ret_from_fork_asm+0x1a/0x30
[   12.149009] 
[   12.149432] CPU: 1 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   12.150010] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.150376] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.150905] ==================================================================