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

Environment
qemu-arm64
qemu-x86_64

[   21.082459] ==================================================================
[   21.082560] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   21.082560] 
[   21.082624] Invalid free of 0x00000000545c2738 (in kfence-#95):
[   21.082677]  test_double_free+0x100/0x238
[   21.082726]  kunit_try_run_case+0x170/0x3f0
[   21.082770]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.082814]  kthread+0x328/0x630
[   21.082857]  ret_from_fork+0x10/0x20
[   21.082897] 
[   21.082920] kfence-#95: 0x00000000545c2738-0x000000004e88df87, size=32, cache=test
[   21.082920] 
[   21.082975] allocated by task 305 on cpu 0 at 21.082250s (0.000722s ago):
[   21.083038]  test_alloc+0x230/0x628
[   21.083094]  test_double_free+0xd4/0x238
[   21.083137]  kunit_try_run_case+0x170/0x3f0
[   21.083177]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.083223]  kthread+0x328/0x630
[   21.083259]  ret_from_fork+0x10/0x20
[   21.083301] 
[   21.083324] freed by task 305 on cpu 0 at 21.082317s (0.001003s ago):
[   21.083387]  test_double_free+0xf0/0x238
[   21.083427]  kunit_try_run_case+0x170/0x3f0
[   21.083470]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.083516]  kthread+0x328/0x630
[   21.083552]  ret_from_fork+0x10/0x20
[   21.083594] 
[   21.083638] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.083721] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.083750] Hardware name: linux,dummy-virt (DT)
[   21.083785] ==================================================================
[   20.978709] ==================================================================
[   20.978836] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   20.978836] 
[   20.978905] Invalid free of 0x00000000816e788b (in kfence-#94):
[   20.978969]  test_double_free+0x1bc/0x238
[   20.979017]  kunit_try_run_case+0x170/0x3f0
[   20.979064]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.979125]  kthread+0x328/0x630
[   20.979167]  ret_from_fork+0x10/0x20
[   20.979207] 
[   20.979232] kfence-#94: 0x00000000816e788b-0x000000007abc61d6, size=32, cache=kmalloc-32
[   20.979232] 
[   20.979289] allocated by task 303 on cpu 0 at 20.978403s (0.000883s ago):
[   20.979351]  test_alloc+0x29c/0x628
[   20.979393]  test_double_free+0xd4/0x238
[   20.979433]  kunit_try_run_case+0x170/0x3f0
[   20.979476]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.979521]  kthread+0x328/0x630
[   20.979559]  ret_from_fork+0x10/0x20
[   20.979599] 
[   20.979624] freed by task 303 on cpu 0 at 20.978485s (0.001136s ago):
[   20.979687]  test_double_free+0x1ac/0x238
[   20.979729]  kunit_try_run_case+0x170/0x3f0
[   20.979770]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.979816]  kthread+0x328/0x630
[   20.979853]  ret_from_fork+0x10/0x20
[   20.979894] 
[   20.979941] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   20.980025] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.980052] Hardware name: linux,dummy-virt (DT)
[   20.980098] ==================================================================

[   18.925860] ==================================================================
[   18.926280] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.926280] 
[   18.926635] Invalid free of 0x(____ptrval____) (in kfence-#80):
[   18.926941]  test_double_free+0x1d3/0x260
[   18.927129]  kunit_try_run_case+0x1a5/0x480
[   18.927338]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.927584]  kthread+0x337/0x6f0
[   18.927713]  ret_from_fork+0x116/0x1d0
[   18.927877]  ret_from_fork_asm+0x1a/0x30
[   18.928080] 
[   18.928180] kfence-#80: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.928180] 
[   18.928689] allocated by task 321 on cpu 1 at 18.925643s (0.003044s ago):
[   18.928935]  test_alloc+0x364/0x10f0
[   18.929108]  test_double_free+0xdb/0x260
[   18.929310]  kunit_try_run_case+0x1a5/0x480
[   18.929577]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.929816]  kthread+0x337/0x6f0
[   18.929945]  ret_from_fork+0x116/0x1d0
[   18.930136]  ret_from_fork_asm+0x1a/0x30
[   18.930323] 
[   18.930436] freed by task 321 on cpu 1 at 18.925714s (0.004719s ago):
[   18.930708]  test_double_free+0x1e0/0x260
[   18.930848]  kunit_try_run_case+0x1a5/0x480
[   18.930993]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.931247]  kthread+0x337/0x6f0
[   18.931427]  ret_from_fork+0x116/0x1d0
[   18.931597]  ret_from_fork_asm+0x1a/0x30
[   18.931736] 
[   18.931829] CPU: 1 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.932715] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.932903] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.933254] ==================================================================
[   19.029786] ==================================================================
[   19.030177] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   19.030177] 
[   19.030644] Invalid free of 0x(____ptrval____) (in kfence-#81):
[   19.030909]  test_double_free+0x112/0x260
[   19.031099]  kunit_try_run_case+0x1a5/0x480
[   19.031286]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.031476]  kthread+0x337/0x6f0
[   19.031761]  ret_from_fork+0x116/0x1d0
[   19.031957]  ret_from_fork_asm+0x1a/0x30
[   19.032164] 
[   19.032261] kfence-#81: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.032261] 
[   19.032633] allocated by task 323 on cpu 1 at 19.029617s (0.003014s ago):
[   19.032910]  test_alloc+0x2a6/0x10f0
[   19.033085]  test_double_free+0xdb/0x260
[   19.033224]  kunit_try_run_case+0x1a5/0x480
[   19.033492]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.033750]  kthread+0x337/0x6f0
[   19.033895]  ret_from_fork+0x116/0x1d0
[   19.034074]  ret_from_fork_asm+0x1a/0x30
[   19.034242] 
[   19.034313] freed by task 323 on cpu 1 at 19.029671s (0.004640s ago):
[   19.034579]  test_double_free+0xfa/0x260
[   19.034832]  kunit_try_run_case+0x1a5/0x480
[   19.035106]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.035375]  kthread+0x337/0x6f0
[   19.035538]  ret_from_fork+0x116/0x1d0
[   19.035672]  ret_from_fork_asm+0x1a/0x30
[   19.035813] 
[   19.035909] CPU: 1 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.036406] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.036651] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.036971] ==================================================================