Hay
Date
July 9, 2025, 11:07 p.m.

Environment
qemu-x86_64

[   12.006387] ==================================================================
[   12.008180] BUG: KFENCE: memory corruption in kmalloc_track_caller_oob_right+0x288/0x520
[   12.008180] 
[   12.009074] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . ] (in kfence-#31):
[   12.010259]  kmalloc_track_caller_oob_right+0x288/0x520
[   12.010671]  kunit_try_run_case+0x1a5/0x480
[   12.010851]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.011424]  kthread+0x337/0x6f0
[   12.011749]  ret_from_fork+0x116/0x1d0
[   12.012137]  ret_from_fork_asm+0x1a/0x30
[   12.012523] 
[   12.012776] kfence-#31: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   12.012776] 
[   12.013352] allocated by task 159 on cpu 0 at 12.004609s (0.008685s ago):
[   12.014055]  kmalloc_track_caller_oob_right+0x19a/0x520
[   12.014650]  kunit_try_run_case+0x1a5/0x480
[   12.015133]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.015597]  kthread+0x337/0x6f0
[   12.016155]  ret_from_fork+0x116/0x1d0
[   12.016505]  ret_from_fork_asm+0x1a/0x30
[   12.016921] 
[   12.017256] freed by task 159 on cpu 0 at 12.005908s (0.011273s ago):
[   12.017855]  kmalloc_track_caller_oob_right+0x288/0x520
[   12.018425]  kunit_try_run_case+0x1a5/0x480
[   12.018575]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.018761]  kthread+0x337/0x6f0
[   12.018881]  ret_from_fork+0x116/0x1d0
[   12.019012]  ret_from_fork_asm+0x1a/0x30
[   12.019467] 
[   12.019697] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.020760] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.021181] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.021975] ==================================================================