Hay
Date
May 13, 2025, 12:07 p.m.

Environment
qemu-x86_64

[   10.526883] ==================================================================
[   10.527846] BUG: KFENCE: memory corruption in kmalloc_track_caller_oob_right+0x288/0x520
[   10.527846] 
[   10.528292] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#31):
[   10.529120]  kmalloc_track_caller_oob_right+0x288/0x520
[   10.529432]  kunit_try_run_case+0x1a5/0x480
[   10.529645]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.529863]  kthread+0x337/0x6f0
[   10.530062]  ret_from_fork+0x116/0x1d0
[   10.530273]  ret_from_fork_asm+0x1a/0x30
[   10.530501] 
[   10.531121] kfence-#31: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   10.531121] 
[   10.531882] allocated by task 159 on cpu 0 at 10.525241s (0.006542s ago):
[   10.532380]  kmalloc_track_caller_oob_right+0x19a/0x520
[   10.533187]  kunit_try_run_case+0x1a5/0x480
[   10.533429]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.533835]  kthread+0x337/0x6f0
[   10.534039]  ret_from_fork+0x116/0x1d0
[   10.534316]  ret_from_fork_asm+0x1a/0x30
[   10.534775] 
[   10.534984] freed by task 159 on cpu 0 at 10.526423s (0.008487s ago):
[   10.535232]  kmalloc_track_caller_oob_right+0x288/0x520
[   10.535486]  kunit_try_run_case+0x1a5/0x480
[   10.535716]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.535932]  kthread+0x337/0x6f0
[   10.536146]  ret_from_fork+0x116/0x1d0
[   10.536358]  ret_from_fork_asm+0x1a/0x30
[   10.536567] 
[   10.536750] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) 
[   10.537217] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.537443] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.537822] ==================================================================