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

Environment
qemu-arm64
qemu-x86_64

[   21.227778] ==================================================================
[   21.228003] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   21.228003] 
[   21.228076] Invalid free of 0x00000000fe62797a (in kfence-#95):
[   21.228201]  test_double_free+0x100/0x238
[   21.228257]  kunit_try_run_case+0x170/0x3f0
[   21.228300]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.228374]  kthread+0x328/0x630
[   21.228414]  ret_from_fork+0x10/0x20
[   21.228481] 
[   21.228507] kfence-#95: 0x00000000fe62797a-0x000000000ef7e50e, size=32, cache=test
[   21.228507] 
[   21.228559] allocated by task 306 on cpu 1 at 21.227540s (0.001016s ago):
[   21.228760]  test_alloc+0x230/0x628
[   21.228826]  test_double_free+0xd4/0x238
[   21.228900]  kunit_try_run_case+0x170/0x3f0
[   21.228940]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.229032]  kthread+0x328/0x630
[   21.229099]  ret_from_fork+0x10/0x20
[   21.229298] 
[   21.229479] freed by task 306 on cpu 1 at 21.227633s (0.001804s ago):
[   21.229562]  test_double_free+0xf0/0x238
[   21.229609]  kunit_try_run_case+0x170/0x3f0
[   21.229653]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.229702]  kthread+0x328/0x630
[   21.229765]  ret_from_fork+0x10/0x20
[   21.229873] 
[   21.229919] CPU: 1 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.230018] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.230048] Hardware name: linux,dummy-virt (DT)
[   21.230082] ==================================================================
[   21.124188] ==================================================================
[   21.124306] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   21.124306] 
[   21.124375] Invalid free of 0x0000000034284833 (in kfence-#94):
[   21.124437]  test_double_free+0x1bc/0x238
[   21.124482]  kunit_try_run_case+0x170/0x3f0
[   21.124527]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.124568]  kthread+0x328/0x630
[   21.124607]  ret_from_fork+0x10/0x20
[   21.124645] 
[   21.124672] kfence-#94: 0x0000000034284833-0x0000000017d09dc1, size=32, cache=kmalloc-32
[   21.124672] 
[   21.124739] allocated by task 304 on cpu 1 at 21.123663s (0.001058s ago):
[   21.124800]  test_alloc+0x29c/0x628
[   21.124859]  test_double_free+0xd4/0x238
[   21.124964]  kunit_try_run_case+0x170/0x3f0
[   21.125089]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.125270]  kthread+0x328/0x630
[   21.125307]  ret_from_fork+0x10/0x20
[   21.125347] 
[   21.125370] freed by task 304 on cpu 1 at 21.123743s (0.001623s ago):
[   21.125440]  test_double_free+0x1ac/0x238
[   21.125637]  kunit_try_run_case+0x170/0x3f0
[   21.125749]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.126397]  kthread+0x328/0x630
[   21.126472]  ret_from_fork+0x10/0x20
[   21.126521] 
[   21.126697] CPU: 1 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.126853] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.127178] Hardware name: linux,dummy-virt (DT)
[   21.127264] ==================================================================

[   18.895563] ==================================================================
[   18.896045] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.896045] 
[   18.896348] Invalid free of 0x(____ptrval____) (in kfence-#80):
[   18.897035]  test_double_free+0x1d3/0x260
[   18.897437]  kunit_try_run_case+0x1a5/0x480
[   18.897718]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.898069]  kthread+0x337/0x6f0
[   18.898235]  ret_from_fork+0x116/0x1d0
[   18.898402]  ret_from_fork_asm+0x1a/0x30
[   18.898592] 
[   18.898670] kfence-#80: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.898670] 
[   18.899359] allocated by task 320 on cpu 1 at 18.895366s (0.003990s ago):
[   18.899648]  test_alloc+0x364/0x10f0
[   18.900063]  test_double_free+0xdb/0x260
[   18.900323]  kunit_try_run_case+0x1a5/0x480
[   18.900502]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.900950]  kthread+0x337/0x6f0
[   18.901131]  ret_from_fork+0x116/0x1d0
[   18.901421]  ret_from_fork_asm+0x1a/0x30
[   18.901614] 
[   18.901689] freed by task 320 on cpu 1 at 18.895418s (0.006268s ago):
[   18.902205]  test_double_free+0x1e0/0x260
[   18.902397]  kunit_try_run_case+0x1a5/0x480
[   18.902575]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.902978]  kthread+0x337/0x6f0
[   18.903146]  ret_from_fork+0x116/0x1d0
[   18.903398]  ret_from_fork_asm+0x1a/0x30
[   18.903585] 
[   18.903698] CPU: 1 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.904395] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.904649] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.905149] ==================================================================
[   18.999565] ==================================================================
[   19.000095] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   19.000095] 
[   19.000418] Invalid free of 0x(____ptrval____) (in kfence-#81):
[   19.000665]  test_double_free+0x112/0x260
[   19.000930]  kunit_try_run_case+0x1a5/0x480
[   19.001084]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.001444]  kthread+0x337/0x6f0
[   19.001571]  ret_from_fork+0x116/0x1d0
[   19.001733]  ret_from_fork_asm+0x1a/0x30
[   19.001954] 
[   19.002054] kfence-#81: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.002054] 
[   19.002364] allocated by task 322 on cpu 0 at 18.999405s (0.002956s ago):
[   19.002671]  test_alloc+0x2a6/0x10f0
[   19.002889]  test_double_free+0xdb/0x260
[   19.003103]  kunit_try_run_case+0x1a5/0x480
[   19.003277]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.003494]  kthread+0x337/0x6f0
[   19.003614]  ret_from_fork+0x116/0x1d0
[   19.003778]  ret_from_fork_asm+0x1a/0x30
[   19.004071] 
[   19.004183] freed by task 322 on cpu 0 at 18.999445s (0.004737s ago):
[   19.004421]  test_double_free+0xfa/0x260
[   19.004560]  kunit_try_run_case+0x1a5/0x480
[   19.004784]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.005053]  kthread+0x337/0x6f0
[   19.005223]  ret_from_fork+0x116/0x1d0
[   19.005383]  ret_from_fork_asm+0x1a/0x30
[   19.005529] 
[   19.005632] CPU: 0 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.005975] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.006328] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.006708] ==================================================================