Hay
Date
July 17, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.564453] ==================================================================
[   21.564551] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   21.564551] 
[   21.564613] Invalid free of 0x000000003dc44b86 (in kfence-#97):
[   21.564667]  test_double_free+0x100/0x238
[   21.564714]  kunit_try_run_case+0x170/0x3f0
[   21.564758]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.564803]  kthread+0x328/0x630
[   21.564842]  ret_from_fork+0x10/0x20
[   21.564896] 
[   21.564921] kfence-#97: 0x000000003dc44b86-0x00000000561cfacc, size=32, cache=test
[   21.564921] 
[   21.564973] allocated by task 305 on cpu 1 at 21.564215s (0.000754s ago):
[   21.565035]  test_alloc+0x230/0x628
[   21.565077]  test_double_free+0xd4/0x238
[   21.565116]  kunit_try_run_case+0x170/0x3f0
[   21.565158]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.565200]  kthread+0x328/0x630
[   21.565238]  ret_from_fork+0x10/0x20
[   21.565275] 
[   21.565300] freed by task 305 on cpu 1 at 21.564279s (0.001017s ago):
[   21.565363]  test_double_free+0xf0/0x238
[   21.565403]  kunit_try_run_case+0x170/0x3f0
[   21.565442]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.565485]  kthread+0x328/0x630
[   21.565519]  ret_from_fork+0x10/0x20
[   21.565559] 
[   21.565603] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.565680] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.565707] Hardware name: linux,dummy-virt (DT)
[   21.565742] ==================================================================
[   21.460593] ==================================================================
[   21.460717] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   21.460717] 
[   21.460788] Invalid free of 0x00000000c25da5c6 (in kfence-#96):
[   21.460855]  test_double_free+0x1bc/0x238
[   21.460922]  kunit_try_run_case+0x170/0x3f0
[   21.460968]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.461012]  kthread+0x328/0x630
[   21.461051]  ret_from_fork+0x10/0x20
[   21.461091] 
[   21.461115] kfence-#96: 0x00000000c25da5c6-0x00000000d914fb61, size=32, cache=kmalloc-32
[   21.461115] 
[   21.461170] allocated by task 303 on cpu 1 at 21.460281s (0.000886s ago):
[   21.461234]  test_alloc+0x29c/0x628
[   21.461273]  test_double_free+0xd4/0x238
[   21.461314]  kunit_try_run_case+0x170/0x3f0
[   21.461352]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.461395]  kthread+0x328/0x630
[   21.461431]  ret_from_fork+0x10/0x20
[   21.461470] 
[   21.461494] freed by task 303 on cpu 1 at 21.460360s (0.001130s ago):
[   21.461555]  test_double_free+0x1ac/0x238
[   21.461593]  kunit_try_run_case+0x170/0x3f0
[   21.461633]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.461677]  kthread+0x328/0x630
[   21.461712]  ret_from_fork+0x10/0x20
[   21.461752] 
[   21.461799] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.461888] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.461918] Hardware name: linux,dummy-virt (DT)
[   21.461954] ==================================================================

[   18.155415] ==================================================================
[   18.155874] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.155874] 
[   18.156221] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   18.156537]  test_double_free+0x1d3/0x260
[   18.156705]  kunit_try_run_case+0x1a5/0x480
[   18.156862]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.157210]  kthread+0x337/0x6f0
[   18.157392]  ret_from_fork+0x116/0x1d0
[   18.157661]  ret_from_fork_asm+0x1a/0x30
[   18.157810] 
[   18.157910] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.157910] 
[   18.158304] allocated by task 320 on cpu 0 at 18.155162s (0.003140s ago):
[   18.158526]  test_alloc+0x364/0x10f0
[   18.158868]  test_double_free+0xdb/0x260
[   18.159082]  kunit_try_run_case+0x1a5/0x480
[   18.159297]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.159554]  kthread+0x337/0x6f0
[   18.159691]  ret_from_fork+0x116/0x1d0
[   18.159827]  ret_from_fork_asm+0x1a/0x30
[   18.160004] 
[   18.160110] freed by task 320 on cpu 0 at 18.155234s (0.004873s ago):
[   18.160417]  test_double_free+0x1e0/0x260
[   18.160573]  kunit_try_run_case+0x1a5/0x480
[   18.160799]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.160980]  kthread+0x337/0x6f0
[   18.161163]  ret_from_fork+0x116/0x1d0
[   18.161360]  ret_from_fork_asm+0x1a/0x30
[   18.161566] 
[   18.161705] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.162139] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.162299] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.162702] ==================================================================
[   18.259321] ==================================================================
[   18.259834] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.259834] 
[   18.260175] Invalid free of 0x(____ptrval____) (in kfence-#80):
[   18.260458]  test_double_free+0x112/0x260
[   18.260629]  kunit_try_run_case+0x1a5/0x480
[   18.260865]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.261108]  kthread+0x337/0x6f0
[   18.261254]  ret_from_fork+0x116/0x1d0
[   18.261449]  ret_from_fork_asm+0x1a/0x30
[   18.261629] 
[   18.261726] kfence-#80: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.261726] 
[   18.262007] allocated by task 322 on cpu 1 at 18.259163s (0.002842s ago):
[   18.262349]  test_alloc+0x2a6/0x10f0
[   18.262537]  test_double_free+0xdb/0x260
[   18.262744]  kunit_try_run_case+0x1a5/0x480
[   18.262954]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.263157]  kthread+0x337/0x6f0
[   18.263316]  ret_from_fork+0x116/0x1d0
[   18.263512]  ret_from_fork_asm+0x1a/0x30
[   18.263701] 
[   18.263774] freed by task 322 on cpu 1 at 18.259208s (0.004564s ago):
[   18.263988]  test_double_free+0xfa/0x260
[   18.264193]  kunit_try_run_case+0x1a5/0x480
[   18.264405]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.264697]  kthread+0x337/0x6f0
[   18.264856]  ret_from_fork+0x116/0x1d0
[   18.264991]  ret_from_fork_asm+0x1a/0x30
[   18.265186] 
[   18.265313] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.265771] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.265957] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.266371] ==================================================================