Hay
Date
July 12, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   31.342302] ==================================================================
[   31.342456] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   31.342456] 
[   31.342547] Corrupted memory at 0x00000000a7adc3a0 [ ! . . . . . . . . . . . . . . . ] (in kfence-#188):
[   31.342916]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   31.342977]  kunit_try_run_case+0x170/0x3f0
[   31.343025]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.343071]  kthread+0x328/0x630
[   31.343112]  ret_from_fork+0x10/0x20
[   31.343154] 
[   31.343181] kfence-#188: 0x0000000056220343-0x0000000036027be2, size=73, cache=kmalloc-96
[   31.343181] 
[   31.343243] allocated by task 326 on cpu 0 at 31.341895s (0.001344s ago):
[   31.343314]  test_alloc+0x29c/0x628
[   31.343361]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   31.343411]  kunit_try_run_case+0x170/0x3f0
[   31.343450]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.343495]  kthread+0x328/0x630
[   31.343533]  ret_from_fork+0x10/0x20
[   31.343574] 
[   31.343599] freed by task 326 on cpu 0 at 31.342129s (0.001466s ago):
[   31.343663]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   31.343708]  kunit_try_run_case+0x170/0x3f0
[   31.343749]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.343792]  kthread+0x328/0x630
[   31.343846]  ret_from_fork+0x10/0x20
[   31.343890] 
[   31.343940] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   31.344027] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.344058] Hardware name: linux,dummy-virt (DT)
[   31.344094] ==================================================================

[   25.705260] ==================================================================
[   25.705665] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   25.705665] 
[   25.706069] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#142):
[   25.706773]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   25.706997]  kunit_try_run_case+0x1a5/0x480
[   25.707211]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.707430]  kthread+0x337/0x6f0
[   25.707627]  ret_from_fork+0x116/0x1d0
[   25.707889]  ret_from_fork_asm+0x1a/0x30
[   25.708071] 
[   25.708145] kfence-#142: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   25.708145] 
[   25.708550] allocated by task 343 on cpu 1 at 25.705005s (0.003543s ago):
[   25.708894]  test_alloc+0x364/0x10f0
[   25.709066]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   25.709282]  kunit_try_run_case+0x1a5/0x480
[   25.709517]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.709773]  kthread+0x337/0x6f0
[   25.709933]  ret_from_fork+0x116/0x1d0
[   25.710077]  ret_from_fork_asm+0x1a/0x30
[   25.710213] 
[   25.710309] freed by task 343 on cpu 1 at 25.705143s (0.005164s ago):
[   25.710630]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   25.710977]  kunit_try_run_case+0x1a5/0x480
[   25.711165]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.711387]  kthread+0x337/0x6f0
[   25.711576]  ret_from_fork+0x116/0x1d0
[   25.711798]  ret_from_fork_asm+0x1a/0x30
[   25.711983] 
[   25.712133] CPU: 1 UID: 0 PID: 343 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   25.712626] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.712842] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.713095] ==================================================================