Hay
Date
July 16, 2025, 3:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.647827] ==================================================================
[   22.647921] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   22.647921] 
[   22.647991] Invalid free of 0x000000008e35fa1c (in kfence-#104):
[   22.648049]  test_double_free+0x100/0x238
[   22.648094]  kunit_try_run_case+0x170/0x3f0
[   22.648139]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.648186]  kthread+0x328/0x630
[   22.648224]  ret_from_fork+0x10/0x20
[   22.648263] 
[   22.648286] kfence-#104: 0x000000008e35fa1c-0x000000008284c055, size=32, cache=test
[   22.648286] 
[   22.648341] allocated by task 305 on cpu 0 at 22.647598s (0.000739s ago):
[   22.648401]  test_alloc+0x230/0x628
[   22.648443]  test_double_free+0xd4/0x238
[   22.648482]  kunit_try_run_case+0x170/0x3f0
[   22.648523]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.648567]  kthread+0x328/0x630
[   22.648602]  ret_from_fork+0x10/0x20
[   22.648641] 
[   22.648664] freed by task 305 on cpu 0 at 22.647665s (0.000995s ago):
[   22.648738]  test_double_free+0xf0/0x238
[   22.648779]  kunit_try_run_case+0x170/0x3f0
[   22.648817]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.648861]  kthread+0x328/0x630
[   22.648898]  ret_from_fork+0x10/0x20
[   22.648941] 
[   22.648984] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   22.649065] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.649092] Hardware name: linux,dummy-virt (DT)
[   22.649127] ==================================================================
[   22.544192] ==================================================================
[   22.544312] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   22.544312] 
[   22.544385] Invalid free of 0x00000000de556656 (in kfence-#103):
[   22.544455]  test_double_free+0x1bc/0x238
[   22.544502]  kunit_try_run_case+0x170/0x3f0
[   22.544547]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.544593]  kthread+0x328/0x630
[   22.544632]  ret_from_fork+0x10/0x20
[   22.544674] 
[   22.544697] kfence-#103: 0x00000000de556656-0x00000000c08627fe, size=32, cache=kmalloc-32
[   22.544697] 
[   22.544770] allocated by task 303 on cpu 0 at 22.543631s (0.001135s ago):
[   22.544833]  test_alloc+0x29c/0x628
[   22.544875]  test_double_free+0xd4/0x238
[   22.544915]  kunit_try_run_case+0x170/0x3f0
[   22.544959]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.545002]  kthread+0x328/0x630
[   22.545040]  ret_from_fork+0x10/0x20
[   22.545078] 
[   22.545101] freed by task 303 on cpu 0 at 22.543707s (0.001391s ago):
[   22.545164]  test_double_free+0x1ac/0x238
[   22.545204]  kunit_try_run_case+0x170/0x3f0
[   22.545245]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.545289]  kthread+0x328/0x630
[   22.545324]  ret_from_fork+0x10/0x20
[   22.545364] 
[   22.545413] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   22.545496] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.545526] Hardware name: linux,dummy-virt (DT)
[   22.545561] ==================================================================

[   19.356573] ==================================================================
[   19.357018] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   19.357018] 
[   19.357360] Invalid free of 0x(____ptrval____) (in kfence-#85):
[   19.357716]  test_double_free+0x1d3/0x260
[   19.357971]  kunit_try_run_case+0x1a5/0x480
[   19.358185]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.358403]  kthread+0x337/0x6f0
[   19.358532]  ret_from_fork+0x116/0x1d0
[   19.358683]  ret_from_fork_asm+0x1a/0x30
[   19.358899] 
[   19.359003] kfence-#85: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   19.359003] 
[   19.359389] allocated by task 320 on cpu 0 at 19.356316s (0.003071s ago):
[   19.359791]  test_alloc+0x364/0x10f0
[   19.359924]  test_double_free+0xdb/0x260
[   19.360065]  kunit_try_run_case+0x1a5/0x480
[   19.360294]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.360564]  kthread+0x337/0x6f0
[   19.360738]  ret_from_fork+0x116/0x1d0
[   19.361080]  ret_from_fork_asm+0x1a/0x30
[   19.361263] 
[   19.361364] freed by task 320 on cpu 0 at 19.356388s (0.004974s ago):
[   19.361664]  test_double_free+0x1e0/0x260
[   19.361867]  kunit_try_run_case+0x1a5/0x480
[   19.362034]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.362213]  kthread+0x337/0x6f0
[   19.362387]  ret_from_fork+0x116/0x1d0
[   19.362616]  ret_from_fork_asm+0x1a/0x30
[   19.362828] 
[   19.362951] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   19.363315] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.363457] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.363882] ==================================================================
[   19.460506] ==================================================================
[   19.460916] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   19.460916] 
[   19.461322] Invalid free of 0x(____ptrval____) (in kfence-#86):
[   19.461666]  test_double_free+0x112/0x260
[   19.461941]  kunit_try_run_case+0x1a5/0x480
[   19.462164]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.462342]  kthread+0x337/0x6f0
[   19.462465]  ret_from_fork+0x116/0x1d0
[   19.462599]  ret_from_fork_asm+0x1a/0x30
[   19.462907] 
[   19.463103] kfence-#86: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.463103] 
[   19.463549] allocated by task 322 on cpu 1 at 19.460330s (0.003217s ago):
[   19.463899]  test_alloc+0x2a6/0x10f0
[   19.464124]  test_double_free+0xdb/0x260
[   19.464338]  kunit_try_run_case+0x1a5/0x480
[   19.464659]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.464848]  kthread+0x337/0x6f0
[   19.464967]  ret_from_fork+0x116/0x1d0
[   19.465099]  ret_from_fork_asm+0x1a/0x30
[   19.465325] 
[   19.465424] freed by task 322 on cpu 1 at 19.460385s (0.005037s ago):
[   19.465757]  test_double_free+0xfa/0x260
[   19.465970]  kunit_try_run_case+0x1a5/0x480
[   19.466183]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.466419]  kthread+0x337/0x6f0
[   19.466613]  ret_from_fork+0x116/0x1d0
[   19.466793]  ret_from_fork_asm+0x1a/0x30
[   19.466994] 
[   19.467109] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   19.467614] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.467805] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.468182] ==================================================================