Hay
Date
July 4, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   28.263542] ==================================================================
[   28.263629] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.263629] 
[   28.263692] Corrupted memory at 0x000000008c863f3b [ ! . . . . . . . . . . . . . . . ] (in kfence-#144):
[   28.264022]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.264073]  kunit_try_run_case+0x170/0x3f0
[   28.264118]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.264162]  kthread+0x328/0x630
[   28.264201]  ret_from_fork+0x10/0x20
[   28.264241] 
[   28.264265] kfence-#144: 0x00000000263abe8d-0x000000004e423e3f, size=73, cache=kmalloc-96
[   28.264265] 
[   28.264321] allocated by task 325 on cpu 1 at 28.263305s (0.001012s ago):
[   28.264382]  test_alloc+0x29c/0x628
[   28.264424]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   28.264466]  kunit_try_run_case+0x170/0x3f0
[   28.264507]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.264550]  kthread+0x328/0x630
[   28.264585]  ret_from_fork+0x10/0x20
[   28.264625] 
[   28.264649] freed by task 325 on cpu 1 at 28.263445s (0.001200s ago):
[   28.264710]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.264753]  kunit_try_run_case+0x170/0x3f0
[   28.264791]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.264845]  kthread+0x328/0x630
[   28.264880]  ret_from_fork+0x10/0x20
[   28.264920] 
[   28.264964] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   28.265042] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.265072] Hardware name: linux,dummy-virt (DT)
[   28.265106] ==================================================================

[   23.618849] ==================================================================
[   23.619382] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.619382] 
[   23.619750] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#135):
[   23.620324]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.620689]  kunit_try_run_case+0x1a5/0x480
[   23.620941]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.621179]  kthread+0x337/0x6f0
[   23.621318]  ret_from_fork+0x116/0x1d0
[   23.621507]  ret_from_fork_asm+0x1a/0x30
[   23.621708] 
[   23.621892] kfence-#135: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   23.621892] 
[   23.622246] allocated by task 342 on cpu 0 at 23.618578s (0.003666s ago):
[   23.622503]  test_alloc+0x364/0x10f0
[   23.622768]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   23.622964]  kunit_try_run_case+0x1a5/0x480
[   23.623164]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.623534]  kthread+0x337/0x6f0
[   23.623684]  ret_from_fork+0x116/0x1d0
[   23.623854]  ret_from_fork_asm+0x1a/0x30
[   23.624003] 
[   23.624103] freed by task 342 on cpu 0 at 23.618726s (0.005375s ago):
[   23.624414]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.624684]  kunit_try_run_case+0x1a5/0x480
[   23.624861]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.625118]  kthread+0x337/0x6f0
[   23.625304]  ret_from_fork+0x116/0x1d0
[   23.625472]  ret_from_fork_asm+0x1a/0x30
[   23.625627] 
[   23.625760] CPU: 0 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   23.626239] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.626406] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.626788] ==================================================================