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

Environment
qemu-arm64
qemu-x86_64

[   23.342106] ==================================================================
[   23.342215] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.342215] 
[   23.342278] Invalid free of 0x00000000b136f8d1 (in kfence-#97):
[   23.342333]  test_invalid_addr_free+0x1ac/0x238
[   23.342382]  kunit_try_run_case+0x170/0x3f0
[   23.342430]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.342474]  kthread+0x328/0x630
[   23.342514]  ret_from_fork+0x10/0x20
[   23.342555] 
[   23.342581] kfence-#97: 0x00000000203f9164-0x0000000053a51a38, size=32, cache=kmalloc-32
[   23.342581] 
[   23.342636] allocated by task 307 on cpu 0 at 23.341950s (0.000683s ago):
[   23.342699]  test_alloc+0x29c/0x628
[   23.342739]  test_invalid_addr_free+0xd4/0x238
[   23.342781]  kunit_try_run_case+0x170/0x3f0
[   23.342821]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.342866]  kthread+0x328/0x630
[   23.342901]  ret_from_fork+0x10/0x20
[   23.342941] 
[   23.342987] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.343065] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.343094] Hardware name: linux,dummy-virt (DT)
[   23.343130] ==================================================================
[   23.445998] ==================================================================
[   23.446092] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.446092] 
[   23.446149] Invalid free of 0x0000000019856fb6 (in kfence-#98):
[   23.446217]  test_invalid_addr_free+0xec/0x238
[   23.446263]  kunit_try_run_case+0x170/0x3f0
[   23.446308]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.446352]  kthread+0x328/0x630
[   23.446391]  ret_from_fork+0x10/0x20
[   23.446436] 
[   23.446462] kfence-#98: 0x000000003147afd0-0x000000001feea3e1, size=32, cache=test
[   23.446462] 
[   23.446514] allocated by task 309 on cpu 0 at 23.445881s (0.000630s ago):
[   23.446577]  test_alloc+0x230/0x628
[   23.446617]  test_invalid_addr_free+0xd4/0x238
[   23.446659]  kunit_try_run_case+0x170/0x3f0
[   23.446698]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.446741]  kthread+0x328/0x630
[   23.446779]  ret_from_fork+0x10/0x20
[   23.446817] 
[   23.446860] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.446936] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.446965] Hardware name: linux,dummy-virt (DT)
[   23.446998] ==================================================================

[   17.760896] ==================================================================
[   17.761414] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.761414] 
[   17.761850] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   17.762099]  test_invalid_addr_free+0xfb/0x260
[   17.762330]  kunit_try_run_case+0x1a5/0x480
[   17.762483]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.762727]  kthread+0x337/0x6f0
[   17.762908]  ret_from_fork+0x116/0x1d0
[   17.763109]  ret_from_fork_asm+0x1a/0x30
[   17.763322] 
[   17.763415] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.763415] 
[   17.763730] allocated by task 326 on cpu 1 at 17.760786s (0.002941s ago):
[   17.764067]  test_alloc+0x2a6/0x10f0
[   17.764259]  test_invalid_addr_free+0xdb/0x260
[   17.764412]  kunit_try_run_case+0x1a5/0x480
[   17.764564]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.764824]  kthread+0x337/0x6f0
[   17.765011]  ret_from_fork+0x116/0x1d0
[   17.765254]  ret_from_fork_asm+0x1a/0x30
[   17.765452] 
[   17.765570] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.765994] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.766191] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.766504] ==================================================================
[   17.656857] ==================================================================
[   17.657319] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.657319] 
[   17.657836] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   17.658634]  test_invalid_addr_free+0x1e1/0x260
[   17.658887]  kunit_try_run_case+0x1a5/0x480
[   17.659333]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.659600]  kthread+0x337/0x6f0
[   17.659968]  ret_from_fork+0x116/0x1d0
[   17.660294]  ret_from_fork_asm+0x1a/0x30
[   17.660508] 
[   17.660605] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.660605] 
[   17.661005] allocated by task 324 on cpu 0 at 17.656745s (0.004258s ago):
[   17.661605]  test_alloc+0x364/0x10f0
[   17.661879]  test_invalid_addr_free+0xdb/0x260
[   17.662234]  kunit_try_run_case+0x1a5/0x480
[   17.662534]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.662864]  kthread+0x337/0x6f0
[   17.663066]  ret_from_fork+0x116/0x1d0
[   17.663402]  ret_from_fork_asm+0x1a/0x30
[   17.663700] 
[   17.663909] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.664477] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.664771] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.665280] ==================================================================