Hay
Date
July 10, 2025, 9:07 a.m.

Environment
qemu-arm64
qemu-x86_64

[   34.443838] ==================================================================
[   34.443957] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   34.443957] 
[   34.444022] Invalid free of 0x000000000009e916 (in kfence-#128):
[   34.444112]  test_double_free+0x1bc/0x238
[   34.444181]  kunit_try_run_case+0x170/0x3f0
[   34.444247]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.444311]  kthread+0x328/0x630
[   34.444358]  ret_from_fork+0x10/0x20
[   34.444405] 
[   34.444451] kfence-#128: 0x000000000009e916-0x00000000b4ffe58d, size=32, cache=kmalloc-32
[   34.444451] 
[   34.444526] allocated by task 334 on cpu 0 at 34.443470s (0.001033s ago):
[   34.444594]  test_alloc+0x29c/0x628
[   34.444635]  test_double_free+0xd4/0x238
[   34.444676]  kunit_try_run_case+0x170/0x3f0
[   34.444858]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.444911]  kthread+0x328/0x630
[   34.444948]  ret_from_fork+0x10/0x20
[   34.445014] 
[   34.445064] freed by task 334 on cpu 0 at 34.443587s (0.001466s ago):
[   34.445162]  test_double_free+0x1ac/0x238
[   34.445221]  kunit_try_run_case+0x170/0x3f0
[   34.445264]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.445339]  kthread+0x328/0x630
[   34.445377]  ret_from_fork+0x10/0x20
[   34.445434] 
[   34.445508] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250710 #1 PREEMPT 
[   34.445593] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.445623] Hardware name: linux,dummy-virt (DT)
[   34.445763] ==================================================================
[   34.547327] ==================================================================
[   34.547426] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   34.547426] 
[   34.547489] Invalid free of 0x0000000067b1f047 (in kfence-#129):
[   34.547546]  test_double_free+0x100/0x238
[   34.547595]  kunit_try_run_case+0x170/0x3f0
[   34.547640]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.547686]  kthread+0x328/0x630
[   34.547724]  ret_from_fork+0x10/0x20
[   34.547764] 
[   34.547787] kfence-#129: 0x0000000067b1f047-0x00000000bc62513f, size=32, cache=test
[   34.547787] 
[   34.547841] allocated by task 336 on cpu 0 at 34.547110s (0.000727s ago):
[   34.547903]  test_alloc+0x230/0x628
[   34.547945]  test_double_free+0xd4/0x238
[   34.547985]  kunit_try_run_case+0x170/0x3f0
[   34.548026]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.548071]  kthread+0x328/0x630
[   34.548106]  ret_from_fork+0x10/0x20
[   34.548159] 
[   34.548181] freed by task 336 on cpu 0 at 34.547186s (0.000992s ago):
[   34.548245]  test_double_free+0xf0/0x238
[   34.548286]  kunit_try_run_case+0x170/0x3f0
[   34.548326]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.548371]  kthread+0x328/0x630
[   34.548405]  ret_from_fork+0x10/0x20
[   34.548444] 
[   34.548488] CPU: 0 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250710 #1 PREEMPT 
[   34.548569] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.548598] Hardware name: linux,dummy-virt (DT)
[   34.548631] ==================================================================

[   30.972359] ==================================================================
[   30.972944] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   30.972944] 
[   30.973302] Invalid free of 0x(____ptrval____) (in kfence-#102):
[   30.973646]  test_double_free+0x1d3/0x260
[   30.973829]  kunit_try_run_case+0x1a5/0x480
[   30.973977]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.974232]  kthread+0x337/0x6f0
[   30.974405]  ret_from_fork+0x116/0x1d0
[   30.974628]  ret_from_fork_asm+0x1a/0x30
[   30.974829] 
[   30.974908] kfence-#102: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   30.974908] 
[   30.975303] allocated by task 351 on cpu 1 at 30.972100s (0.003200s ago):
[   30.975555]  test_alloc+0x364/0x10f0
[   30.975769]  test_double_free+0xdb/0x260
[   30.975928]  kunit_try_run_case+0x1a5/0x480
[   30.976070]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.976485]  kthread+0x337/0x6f0
[   30.976875]  ret_from_fork+0x116/0x1d0
[   30.977051]  ret_from_fork_asm+0x1a/0x30
[   30.977234] 
[   30.977324] freed by task 351 on cpu 1 at 30.972162s (0.005159s ago):
[   30.977941]  test_double_free+0x1e0/0x260
[   30.978275]  kunit_try_run_case+0x1a5/0x480
[   30.978604]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.978954]  kthread+0x337/0x6f0
[   30.979126]  ret_from_fork+0x116/0x1d0
[   30.979315]  ret_from_fork_asm+0x1a/0x30
[   30.979468] 
[   30.979661] CPU: 1 UID: 0 PID: 351 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) 
[   30.980142] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.980307] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.980627] ==================================================================
[   31.076186] ==================================================================
[   31.076588] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   31.076588] 
[   31.076985] Invalid free of 0x(____ptrval____) (in kfence-#103):
[   31.077261]  test_double_free+0x112/0x260
[   31.077452]  kunit_try_run_case+0x1a5/0x480
[   31.077617]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.077805]  kthread+0x337/0x6f0
[   31.077995]  ret_from_fork+0x116/0x1d0
[   31.078196]  ret_from_fork_asm+0x1a/0x30
[   31.078401] 
[   31.078484] kfence-#103: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.078484] 
[   31.079296] allocated by task 353 on cpu 0 at 31.076037s (0.003255s ago):
[   31.079626]  test_alloc+0x2a6/0x10f0
[   31.079813]  test_double_free+0xdb/0x260
[   31.079997]  kunit_try_run_case+0x1a5/0x480
[   31.080185]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.080730]  kthread+0x337/0x6f0
[   31.081104]  ret_from_fork+0x116/0x1d0
[   31.081263]  ret_from_fork_asm+0x1a/0x30
[   31.081542] 
[   31.081806] freed by task 353 on cpu 0 at 31.076074s (0.005730s ago):
[   31.082143]  test_double_free+0xfa/0x260
[   31.082379]  kunit_try_run_case+0x1a5/0x480
[   31.082602]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.082847]  kthread+0x337/0x6f0
[   31.083005]  ret_from_fork+0x116/0x1d0
[   31.083179]  ret_from_fork_asm+0x1a/0x30
[   31.083357] 
[   31.083454] CPU: 0 UID: 0 PID: 353 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) 
[   31.084325] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.084622] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.085074] ==================================================================