Hay
Date
May 23, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   39.949265] ==================================================================
[   39.949476] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   39.949476] 
[   39.949597] Corrupted memory at 0x0000000022ef6c4f [ ! . . . . . . . . . . . . . . . ] (in kfence-#212):
[   39.950024]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   39.950092]  kunit_try_run_case+0x170/0x3f0
[   39.950158]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.950220]  kthread+0x328/0x630
[   39.950282]  ret_from_fork+0x10/0x20
[   39.950341] 
[   39.950378] kfence-#212: 0x000000004e9ba7dd-0x0000000071e8940b, size=73, cache=kmalloc-96
[   39.950378] 
[   39.950477] allocated by task 327 on cpu 0 at 39.948868s (0.001602s ago):
[   39.950568]  test_alloc+0x29c/0x628
[   39.950623]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   39.950683]  kunit_try_run_case+0x170/0x3f0
[   39.950742]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.950805]  kthread+0x328/0x630
[   39.950859]  ret_from_fork+0x10/0x20
[   39.950916] 
[   39.950950] freed by task 327 on cpu 0 at 39.949099s (0.001846s ago):
[   39.951037]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   39.951095]  kunit_try_run_case+0x170/0x3f0
[   39.951154]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.951217]  kthread+0x328/0x630
[   39.951271]  ret_from_fork+0x10/0x20
[   39.951328] 
[   39.951397] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT 
[   39.951522] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.951563] Hardware name: linux,dummy-virt (DT)
[   39.951611] ==================================================================

[   24.598439] ==================================================================
[   24.598847] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   24.598847] 
[   24.599246] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#134):
[   24.599968]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   24.600346]  kunit_try_run_case+0x1a5/0x480
[   24.600572]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.600815]  kthread+0x337/0x6f0
[   24.600942]  ret_from_fork+0x41/0x80
[   24.601145]  ret_from_fork_asm+0x1a/0x30
[   24.601357] 
[   24.601463] kfence-#134: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   24.601463] 
[   24.601774] allocated by task 344 on cpu 0 at 24.598181s (0.003590s ago):
[   24.602078]  test_alloc+0x364/0x10f0
[   24.602266]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   24.602532]  kunit_try_run_case+0x1a5/0x480
[   24.602782]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.603087]  kthread+0x337/0x6f0
[   24.603263]  ret_from_fork+0x41/0x80
[   24.603405]  ret_from_fork_asm+0x1a/0x30
[   24.603547] 
[   24.603658] freed by task 344 on cpu 0 at 24.598311s (0.005345s ago):
[   24.603964]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   24.604201]  kunit_try_run_case+0x1a5/0x480
[   24.604393]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.604684]  kthread+0x337/0x6f0
[   24.604851]  ret_from_fork+0x41/0x80
[   24.605018]  ret_from_fork_asm+0x1a/0x30
[   24.605159] 
[   24.605285] CPU: 0 UID: 0 PID: 344 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT(voluntary) 
[   24.605838] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.606022] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.606317] ==================================================================