Hay
Date
May 29, 2025, 7:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.587691] ==================================================================
[   32.587866] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   32.587866] 
[   32.587948] Corrupted memory at 0x00000000bc5ba393 [ ! . . . . . . . . . . . . . . . ] (in kfence-#168):
[   32.588310]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   32.588371]  kunit_try_run_case+0x170/0x3f0
[   32.588452]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.588505]  kthread+0x328/0x630
[   32.588547]  ret_from_fork+0x10/0x20
[   32.588593] 
[   32.588622] kfence-#168: 0x00000000f1c003b6-0x00000000b07da2b5, size=73, cache=kmalloc-96
[   32.588622] 
[   32.588687] allocated by task 325 on cpu 0 at 32.587219s (0.001463s ago):
[   32.588764]  test_alloc+0x29c/0x628
[   32.588813]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   32.588863]  kunit_try_run_case+0x170/0x3f0
[   32.588908]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.588957]  kthread+0x328/0x630
[   32.588997]  ret_from_fork+0x10/0x20
[   32.589042] 
[   32.589070] freed by task 325 on cpu 0 at 32.587465s (0.001600s ago):
[   32.589141]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   32.589192]  kunit_try_run_case+0x170/0x3f0
[   32.589238]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.589285]  kthread+0x328/0x630
[   32.589327]  ret_from_fork+0x10/0x20
[   32.589370] 
[   32.589430] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT 
[   32.589531] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.589565] Hardware name: linux,dummy-virt (DT)
[   32.589605] ==================================================================


[   22.922322] ==================================================================
[   22.922740] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.922740] 
[   22.923117] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#134):
[   22.923756]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.924011]  kunit_try_run_case+0x1a5/0x480
[   22.924168]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.924429]  kthread+0x337/0x6f0
[   22.924622]  ret_from_fork+0x116/0x1d0
[   22.924793]  ret_from_fork_asm+0x1a/0x30
[   22.925002] 
[   22.925090] kfence-#134: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   22.925090] 
[   22.925478] allocated by task 342 on cpu 0 at 22.922081s (0.003395s ago):
[   22.925802]  test_alloc+0x364/0x10f0
[   22.925955]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   22.926132]  kunit_try_run_case+0x1a5/0x480
[   22.926344]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.926616]  kthread+0x337/0x6f0
[   22.926787]  ret_from_fork+0x116/0x1d0
[   22.926947]  ret_from_fork_asm+0x1a/0x30
[   22.927093] 
[   22.927178] freed by task 342 on cpu 0 at 22.922215s (0.004962s ago):
[   22.927488]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.927754]  kunit_try_run_case+0x1a5/0x480
[   22.927969]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.928183]  kthread+0x337/0x6f0
[   22.928364]  ret_from_fork+0x116/0x1d0
[   22.928547]  ret_from_fork_asm+0x1a/0x30
[   22.928740] 
[   22.928901] CPU: 0 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT(voluntary) 
[   22.929263] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.929460] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.929868] ==================================================================