Hay
Date
July 20, 2025, 8:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.521481] ==================================================================
[   20.521571] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   20.521571] 
[   20.521634] Invalid free of 0x00000000918cf1ce (in kfence-#95):
[   20.521688]  test_double_free+0x100/0x238
[   20.521735]  kunit_try_run_case+0x170/0x3f0
[   20.521780]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.521824]  kthread+0x328/0x630
[   20.521866]  ret_from_fork+0x10/0x20
[   20.521906] 
[   20.521931] kfence-#95: 0x00000000918cf1ce-0x000000009920fb8a, size=32, cache=test
[   20.521931] 
[   20.521983] allocated by task 306 on cpu 0 at 20.521268s (0.000712s ago):
[   20.522045]  test_alloc+0x230/0x628
[   20.522086]  test_double_free+0xd4/0x238
[   20.522127]  kunit_try_run_case+0x170/0x3f0
[   20.522168]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.522224]  kthread+0x328/0x630
[   20.522261]  ret_from_fork+0x10/0x20
[   20.522300] 
[   20.522325] freed by task 306 on cpu 0 at 20.521324s (0.000997s ago):
[   20.522387]  test_double_free+0xf0/0x238
[   20.522426]  kunit_try_run_case+0x170/0x3f0
[   20.522466]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.522510]  kthread+0x328/0x630
[   20.522545]  ret_from_fork+0x10/0x20
[   20.522585] 
[   20.522626] CPU: 0 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.522703] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.522733] Hardware name: linux,dummy-virt (DT)
[   20.522768] ==================================================================
[   20.417609] ==================================================================
[   20.417725] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   20.417725] 
[   20.417793] Invalid free of 0x000000007cdbd928 (in kfence-#94):
[   20.417860]  test_double_free+0x1bc/0x238
[   20.417906]  kunit_try_run_case+0x170/0x3f0
[   20.417951]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.417995]  kthread+0x328/0x630
[   20.418034]  ret_from_fork+0x10/0x20
[   20.418075] 
[   20.418101] kfence-#94: 0x000000007cdbd928-0x000000007afc5feb, size=32, cache=kmalloc-32
[   20.418101] 
[   20.418156] allocated by task 304 on cpu 0 at 20.417315s (0.000837s ago):
[   20.418237]  test_alloc+0x29c/0x628
[   20.418277]  test_double_free+0xd4/0x238
[   20.418318]  kunit_try_run_case+0x170/0x3f0
[   20.418357]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.418401]  kthread+0x328/0x630
[   20.418436]  ret_from_fork+0x10/0x20
[   20.418478] 
[   20.418501] freed by task 304 on cpu 0 at 20.417385s (0.001112s ago):
[   20.418561]  test_double_free+0x1ac/0x238
[   20.418602]  kunit_try_run_case+0x170/0x3f0
[   20.418642]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.418687]  kthread+0x328/0x630
[   20.418724]  ret_from_fork+0x10/0x20
[   20.418763] 
[   20.418808] CPU: 0 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.418887] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.418917] Hardware name: linux,dummy-virt (DT)
[   20.418951] ==================================================================

[   18.779700] ==================================================================
[   18.780270] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.780270] 
[   18.780645] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   18.780972]  test_double_free+0x1d3/0x260
[   18.781638]  kunit_try_run_case+0x1a5/0x480
[   18.781952]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.782223]  kthread+0x337/0x6f0
[   18.782396]  ret_from_fork+0x116/0x1d0
[   18.782591]  ret_from_fork_asm+0x1a/0x30
[   18.782782] 
[   18.782879] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.782879] 
[   18.783287] allocated by task 321 on cpu 1 at 18.779423s (0.003862s ago):
[   18.784306]  test_alloc+0x364/0x10f0
[   18.784612]  test_double_free+0xdb/0x260
[   18.784777]  kunit_try_run_case+0x1a5/0x480
[   18.785156]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.785512]  kthread+0x337/0x6f0
[   18.785666]  ret_from_fork+0x116/0x1d0
[   18.785898]  ret_from_fork_asm+0x1a/0x30
[   18.786294] 
[   18.786388] freed by task 321 on cpu 1 at 18.779495s (0.006889s ago):
[   18.786901]  test_double_free+0x1e0/0x260
[   18.787182]  kunit_try_run_case+0x1a5/0x480
[   18.787415]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.787672]  kthread+0x337/0x6f0
[   18.788015]  ret_from_fork+0x116/0x1d0
[   18.788271]  ret_from_fork_asm+0x1a/0x30
[   18.788550] 
[   18.788757] CPU: 1 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.789315] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.789627] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.790132] ==================================================================
[   18.883604] ==================================================================
[   18.884127] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.884127] 
[   18.884762] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   18.885081]  test_double_free+0x112/0x260
[   18.885245]  kunit_try_run_case+0x1a5/0x480
[   18.885635]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.886034]  kthread+0x337/0x6f0
[   18.886201]  ret_from_fork+0x116/0x1d0
[   18.886342]  ret_from_fork_asm+0x1a/0x30
[   18.886502] 
[   18.886581] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.886581] 
[   18.886886] allocated by task 323 on cpu 0 at 18.883425s (0.003459s ago):
[   18.887462]  test_alloc+0x2a6/0x10f0
[   18.887807]  test_double_free+0xdb/0x260
[   18.888155]  kunit_try_run_case+0x1a5/0x480
[   18.888589]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.889116]  kthread+0x337/0x6f0
[   18.889484]  ret_from_fork+0x116/0x1d0
[   18.889821]  ret_from_fork_asm+0x1a/0x30
[   18.890067] 
[   18.890146] freed by task 323 on cpu 0 at 18.883465s (0.006678s ago):
[   18.890402]  test_double_free+0xfa/0x260
[   18.890557]  kunit_try_run_case+0x1a5/0x480
[   18.890708]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.890936]  kthread+0x337/0x6f0
[   18.891063]  ret_from_fork+0x116/0x1d0
[   18.891201]  ret_from_fork_asm+0x1a/0x30
[   18.891348] 
[   18.891453] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.891825] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.891999] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.892304] ==================================================================