Hay
Date
July 17, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.273043] ==================================================================
[   20.273816] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   20.273816] 
[   20.273897] Invalid free of 0x0000000067369dbb (in kfence-#89):
[   20.273964]  test_double_free+0x1bc/0x238
[   20.274175]  kunit_try_run_case+0x170/0x3f0
[   20.274298]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.274506]  kthread+0x328/0x630
[   20.274569]  ret_from_fork+0x10/0x20
[   20.274654] 
[   20.274686] kfence-#89: 0x0000000067369dbb-0x00000000d947b994, size=32, cache=kmalloc-32
[   20.274686] 
[   20.274827] allocated by task 304 on cpu 0 at 20.269803s (0.005019s ago):
[   20.274913]  test_alloc+0x29c/0x628
[   20.274954]  test_double_free+0xd4/0x238
[   20.275057]  kunit_try_run_case+0x170/0x3f0
[   20.275111]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.275194]  kthread+0x328/0x630
[   20.275333]  ret_from_fork+0x10/0x20
[   20.275388] 
[   20.275411] freed by task 304 on cpu 0 at 20.269893s (0.005514s ago):
[   20.275574]  test_double_free+0x1ac/0x238
[   20.275742]  kunit_try_run_case+0x170/0x3f0
[   20.275828]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.275874]  kthread+0x328/0x630
[   20.275915]  ret_from_fork+0x10/0x20
[   20.276022] 
[   20.276069] CPU: 0 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.276205] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.276248] Hardware name: linux,dummy-virt (DT)
[   20.276869] ==================================================================
[   20.369349] ==================================================================
[   20.369439] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   20.369439] 
[   20.369498] Invalid free of 0x00000000854702bd (in kfence-#90):
[   20.369554]  test_double_free+0x100/0x238
[   20.369600]  kunit_try_run_case+0x170/0x3f0
[   20.369643]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.369689]  kthread+0x328/0x630
[   20.369727]  ret_from_fork+0x10/0x20
[   20.369768] 
[   20.369792] kfence-#90: 0x00000000854702bd-0x00000000c65e1bc7, size=32, cache=test
[   20.369792] 
[   20.369844] allocated by task 306 on cpu 0 at 20.369155s (0.000685s ago):
[   20.369905]  test_alloc+0x230/0x628
[   20.369944]  test_double_free+0xd4/0x238
[   20.370001]  kunit_try_run_case+0x170/0x3f0
[   20.370042]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.370085]  kthread+0x328/0x630
[   20.370121]  ret_from_fork+0x10/0x20
[   20.370159] 
[   20.370181] freed by task 306 on cpu 0 at 20.369214s (0.000964s ago):
[   20.370245]  test_double_free+0xf0/0x238
[   20.370284]  kunit_try_run_case+0x170/0x3f0
[   20.370324]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.370366]  kthread+0x328/0x630
[   20.370402]  ret_from_fork+0x10/0x20
[   20.370442] 
[   20.370485] CPU: 0 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.370564] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.370594] Hardware name: linux,dummy-virt (DT)
[   20.370625] ==================================================================

[   18.402829] ==================================================================
[   18.403250] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.403250] 
[   18.403640] Invalid free of 0x(____ptrval____) (in kfence-#70):
[   18.403900]  test_double_free+0x1d3/0x260
[   18.404085]  kunit_try_run_case+0x1a5/0x480
[   18.404308]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.404632]  kthread+0x337/0x6f0
[   18.404817]  ret_from_fork+0x116/0x1d0
[   18.404993]  ret_from_fork_asm+0x1a/0x30
[   18.405138] 
[   18.405231] kfence-#70: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.405231] 
[   18.405714] allocated by task 320 on cpu 1 at 18.402578s (0.003134s ago):
[   18.406053]  test_alloc+0x364/0x10f0
[   18.406235]  test_double_free+0xdb/0x260
[   18.406378]  kunit_try_run_case+0x1a5/0x480
[   18.406604]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.406811]  kthread+0x337/0x6f0
[   18.406982]  ret_from_fork+0x116/0x1d0
[   18.407171]  ret_from_fork_asm+0x1a/0x30
[   18.407348] 
[   18.407457] freed by task 320 on cpu 1 at 18.402646s (0.004808s ago):
[   18.407689]  test_double_free+0x1e0/0x260
[   18.407831]  kunit_try_run_case+0x1a5/0x480
[   18.408031]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.408286]  kthread+0x337/0x6f0
[   18.408452]  ret_from_fork+0x116/0x1d0
[   18.408686]  ret_from_fork_asm+0x1a/0x30
[   18.408827] 
[   18.408931] CPU: 1 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.409429] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.409652] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.410007] ==================================================================
[   18.506763] ==================================================================
[   18.507734] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.507734] 
[   18.508777] Invalid free of 0x(____ptrval____) (in kfence-#71):
[   18.509168]  test_double_free+0x112/0x260
[   18.509328]  kunit_try_run_case+0x1a5/0x480
[   18.509711]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.510414]  kthread+0x337/0x6f0
[   18.510694]  ret_from_fork+0x116/0x1d0
[   18.510850]  ret_from_fork_asm+0x1a/0x30
[   18.511050] 
[   18.511129] kfence-#71: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.511129] 
[   18.511521] allocated by task 322 on cpu 0 at 18.506585s (0.004934s ago):
[   18.511888]  test_alloc+0x2a6/0x10f0
[   18.512025]  test_double_free+0xdb/0x260
[   18.512216]  kunit_try_run_case+0x1a5/0x480
[   18.512444]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.512717]  kthread+0x337/0x6f0
[   18.512869]  ret_from_fork+0x116/0x1d0
[   18.513035]  ret_from_fork_asm+0x1a/0x30
[   18.513176] 
[   18.513260] freed by task 322 on cpu 0 at 18.506644s (0.006613s ago):
[   18.513583]  test_double_free+0xfa/0x260
[   18.513739]  kunit_try_run_case+0x1a5/0x480
[   18.513903]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.514163]  kthread+0x337/0x6f0
[   18.514337]  ret_from_fork+0x116/0x1d0
[   18.514576]  ret_from_fork_asm+0x1a/0x30
[   18.514744] 
[   18.514855] CPU: 0 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.515270] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.515411] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.515837] ==================================================================