Hay
Date
July 19, 2025, 11:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.968817] ==================================================================
[   19.968930] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   19.968930] 
[   19.969126] Invalid free of 0x00000000da986a7c (in kfence-#88):
[   19.969191]  test_double_free+0x1bc/0x238
[   19.969263]  kunit_try_run_case+0x170/0x3f0
[   19.969307]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.969351]  kthread+0x328/0x630
[   19.969390]  ret_from_fork+0x10/0x20
[   19.969429] 
[   19.969480] kfence-#88: 0x00000000da986a7c-0x000000005e953823, size=32, cache=kmalloc-32
[   19.969480] 
[   19.969538] allocated by task 303 on cpu 0 at 19.968517s (0.001017s ago):
[   19.969600]  test_alloc+0x29c/0x628
[   19.969704]  test_double_free+0xd4/0x238
[   19.969746]  kunit_try_run_case+0x170/0x3f0
[   19.969784]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.969826]  kthread+0x328/0x630
[   19.969861]  ret_from_fork+0x10/0x20
[   19.969902] 
[   19.969925] freed by task 303 on cpu 0 at 19.968584s (0.001338s ago):
[   19.969985]  test_double_free+0x1ac/0x238
[   19.970025]  kunit_try_run_case+0x170/0x3f0
[   19.970064]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.970118]  kthread+0x328/0x630
[   19.970153]  ret_from_fork+0x10/0x20
[   19.970191] 
[   19.970258] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   19.970354] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.970383] Hardware name: linux,dummy-virt (DT)
[   19.970419] ==================================================================
[   20.072650] ==================================================================
[   20.072737] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   20.072737] 
[   20.072793] Invalid free of 0x000000003836064d (in kfence-#89):
[   20.072844]  test_double_free+0x100/0x238
[   20.072890]  kunit_try_run_case+0x170/0x3f0
[   20.072932]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.072978]  kthread+0x328/0x630
[   20.073021]  ret_from_fork+0x10/0x20
[   20.073061] 
[   20.073087] kfence-#89: 0x000000003836064d-0x00000000a41ccfab, size=32, cache=test
[   20.073087] 
[   20.073176] allocated by task 305 on cpu 0 at 20.072392s (0.000745s ago):
[   20.073264]  test_alloc+0x230/0x628
[   20.073352]  test_double_free+0xd4/0x238
[   20.073410]  kunit_try_run_case+0x170/0x3f0
[   20.073468]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.073510]  kthread+0x328/0x630
[   20.073546]  ret_from_fork+0x10/0x20
[   20.073583] 
[   20.073657] freed by task 305 on cpu 0 at 20.072451s (0.001185s ago):
[   20.073737]  test_double_free+0xf0/0x238
[   20.073777]  kunit_try_run_case+0x170/0x3f0
[   20.073843]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.073886]  kthread+0x328/0x630
[   20.073929]  ret_from_fork+0x10/0x20
[   20.073974] 
[   20.074046] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.074143] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.074194] Hardware name: linux,dummy-virt (DT)
[   20.074244] ==================================================================

[   18.316834] ==================================================================
[   18.317243] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.317243] 
[   18.317571] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   18.317850]  test_double_free+0x112/0x260
[   18.318070]  kunit_try_run_case+0x1a5/0x480
[   18.318264]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.318989]  kthread+0x337/0x6f0
[   18.319138]  ret_from_fork+0x116/0x1d0
[   18.319678]  ret_from_fork_asm+0x1a/0x30
[   18.319940] 
[   18.320045] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.320045] 
[   18.320556] allocated by task 323 on cpu 0 at 18.316678s (0.003876s ago):
[   18.320838]  test_alloc+0x2a6/0x10f0
[   18.321043]  test_double_free+0xdb/0x260
[   18.321216]  kunit_try_run_case+0x1a5/0x480
[   18.321410]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.322020]  kthread+0x337/0x6f0
[   18.322194]  ret_from_fork+0x116/0x1d0
[   18.322572]  ret_from_fork_asm+0x1a/0x30
[   18.322781] 
[   18.322875] freed by task 323 on cpu 0 at 18.316723s (0.006150s ago):
[   18.323167]  test_double_free+0xfa/0x260
[   18.323350]  kunit_try_run_case+0x1a5/0x480
[   18.323960]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.324291]  kthread+0x337/0x6f0
[   18.324422]  ret_from_fork+0x116/0x1d0
[   18.324661]  ret_from_fork_asm+0x1a/0x30
[   18.324828] 
[   18.324959] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.325388] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.325582] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.326078] ==================================================================
[   18.212870] ==================================================================
[   18.213321] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.213321] 
[   18.213749] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   18.214082]  test_double_free+0x1d3/0x260
[   18.214271]  kunit_try_run_case+0x1a5/0x480
[   18.214435]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.214835]  kthread+0x337/0x6f0
[   18.215039]  ret_from_fork+0x116/0x1d0
[   18.215210]  ret_from_fork_asm+0x1a/0x30
[   18.215420] 
[   18.215517] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.215517] 
[   18.215879] allocated by task 321 on cpu 1 at 18.212620s (0.003256s ago):
[   18.216232]  test_alloc+0x364/0x10f0
[   18.216399]  test_double_free+0xdb/0x260
[   18.216608]  kunit_try_run_case+0x1a5/0x480
[   18.216822]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.217109]  kthread+0x337/0x6f0
[   18.217276]  ret_from_fork+0x116/0x1d0
[   18.217469]  ret_from_fork_asm+0x1a/0x30
[   18.217612] 
[   18.217712] freed by task 321 on cpu 1 at 18.212679s (0.005030s ago):
[   18.218039]  test_double_free+0x1e0/0x260
[   18.218217]  kunit_try_run_case+0x1a5/0x480
[   18.218412]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.218655]  kthread+0x337/0x6f0
[   18.218802]  ret_from_fork+0x116/0x1d0
[   18.218999]  ret_from_fork_asm+0x1a/0x30
[   18.219175] 
[   18.219315] CPU: 1 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.219771] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.219981] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.220344] ==================================================================