Hay
Date
July 5, 2025, 5:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   28.147489] ==================================================================
[   28.147583] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.147583] 
[   28.147647] Corrupted memory at 0x000000000b02206f [ ! . . . . . . . . . . . . . . . ] (in kfence-#144):
[   28.147969]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.148019]  kunit_try_run_case+0x170/0x3f0
[   28.148062]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.148106]  kthread+0x328/0x630
[   28.148144]  ret_from_fork+0x10/0x20
[   28.148184] 
[   28.148207] kfence-#144: 0x000000004791df80-0x0000000071ee3de3, size=73, cache=kmalloc-96
[   28.148207] 
[   28.148262] allocated by task 325 on cpu 0 at 28.147246s (0.001012s ago):
[   28.148324]  test_alloc+0x29c/0x628
[   28.148365]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   28.148408]  kunit_try_run_case+0x170/0x3f0
[   28.148447]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.148490]  kthread+0x328/0x630
[   28.148527]  ret_from_fork+0x10/0x20
[   28.148565] 
[   28.148588] freed by task 325 on cpu 0 at 28.147389s (0.001195s ago):
[   28.148649]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.148692]  kunit_try_run_case+0x170/0x3f0
[   28.148731]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.148774]  kthread+0x328/0x630
[   28.148811]  ret_from_fork+0x10/0x20
[   28.148849] 
[   28.148902] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   28.148979] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.149008] Hardware name: linux,dummy-virt (DT)
[   28.149040] ==================================================================

[   23.794769] ==================================================================
[   23.795229] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.795229] 
[   23.795628] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#137):
[   23.796263]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.796487]  kunit_try_run_case+0x1a5/0x480
[   23.796717]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.796944]  kthread+0x337/0x6f0
[   23.797119]  ret_from_fork+0x116/0x1d0
[   23.797257]  ret_from_fork_asm+0x1a/0x30
[   23.797474] 
[   23.797582] kfence-#137: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   23.797582] 
[   23.798017] allocated by task 344 on cpu 0 at 23.794516s (0.003498s ago):
[   23.798278]  test_alloc+0x364/0x10f0
[   23.798436]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   23.798700]  kunit_try_run_case+0x1a5/0x480
[   23.798914]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.799129]  kthread+0x337/0x6f0
[   23.799253]  ret_from_fork+0x116/0x1d0
[   23.799445]  ret_from_fork_asm+0x1a/0x30
[   23.799659] 
[   23.799754] freed by task 344 on cpu 0 at 23.794656s (0.005096s ago):
[   23.799998]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.800197]  kunit_try_run_case+0x1a5/0x480
[   23.800410]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.800691]  kthread+0x337/0x6f0
[   23.800866]  ret_from_fork+0x116/0x1d0
[   23.801003]  ret_from_fork_asm+0x1a/0x30
[   23.801161] 
[   23.801287] CPU: 0 UID: 0 PID: 344 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   23.801794] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.801974] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.802245] ==================================================================