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

Environment
qemu-arm64
qemu-x86_64

[   23.363275] ==================================================================
[   23.363364] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.363364] 
[   23.363429] Invalid free of 0x0000000045ba59e7 (in kfence-#98):
[   23.363482]  test_invalid_addr_free+0xec/0x238
[   23.363527]  kunit_try_run_case+0x170/0x3f0
[   23.363569]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.363614]  kthread+0x328/0x630
[   23.363651]  ret_from_fork+0x10/0x20
[   23.363691] 
[   23.363716] kfence-#98: 0x00000000331b1fe3-0x000000007724903e, size=32, cache=test
[   23.363716] 
[   23.363767] allocated by task 309 on cpu 0 at 23.363156s (0.000608s ago):
[   23.363830]  test_alloc+0x230/0x628
[   23.363883]  test_invalid_addr_free+0xd4/0x238
[   23.363926]  kunit_try_run_case+0x170/0x3f0
[   23.363964]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.364007]  kthread+0x328/0x630
[   23.364042]  ret_from_fork+0x10/0x20
[   23.364083] 
[   23.364123] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.364200] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.364227] Hardware name: linux,dummy-virt (DT)
[   23.364261] ==================================================================
[   23.259329] ==================================================================
[   23.259410] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.259410] 
[   23.259475] Invalid free of 0x00000000fa30401e (in kfence-#97):
[   23.259524]  test_invalid_addr_free+0x1ac/0x238
[   23.259573]  kunit_try_run_case+0x170/0x3f0
[   23.259616]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.259661]  kthread+0x328/0x630
[   23.259699]  ret_from_fork+0x10/0x20
[   23.259739] 
[   23.259764] kfence-#97: 0x00000000d21bbeee-0x000000007a7c686c, size=32, cache=kmalloc-32
[   23.259764] 
[   23.259817] allocated by task 307 on cpu 0 at 23.259190s (0.000624s ago):
[   23.259894]  test_alloc+0x29c/0x628
[   23.259934]  test_invalid_addr_free+0xd4/0x238
[   23.259976]  kunit_try_run_case+0x170/0x3f0
[   23.260016]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.260060]  kthread+0x328/0x630
[   23.260095]  ret_from_fork+0x10/0x20
[   23.260135] 
[   23.260177] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.260256] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.260284] Hardware name: linux,dummy-virt (DT)
[   23.260319] ==================================================================

[   17.866643] ==================================================================
[   17.867073] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.867073] 
[   17.867482] Invalid free of 0x(____ptrval____) (in kfence-#80):
[   17.868126]  test_invalid_addr_free+0x1e1/0x260
[   17.868304]  kunit_try_run_case+0x1a5/0x480
[   17.868544]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.869141]  kthread+0x337/0x6f0
[   17.869312]  ret_from_fork+0x116/0x1d0
[   17.869504]  ret_from_fork_asm+0x1a/0x30
[   17.869858] 
[   17.869962] kfence-#80: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.869962] 
[   17.870412] allocated by task 326 on cpu 0 at 17.866537s (0.003872s ago):
[   17.870896]  test_alloc+0x364/0x10f0
[   17.871078]  test_invalid_addr_free+0xdb/0x260
[   17.871297]  kunit_try_run_case+0x1a5/0x480
[   17.871476]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.871724]  kthread+0x337/0x6f0
[   17.872100]  ret_from_fork+0x116/0x1d0
[   17.872357]  ret_from_fork_asm+0x1a/0x30
[   17.872530] 
[   17.872769] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.873313] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.873608] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.874023] ==================================================================
[   17.971101] ==================================================================
[   17.971471] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.971471] 
[   17.971747] Invalid free of 0x(____ptrval____) (in kfence-#81):
[   17.971948]  test_invalid_addr_free+0xfb/0x260
[   17.972111]  kunit_try_run_case+0x1a5/0x480
[   17.972265]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.972660]  kthread+0x337/0x6f0
[   17.972963]  ret_from_fork+0x116/0x1d0
[   17.973318]  ret_from_fork_asm+0x1a/0x30
[   17.974076] 
[   17.974253] kfence-#81: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.974253] 
[   17.975070] allocated by task 328 on cpu 1 at 17.970997s (0.004071s ago):
[   17.975754]  test_alloc+0x2a6/0x10f0
[   17.975974]  test_invalid_addr_free+0xdb/0x260
[   17.976128]  kunit_try_run_case+0x1a5/0x480
[   17.976277]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.976464]  kthread+0x337/0x6f0
[   17.976587]  ret_from_fork+0x116/0x1d0
[   17.976744]  ret_from_fork_asm+0x1a/0x30
[   17.976887] 
[   17.976985] CPU: 1 UID: 0 PID: 328 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.977326] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.977722] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.978487] ==================================================================