Hay
Date
July 1, 2025, 11:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.696319] ==================================================================
[   23.696807] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   23.696807] 
[   23.696940] Invalid free of 0x00000000204aeb1f (in kfence-#98):
[   23.697093]  test_double_free+0x1bc/0x238
[   23.697179]  kunit_try_run_case+0x170/0x3f0
[   23.697239]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.697296]  kthread+0x328/0x630
[   23.697373]  ret_from_fork+0x10/0x20
[   23.697421] 
[   23.697487] kfence-#98: 0x00000000204aeb1f-0x00000000139d3c78, size=32, cache=kmalloc-32
[   23.697487] 
[   23.697653] allocated by task 304 on cpu 0 at 23.695957s (0.001630s ago):
[   23.697727]  test_alloc+0x29c/0x628
[   23.697770]  test_double_free+0xd4/0x238
[   23.697812]  kunit_try_run_case+0x170/0x3f0
[   23.698255]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.698385]  kthread+0x328/0x630
[   23.698435]  ret_from_fork+0x10/0x20
[   23.698520] 
[   23.698581] freed by task 304 on cpu 0 at 23.696100s (0.002445s ago):
[   23.698668]  test_double_free+0x1ac/0x238
[   23.698714]  kunit_try_run_case+0x170/0x3f0
[   23.698777]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.698827]  kthread+0x328/0x630
[   23.698866]  ret_from_fork+0x10/0x20
[   23.698961] 
[   23.699030] CPU: 0 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.699120] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.699164] Hardware name: linux,dummy-virt (DT)
[   23.699571] ==================================================================
[   23.796799] ==================================================================
[   23.796932] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   23.796932] 
[   23.797000] Invalid free of 0x00000000b364e12a (in kfence-#99):
[   23.797110]  test_double_free+0x100/0x238
[   23.797173]  kunit_try_run_case+0x170/0x3f0
[   23.797222]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.797269]  kthread+0x328/0x630
[   23.797317]  ret_from_fork+0x10/0x20
[   23.797391] 
[   23.797437] kfence-#99: 0x00000000b364e12a-0x000000009b16b6b6, size=32, cache=test
[   23.797437] 
[   23.797563] allocated by task 306 on cpu 0 at 23.796456s (0.001037s ago):
[   23.797657]  test_alloc+0x230/0x628
[   23.797704]  test_double_free+0xd4/0x238
[   23.797817]  kunit_try_run_case+0x170/0x3f0
[   23.798010]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.798150]  kthread+0x328/0x630
[   23.798197]  ret_from_fork+0x10/0x20
[   23.798387] 
[   23.798519] freed by task 306 on cpu 0 at 23.796542s (0.001917s ago):
[   23.798598]  test_double_free+0xf0/0x238
[   23.798644]  kunit_try_run_case+0x170/0x3f0
[   23.798686]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.798733]  kthread+0x328/0x630
[   23.798935]  ret_from_fork+0x10/0x20
[   23.798993] 
[   23.799156] CPU: 0 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.799253] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.799283] Hardware name: linux,dummy-virt (DT)
[   23.799324] ==================================================================

[   17.033519] ==================================================================
[   17.034067] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.034067] 
[   17.034451] Invalid free of 0x(____ptrval____) (in kfence-#73):
[   17.034759]  test_double_free+0x1d3/0x260
[   17.034978]  kunit_try_run_case+0x1a5/0x480
[   17.035175]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.035414]  kthread+0x337/0x6f0
[   17.035564]  ret_from_fork+0x116/0x1d0
[   17.035742]  ret_from_fork_asm+0x1a/0x30
[   17.035882] 
[   17.036012] kfence-#73: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.036012] 
[   17.036458] allocated by task 320 on cpu 1 at 17.033247s (0.003208s ago):
[   17.036722]  test_alloc+0x364/0x10f0
[   17.036880]  test_double_free+0xdb/0x260
[   17.037720]  kunit_try_run_case+0x1a5/0x480
[   17.037924]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.038153]  kthread+0x337/0x6f0
[   17.038308]  ret_from_fork+0x116/0x1d0
[   17.038499]  ret_from_fork_asm+0x1a/0x30
[   17.039025] 
[   17.039123] freed by task 320 on cpu 1 at 17.033312s (0.005808s ago):
[   17.039553]  test_double_free+0x1e0/0x260
[   17.039730]  kunit_try_run_case+0x1a5/0x480
[   17.039923]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.040157]  kthread+0x337/0x6f0
[   17.040309]  ret_from_fork+0x116/0x1d0
[   17.040506]  ret_from_fork_asm+0x1a/0x30
[   17.041067] 
[   17.041202] CPU: 1 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.041743] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.041901] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.042420] ==================================================================
[   17.137481] ==================================================================
[   17.137896] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.137896] 
[   17.138224] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   17.138912]  test_double_free+0x112/0x260
[   17.139151]  kunit_try_run_case+0x1a5/0x480
[   17.139337]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.139578]  kthread+0x337/0x6f0
[   17.139731]  ret_from_fork+0x116/0x1d0
[   17.139910]  ret_from_fork_asm+0x1a/0x30
[   17.140113] 
[   17.140193] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.140193] 
[   17.141070] allocated by task 322 on cpu 0 at 17.137273s (0.003794s ago):
[   17.141529]  test_alloc+0x2a6/0x10f0
[   17.141829]  test_double_free+0xdb/0x260
[   17.142089]  kunit_try_run_case+0x1a5/0x480
[   17.142367]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.142598]  kthread+0x337/0x6f0
[   17.142907]  ret_from_fork+0x116/0x1d0
[   17.143094]  ret_from_fork_asm+0x1a/0x30
[   17.143401] 
[   17.143493] freed by task 322 on cpu 0 at 17.137336s (0.006155s ago):
[   17.143912]  test_double_free+0xfa/0x260
[   17.144174]  kunit_try_run_case+0x1a5/0x480
[   17.144373]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.144702]  kthread+0x337/0x6f0
[   17.144971]  ret_from_fork+0x116/0x1d0
[   17.145152]  ret_from_fork_asm+0x1a/0x30
[   17.145476] 
[   17.145602] CPU: 0 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.146089] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.146276] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.146888] ==================================================================