Hay
Date
July 20, 2025, 11:12 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.138354] ==================================================================
[   20.138480] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   20.138480] 
[   20.138827] Invalid free of 0x0000000035096842 (in kfence-#89):
[   20.138982]  test_double_free+0x1bc/0x238
[   20.139572]  kunit_try_run_case+0x170/0x3f0
[   20.139708]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.140082]  kthread+0x328/0x630
[   20.140419]  ret_from_fork+0x10/0x20
[   20.140492] 
[   20.140524] kfence-#89: 0x0000000035096842-0x000000006036d3af, size=32, cache=kmalloc-32
[   20.140524] 
[   20.140977] allocated by task 303 on cpu 0 at 20.137329s (0.003640s ago):
[   20.141261]  test_alloc+0x29c/0x628
[   20.141704]  test_double_free+0xd4/0x238
[   20.141880]  kunit_try_run_case+0x170/0x3f0
[   20.142443]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.142557]  kthread+0x328/0x630
[   20.142809]  ret_from_fork+0x10/0x20
[   20.142973] 
[   20.143339] freed by task 303 on cpu 0 at 20.137409s (0.005854s ago):
[   20.143456]  test_double_free+0x1ac/0x238
[   20.143661]  kunit_try_run_case+0x170/0x3f0
[   20.143877]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.144064]  kthread+0x328/0x630
[   20.144235]  ret_from_fork+0x10/0x20
[   20.144603] 
[   20.144854] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.145152] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.145193] Hardware name: linux,dummy-virt (DT)
[   20.145826] ==================================================================
[   20.244010] ==================================================================
[   20.244086] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   20.244086] 
[   20.244158] Invalid free of 0x00000000476b073b (in kfence-#90):
[   20.244213]  test_double_free+0x100/0x238
[   20.244258]  kunit_try_run_case+0x170/0x3f0
[   20.244329]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.244375]  kthread+0x328/0x630
[   20.244418]  ret_from_fork+0x10/0x20
[   20.244483] 
[   20.244508] kfence-#90: 0x00000000476b073b-0x00000000f8c16408, size=32, cache=test
[   20.244508] 
[   20.244560] allocated by task 305 on cpu 0 at 20.243633s (0.000923s ago):
[   20.244620]  test_alloc+0x230/0x628
[   20.244660]  test_double_free+0xd4/0x238
[   20.244737]  kunit_try_run_case+0x170/0x3f0
[   20.244815]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.244869]  kthread+0x328/0x630
[   20.244904]  ret_from_fork+0x10/0x20
[   20.244952] 
[   20.244977] freed by task 305 on cpu 0 at 20.243707s (0.001266s ago):
[   20.245037]  test_double_free+0xf0/0x238
[   20.245077]  kunit_try_run_case+0x170/0x3f0
[   20.245116]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.245167]  kthread+0x328/0x630
[   20.245204]  ret_from_fork+0x10/0x20
[   20.245243] 
[   20.245284] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.245361] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.245388] Hardware name: linux,dummy-virt (DT)
[   20.245432] ==================================================================

[   18.175843] ==================================================================
[   18.176246] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.176246] 
[   18.176661] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   18.177210]  test_double_free+0x112/0x260
[   18.177436]  kunit_try_run_case+0x1a5/0x480
[   18.177651]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.177885]  kthread+0x337/0x6f0
[   18.178088]  ret_from_fork+0x116/0x1d0
[   18.178282]  ret_from_fork_asm+0x1a/0x30
[   18.178441] 
[   18.178544] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.178544] 
[   18.178970] allocated by task 323 on cpu 0 at 18.175687s (0.003281s ago):
[   18.179274]  test_alloc+0x2a6/0x10f0
[   18.179403]  test_double_free+0xdb/0x260
[   18.179600]  kunit_try_run_case+0x1a5/0x480
[   18.179953]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.180220]  kthread+0x337/0x6f0
[   18.180361]  ret_from_fork+0x116/0x1d0
[   18.180555]  ret_from_fork_asm+0x1a/0x30
[   18.180770] 
[   18.180865] freed by task 323 on cpu 0 at 18.175743s (0.005120s ago):
[   18.181183]  test_double_free+0xfa/0x260
[   18.181522]  kunit_try_run_case+0x1a5/0x480
[   18.181694]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.181921]  kthread+0x337/0x6f0
[   18.182093]  ret_from_fork+0x116/0x1d0
[   18.182268]  ret_from_fork_asm+0x1a/0x30
[   18.182432] 
[   18.182526] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.182893] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.183132] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.183516] ==================================================================
[   18.071932] ==================================================================
[   18.072352] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.072352] 
[   18.072775] Invalid free of 0x(____ptrval____) (in kfence-#73):
[   18.073123]  test_double_free+0x1d3/0x260
[   18.073333]  kunit_try_run_case+0x1a5/0x480
[   18.073509]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.073737]  kthread+0x337/0x6f0
[   18.073965]  ret_from_fork+0x116/0x1d0
[   18.074194]  ret_from_fork_asm+0x1a/0x30
[   18.074353] 
[   18.074452] kfence-#73: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.074452] 
[   18.074899] allocated by task 321 on cpu 0 at 18.071675s (0.003222s ago):
[   18.075332]  test_alloc+0x364/0x10f0
[   18.075543]  test_double_free+0xdb/0x260
[   18.075740]  kunit_try_run_case+0x1a5/0x480
[   18.075982]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.076256]  kthread+0x337/0x6f0
[   18.076405]  ret_from_fork+0x116/0x1d0
[   18.076620]  ret_from_fork_asm+0x1a/0x30
[   18.076846] 
[   18.076951] freed by task 321 on cpu 0 at 18.071739s (0.005209s ago):
[   18.077261]  test_double_free+0x1e0/0x260
[   18.077493]  kunit_try_run_case+0x1a5/0x480
[   18.077703]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.077964]  kthread+0x337/0x6f0
[   18.078238]  ret_from_fork+0x116/0x1d0
[   18.078434]  ret_from_fork_asm+0x1a/0x30
[   18.078637] 
[   18.078755] CPU: 0 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.079226] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.079386] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.079650] ==================================================================