Hay
Date
June 17, 2025, 3:39 p.m.

Environment
qemu-arm64
qemu-i386
qemu-x86_64

[   98.264452] ==================================================================
[   98.265405] BUG: KFENCE: invalid free in test_invalid_addr_free+0x14c/0x1d0
[   98.265405] 
[   98.266643] Invalid free of 0x00000000413c5f5d (in kfence-#163):
[   98.267743]  test_invalid_addr_free+0x14c/0x1d0
[   98.268679]  kunit_try_run_case+0x114/0x298
[   98.269492]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.270596]  kthread+0x18c/0x1a8
[   98.271331]  ret_from_fork+0x10/0x20
[   98.272149] 
[   98.272627] kfence-#163: 0x000000006f1908b6-0x000000008fddd211, size=32, cache=kmalloc-32
[   98.272627] 
[   98.273932] allocated by task 248 on cpu 1 at 98.263853s:
[   98.275188]  test_alloc+0x228/0x3e8
[   98.275871]  test_invalid_addr_free+0xcc/0x1d0
[   98.276809]  kunit_try_run_case+0x114/0x298
[   98.277618]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.278623]  kthread+0x18c/0x1a8
[   98.279358]  ret_from_fork+0x10/0x20
[   98.280163] 
[   98.280695] CPU: 1 PID: 248 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   98.281896] Hardware name: linux,dummy-virt (DT)
[   98.282712] ==================================================================
[   98.368502] ==================================================================
[   98.369464] BUG: KFENCE: invalid free in test_invalid_addr_free+0xe4/0x1d0
[   98.369464] 
[   98.370675] Invalid free of 0x00000000f4699d4e (in kfence-#164):
[   98.371623]  test_invalid_addr_free+0xe4/0x1d0
[   98.372617]  kunit_try_run_case+0x114/0x298
[   98.373514]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.374607]  kthread+0x18c/0x1a8
[   98.375314]  ret_from_fork+0x10/0x20
[   98.376103] 
[   98.376566] kfence-#164: 0x00000000afa8605f-0x000000001c0a0e5d, size=32, cache=test
[   98.376566] 
[   98.377787] allocated by task 250 on cpu 0 at 98.367943s:
[   98.378970]  test_alloc+0x1bc/0x3e8
[   98.379673]  test_invalid_addr_free+0xcc/0x1d0
[   98.380585]  kunit_try_run_case+0x114/0x298
[   98.381480]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.382491]  kthread+0x18c/0x1a8
[   98.383173]  ret_from_fork+0x10/0x20
[   98.383959] 
[   98.384390] CPU: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   98.385640] Hardware name: linux,dummy-virt (DT)
[   98.386408] ==================================================================


[   16.184432] ==================================================================
[   16.184720] BUG: KFENCE: invalid free in test_invalid_addr_free+0x66/0x130
[   16.184720] 
[   16.184922] Invalid free of 0x(ptrval) (in kfence-#37):
[   16.185059]  test_invalid_addr_free+0x66/0x130
[   16.185167]  kunit_try_run_case+0x8a/0x1c4
[   16.185449]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   16.185786]  kthread+0xe0/0x108
[   16.185900]  ret_from_fork+0x40/0x4c
[   16.185990]  ret_from_fork_asm+0x12/0x18
[   16.186084]  restore_all_switch_stack+0x0/0xc3
[   16.186337] 
[   16.186457] kfence-#37: 0x(ptrval)-0x(ptrval), size=32, cache=test
[   16.186457] 
[   16.186875] allocated by task 150 on cpu 1 at 16.184317s:
[   16.187036]  test_alloc+0xed/0x2d4
[   16.187140]  test_invalid_addr_free+0x50/0x130
[   16.187263]  kunit_try_run_case+0x8a/0x1c4
[   16.187442]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   16.187851]  kthread+0xe0/0x108
[   16.188088]  ret_from_fork+0x40/0x4c
[   16.188320]  ret_from_fork_asm+0x12/0x18
[   16.188570]  restore_all_switch_stack+0x0/0xc3
[   16.188892] 
[   16.188981] CPU: 1 PID: 150 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   16.189186] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.189402] ==================================================================
[   16.080435] ==================================================================
[   16.080706] BUG: KFENCE: invalid free in test_invalid_addr_free+0xa7/0x130
[   16.080706] 
[   16.081008] Invalid free of 0x(ptrval) (in kfence-#36):
[   16.081141]  test_invalid_addr_free+0xa7/0x130
[   16.081253]  kunit_try_run_case+0x8a/0x1c4
[   16.081439]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   16.081750]  kthread+0xe0/0x108
[   16.081853]  ret_from_fork+0x40/0x4c
[   16.081945]  ret_from_fork_asm+0x12/0x18
[   16.082181]  restore_all_switch_stack+0x0/0xc3
[   16.082465] 
[   16.082581] kfence-#36: 0x(ptrval)-0x(ptrval), size=32, cache=kmalloc-32
[   16.082581] 
[   16.082907] allocated by task 148 on cpu 0 at 16.080301s:
[   16.083248]  test_alloc+0x153/0x2d4
[   16.083393]  test_invalid_addr_free+0x50/0x130
[   16.083650]  kunit_try_run_case+0x8a/0x1c4
[   16.083857]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   16.084076]  kthread+0xe0/0x108
[   16.084186]  ret_from_fork+0x40/0x4c
[   16.084364]  ret_from_fork_asm+0x12/0x18
[   16.084586]  restore_all_switch_stack+0x0/0xc3
[   16.084830] 
[   16.084893] CPU: 0 PID: 148 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   16.085304] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.085685] ==================================================================


[   38.233080] ==================================================================
[   38.233645] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x1d0
[   38.233645] 
[   38.234502] Invalid free of 0x(____ptrval____) (in kfence-#98):
[   38.234899]  test_invalid_addr_free+0xec/0x1d0
[   38.235212]  kunit_try_run_case+0x120/0x290
[   38.235474]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   38.235772]  kthread+0x19e/0x1e0
[   38.235978]  ret_from_fork+0x41/0x70
[   38.236201]  ret_from_fork_asm+0x1b/0x30
[   38.236513] 
[   38.236748] kfence-#98: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   38.236748] 
[   38.237410] allocated by task 265 on cpu 1 at 38.232885s:
[   38.238245]  test_alloc+0x1f9/0x8e0
[   38.238521]  test_invalid_addr_free+0xd0/0x1d0
[   38.239070]  kunit_try_run_case+0x120/0x290
[   38.239464]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   38.239936]  kthread+0x19e/0x1e0
[   38.240182]  ret_from_fork+0x41/0x70
[   38.240562]  ret_from_fork_asm+0x1b/0x30
[   38.240971] 
[   38.241145] CPU: 1 PID: 265 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   38.241806] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.242411] ==================================================================
[   38.129133] ==================================================================
[   38.129689] BUG: KFENCE: invalid free in test_invalid_addr_free+0x157/0x1d0
[   38.129689] 
[   38.130231] Invalid free of 0x(____ptrval____) (in kfence-#97):
[   38.130551]  test_invalid_addr_free+0x157/0x1d0
[   38.130898]  kunit_try_run_case+0x120/0x290
[   38.131212]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   38.131492]  kthread+0x19e/0x1e0
[   38.131757]  ret_from_fork+0x41/0x70
[   38.132026]  ret_from_fork_asm+0x1b/0x30
[   38.132273] 
[   38.132380] kfence-#97: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   38.132380] 
[   38.132971] allocated by task 263 on cpu 0 at 38.128907s:
[   38.133311]  test_alloc+0x2ad/0x8e0
[   38.133571]  test_invalid_addr_free+0xd0/0x1d0
[   38.133924]  kunit_try_run_case+0x120/0x290
[   38.134167]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   38.134522]  kthread+0x19e/0x1e0
[   38.134770]  ret_from_fork+0x41/0x70
[   38.135006]  ret_from_fork_asm+0x1b/0x30
[   38.135264] 
[   38.135410] CPU: 0 PID: 263 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   38.135902] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.136380] ==================================================================