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

Environment
qemu-arm64
qemu-x86_64

[   25.512116] ==================================================================
[   25.512349] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   25.512349] 
[   25.512468] Invalid free of 0x000000000a6f87b6 (in kfence-#111):
[   25.512829]  test_double_free+0x100/0x238
[   25.512932]  kunit_try_run_case+0x170/0x3f0
[   25.513036]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.513138]  kthread+0x328/0x630
[   25.513743]  ret_from_fork+0x10/0x20
[   25.513974] 
[   25.514115] kfence-#111: 0x000000000a6f87b6-0x00000000a69fa236, size=32, cache=test
[   25.514115] 
[   25.514275] allocated by task 305 on cpu 1 at 25.511716s (0.002550s ago):
[   25.514431]  test_alloc+0x230/0x628
[   25.514509]  test_double_free+0xd4/0x238
[   25.514579]  kunit_try_run_case+0x170/0x3f0
[   25.515143]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.515299]  kthread+0x328/0x630
[   25.515397]  ret_from_fork+0x10/0x20
[   25.515579] 
[   25.515662] freed by task 305 on cpu 1 at 25.511816s (0.003837s ago):
[   25.515890]  test_double_free+0xf0/0x238
[   25.515988]  kunit_try_run_case+0x170/0x3f0
[   25.516355]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.517080]  kthread+0x328/0x630
[   25.517210]  ret_from_fork+0x10/0x20
[   25.517768] 
[   25.517877] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   25.518195] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.518364] Hardware name: linux,dummy-virt (DT)
[   25.518681] ==================================================================
[   25.410521] ==================================================================
[   25.410725] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   25.410725] 
[   25.410859] Invalid free of 0x00000000552ae42d (in kfence-#110):
[   25.410981]  test_double_free+0x1bc/0x238
[   25.411104]  kunit_try_run_case+0x170/0x3f0
[   25.411195]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.411285]  kthread+0x328/0x630
[   25.411367]  ret_from_fork+0x10/0x20
[   25.411451] 
[   25.413803] kfence-#110: 0x00000000552ae42d-0x000000004a358cef, size=32, cache=kmalloc-32
[   25.413803] 
[   25.414131] allocated by task 303 on cpu 1 at 25.408197s (0.005915s ago):
[   25.414328]  test_alloc+0x29c/0x628
[   25.414458]  test_double_free+0xd4/0x238
[   25.414550]  kunit_try_run_case+0x170/0x3f0
[   25.414628]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.414951]  kthread+0x328/0x630
[   25.415081]  ret_from_fork+0x10/0x20
[   25.415176] 
[   25.415239] freed by task 303 on cpu 1 at 25.409415s (0.005816s ago):
[   25.415441]  test_double_free+0x1ac/0x238
[   25.415568]  kunit_try_run_case+0x170/0x3f0
[   25.415657]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.415753]  kthread+0x328/0x630
[   25.415834]  ret_from_fork+0x10/0x20
[   25.415930] 
[   25.416329] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   25.416584] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.416652] Hardware name: linux,dummy-virt (DT)
[   25.417102] ==================================================================

[   17.273842] ==================================================================
[   17.274281] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.274281] 
[   17.274706] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   17.274968]  test_double_free+0x1d3/0x260
[   17.275199]  kunit_try_run_case+0x1a5/0x480
[   17.275390]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.275605]  kthread+0x337/0x6f0
[   17.275778]  ret_from_fork+0x116/0x1d0
[   17.275969]  ret_from_fork_asm+0x1a/0x30
[   17.276178] 
[   17.276268] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.276268] 
[   17.276587] allocated by task 321 on cpu 1 at 17.273594s (0.002991s ago):
[   17.276902]  test_alloc+0x364/0x10f0
[   17.277089]  test_double_free+0xdb/0x260
[   17.277257]  kunit_try_run_case+0x1a5/0x480
[   17.277571]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.277966]  kthread+0x337/0x6f0
[   17.278137]  ret_from_fork+0x116/0x1d0
[   17.278275]  ret_from_fork_asm+0x1a/0x30
[   17.278474] 
[   17.279093] freed by task 321 on cpu 1 at 17.273652s (0.005439s ago):
[   17.279536]  test_double_free+0x1e0/0x260
[   17.279927]  kunit_try_run_case+0x1a5/0x480
[   17.280154]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.280538]  kthread+0x337/0x6f0
[   17.280713]  ret_from_fork+0x116/0x1d0
[   17.281006]  ret_from_fork_asm+0x1a/0x30
[   17.281215] 
[   17.281323] CPU: 1 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.281793] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.281980] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.282628] ==================================================================
[   17.377852] ==================================================================
[   17.378278] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.378278] 
[   17.378681] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   17.378954]  test_double_free+0x112/0x260
[   17.379139]  kunit_try_run_case+0x1a5/0x480
[   17.379473]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.379656]  kthread+0x337/0x6f0
[   17.379856]  ret_from_fork+0x116/0x1d0
[   17.380048]  ret_from_fork_asm+0x1a/0x30
[   17.380315] 
[   17.380405] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.380405] 
[   17.380784] allocated by task 323 on cpu 0 at 17.377698s (0.003085s ago):
[   17.381116]  test_alloc+0x2a6/0x10f0
[   17.381309]  test_double_free+0xdb/0x260
[   17.381496]  kunit_try_run_case+0x1a5/0x480
[   17.381709]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.381978]  kthread+0x337/0x6f0
[   17.382162]  ret_from_fork+0x116/0x1d0
[   17.382369]  ret_from_fork_asm+0x1a/0x30
[   17.382569] 
[   17.382653] freed by task 323 on cpu 0 at 17.377748s (0.004902s ago):
[   17.382899]  test_double_free+0xfa/0x260
[   17.383135]  kunit_try_run_case+0x1a5/0x480
[   17.383336]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.383593]  kthread+0x337/0x6f0
[   17.383762]  ret_from_fork+0x116/0x1d0
[   17.383943]  ret_from_fork_asm+0x1a/0x30
[   17.384195] 
[   17.384300] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.384682] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.384830] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.385402] ==================================================================