Hay
Date
July 8, 2025, 7:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   24.651951] ==================================================================
[   24.652042] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   24.652042] 
[   24.652104] Invalid free of 0x000000002946c79a (in kfence-#96):
[   24.652156]  test_invalid_addr_free+0xec/0x238
[   24.652201]  kunit_try_run_case+0x170/0x3f0
[   24.652243]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.652286]  kthread+0x328/0x630
[   24.652323]  ret_from_fork+0x10/0x20
[   24.652361] 
[   24.652384] kfence-#96: 0x00000000cba4ec33-0x0000000060b851a3, size=32, cache=test
[   24.652384] 
[   24.652435] allocated by task 309 on cpu 1 at 24.651838s (0.000594s ago):
[   24.652498]  test_alloc+0x230/0x628
[   24.652537]  test_invalid_addr_free+0xd4/0x238
[   24.652578]  kunit_try_run_case+0x170/0x3f0
[   24.652616]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.652660]  kthread+0x328/0x630
[   24.652696]  ret_from_fork+0x10/0x20
[   24.652746] 
[   24.652789] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   24.652867] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.652895] Hardware name: linux,dummy-virt (DT)
[   24.652928] ==================================================================
[   24.547988] ==================================================================
[   24.548081] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   24.548081] 
[   24.548149] Invalid free of 0x00000000d1686fe3 (in kfence-#95):
[   24.548201]  test_invalid_addr_free+0x1ac/0x238
[   24.548247]  kunit_try_run_case+0x170/0x3f0
[   24.548288]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.548333]  kthread+0x328/0x630
[   24.548372]  ret_from_fork+0x10/0x20
[   24.548413] 
[   24.548438] kfence-#95: 0x00000000811687dc-0x00000000a84ebcd0, size=32, cache=kmalloc-32
[   24.548438] 
[   24.548492] allocated by task 307 on cpu 1 at 24.547849s (0.000640s ago):
[   24.548555]  test_alloc+0x29c/0x628
[   24.548594]  test_invalid_addr_free+0xd4/0x238
[   24.548636]  kunit_try_run_case+0x170/0x3f0
[   24.548675]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.548731]  kthread+0x328/0x630
[   24.548766]  ret_from_fork+0x10/0x20
[   24.548806] 
[   24.548849] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   24.548933] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.548962] Hardware name: linux,dummy-virt (DT)
[   24.548997] ==================================================================

[   19.272515] ==================================================================
[   19.272897] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   19.272897] 
[   19.273343] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   19.273730]  test_invalid_addr_free+0x1e1/0x260
[   19.273913]  kunit_try_run_case+0x1a5/0x480
[   19.274165]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.274462]  kthread+0x337/0x6f0
[   19.274662]  ret_from_fork+0x116/0x1d0
[   19.274866]  ret_from_fork_asm+0x1a/0x30
[   19.275103] 
[   19.275180] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   19.275180] 
[   19.275526] allocated by task 324 on cpu 0 at 19.272391s (0.003134s ago):
[   19.275870]  test_alloc+0x364/0x10f0
[   19.276077]  test_invalid_addr_free+0xdb/0x260
[   19.276322]  kunit_try_run_case+0x1a5/0x480
[   19.276527]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.276851]  kthread+0x337/0x6f0
[   19.276972]  ret_from_fork+0x116/0x1d0
[   19.277198]  ret_from_fork_asm+0x1a/0x30
[   19.277404] 
[   19.277547] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.278068] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.278237] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.278710] ==================================================================
[   19.376561] ==================================================================
[   19.376940] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   19.376940] 
[   19.377348] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   19.377689]  test_invalid_addr_free+0xfb/0x260
[   19.377857]  kunit_try_run_case+0x1a5/0x480
[   19.378022]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.378304]  kthread+0x337/0x6f0
[   19.378486]  ret_from_fork+0x116/0x1d0
[   19.378651]  ret_from_fork_asm+0x1a/0x30
[   19.378873] 
[   19.378968] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.378968] 
[   19.379294] allocated by task 326 on cpu 1 at 19.376447s (0.002846s ago):
[   19.379615]  test_alloc+0x2a6/0x10f0
[   19.379802]  test_invalid_addr_free+0xdb/0x260
[   19.380025]  kunit_try_run_case+0x1a5/0x480
[   19.380204]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.380428]  kthread+0x337/0x6f0
[   19.380679]  ret_from_fork+0x116/0x1d0
[   19.380837]  ret_from_fork_asm+0x1a/0x30
[   19.381026] 
[   19.381158] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.381575] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.381744] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.382012] ==================================================================