Hay
Date
June 17, 2025, 3:40 p.m.

Environment
qemu-x86_64

[   17.704591] ==================================================================
[   17.706681] BUG: KFENCE: memory corruption in kmalloc_oob_right+0x340/0x7f0
[   17.706681] 
[   17.707603] Corrupted memory at 0x(____ptrval____) [ ! . . . . ! . . . . . . . ] (in kfence-#60):
[   17.709507]  kmalloc_oob_right+0x340/0x7f0
[   17.709964]  kunit_try_run_case+0x1a5/0x480
[   17.710487]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.710990]  kthread+0x337/0x6f0
[   17.711470]  ret_from_fork+0x41/0x80
[   17.711774]  ret_from_fork_asm+0x1a/0x30
[   17.712254] 
[   17.712472] kfence-#60: 0x(____ptrval____)-0x(____ptrval____), size=115, cache=kmalloc-128
[   17.712472] 
[   17.713356] allocated by task 156 on cpu 0 at 17.675691s (0.037659s ago):
[   17.714007]  kmalloc_oob_right+0xa9/0x7f0
[   17.714474]  kunit_try_run_case+0x1a5/0x480
[   17.714967]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.715531]  kthread+0x337/0x6f0
[   17.715893]  ret_from_fork+0x41/0x80
[   17.716200]  ret_from_fork_asm+0x1a/0x30
[   17.716918] 
[   17.717556] freed by task 156 on cpu 0 at 17.704389s (0.012998s ago):
[   17.718299]  kmalloc_oob_right+0x340/0x7f0
[   17.718637]  kunit_try_run_case+0x1a5/0x480
[   17.719092]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.719574]  kthread+0x337/0x6f0
[   17.719825]  ret_from_fork+0x41/0x80
[   17.722486]  ret_from_fork_asm+0x1a/0x30
[   17.723592] 
[   17.724050] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT(voluntary) 
[   17.725119] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.725913] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.727018] ==================================================================