Hay
Date
July 2, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   27.065382] ==================================================================
[   27.065468] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.065468] 
[   27.065528] Corrupted memory at 0x0000000010dfecaa [ ! . . . . . . . . . . . . . . . ] (in kfence-#132):
[   27.065850]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.065901]  kunit_try_run_case+0x170/0x3f0
[   27.065944]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.065990]  kthread+0x328/0x630
[   27.066029]  ret_from_fork+0x10/0x20
[   27.066069] 
[   27.066094] kfence-#132: 0x00000000c6f522f4-0x000000008f3346cc, size=73, cache=kmalloc-96
[   27.066094] 
[   27.066147] allocated by task 325 on cpu 0 at 27.065145s (0.000998s ago):
[   27.066209]  test_alloc+0x29c/0x628
[   27.066249]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   27.066291]  kunit_try_run_case+0x170/0x3f0
[   27.066332]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.066373]  kthread+0x328/0x630
[   27.066409]  ret_from_fork+0x10/0x20
[   27.066447] 
[   27.066471] freed by task 325 on cpu 0 at 27.065296s (0.001170s ago):
[   27.066533]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.066584]  kunit_try_run_case+0x170/0x3f0
[   27.066625]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.066668]  kthread+0x328/0x630
[   27.066702]  ret_from_fork+0x10/0x20
[   27.066741] 
[   27.066783] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   27.066863] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.066892] Hardware name: linux,dummy-virt (DT)
[   27.066925] ==================================================================

[   22.854029] ==================================================================
[   22.854459] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.854459] 
[   22.854985] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#129):
[   22.855604]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.855917]  kunit_try_run_case+0x1a5/0x480
[   22.856289]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.856511]  kthread+0x337/0x6f0
[   22.856734]  ret_from_fork+0x116/0x1d0
[   22.856932]  ret_from_fork_asm+0x1a/0x30
[   22.857129] 
[   22.857250] kfence-#129: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   22.857250] 
[   22.857671] allocated by task 344 on cpu 0 at 22.853769s (0.003899s ago):
[   22.858040]  test_alloc+0x364/0x10f0
[   22.858227]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   22.858406]  kunit_try_run_case+0x1a5/0x480
[   22.858617]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.858905]  kthread+0x337/0x6f0
[   22.859095]  ret_from_fork+0x116/0x1d0
[   22.859263]  ret_from_fork_asm+0x1a/0x30
[   22.859508] 
[   22.859609] freed by task 344 on cpu 0 at 22.853913s (0.005693s ago):
[   22.859892]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.860111]  kunit_try_run_case+0x1a5/0x480
[   22.860314]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.860564]  kthread+0x337/0x6f0
[   22.860747]  ret_from_fork+0x116/0x1d0
[   22.860905]  ret_from_fork_asm+0x1a/0x30
[   22.861042] 
[   22.861139] CPU: 0 UID: 0 PID: 344 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   22.861647] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.861857] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.862244] ==================================================================