Hay
Date
May 29, 2025, 7:10 a.m.

Environment
qemu-x86_64

[   10.344334] ==================================================================
[   10.346179] BUG: KFENCE: memory corruption in kmalloc_track_caller_oob_right+0x288/0x520
[   10.346179] 
[   10.346749] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#30):
[   10.348312]  kmalloc_track_caller_oob_right+0x288/0x520
[   10.348857]  kunit_try_run_case+0x1a5/0x480
[   10.349150]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.349338]  kthread+0x337/0x6f0
[   10.349464]  ret_from_fork+0x116/0x1d0
[   10.349597]  ret_from_fork_asm+0x1a/0x30
[   10.349780] 
[   10.350255] kfence-#30: 0x(____ptrval____)-0x(____ptrval____), size=120, cache=kmalloc-128
[   10.350255] 
[   10.351507] allocated by task 159 on cpu 1 at 10.342462s (0.008981s ago):
[   10.352493]  kmalloc_track_caller_oob_right+0x19a/0x520
[   10.353075]  kunit_try_run_case+0x1a5/0x480
[   10.353651]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.354409]  kthread+0x337/0x6f0
[   10.354868]  ret_from_fork+0x116/0x1d0
[   10.355299]  ret_from_fork_asm+0x1a/0x30
[   10.355641] 
[   10.355831] freed by task 159 on cpu 1 at 10.343560s (0.012200s ago):
[   10.356603]  kmalloc_track_caller_oob_right+0x288/0x520
[   10.357305]  kunit_try_run_case+0x1a5/0x480
[   10.357797]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.358289]  kthread+0x337/0x6f0
[   10.358418]  ret_from_fork+0x116/0x1d0
[   10.358559]  ret_from_fork_asm+0x1a/0x30
[   10.358740] 
[   10.358900] CPU: 1 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT(voluntary) 
[   10.359729] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.360112] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.361149] ==================================================================