Hay
Date
July 2, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   35.409144] ==================================================================
[   35.409239] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   35.409239] 
[   35.409315] Invalid free of 0x00000000259f8d2b (in kfence-#127):
[   35.409386]  test_double_free+0x1bc/0x238
[   35.409434]  kunit_try_run_case+0x170/0x3f0
[   35.409482]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.409530]  kthread+0x328/0x630
[   35.409570]  ret_from_fork+0x10/0x20
[   35.409623] 
[   35.409650] kfence-#127: 0x00000000259f8d2b-0x0000000039c44183, size=32, cache=kmalloc-32
[   35.409650] 
[   35.409714] allocated by task 336 on cpu 1 at 35.408755s (0.000954s ago):
[   35.409790]  test_alloc+0x29c/0x628
[   35.409833]  test_double_free+0xd4/0x238
[   35.409876]  kunit_try_run_case+0x170/0x3f0
[   35.409938]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.409985]  kthread+0x328/0x630
[   35.410022]  ret_from_fork+0x10/0x20
[   35.410062] 
[   35.410086] freed by task 336 on cpu 1 at 35.408866s (0.001216s ago):
[   35.410151]  test_double_free+0x1ac/0x238
[   35.410193]  kunit_try_run_case+0x170/0x3f0
[   35.410234]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.410279]  kthread+0x328/0x630
[   35.410315]  ret_from_fork+0x10/0x20
[   35.410355] 
[   35.410411] CPU: 1 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   35.410506] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.410537] Hardware name: linux,dummy-virt (DT)
[   35.410579] ==================================================================
[   35.513985] ==================================================================
[   35.514071] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   35.514071] 
[   35.514232] Invalid free of 0x00000000a33d5bb6 (in kfence-#128):
[   35.514309]  test_double_free+0x100/0x238
[   35.514376]  kunit_try_run_case+0x170/0x3f0
[   35.514766]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.514892]  kthread+0x328/0x630
[   35.514947]  ret_from_fork+0x10/0x20
[   35.514989] 
[   35.515016] kfence-#128: 0x00000000a33d5bb6-0x00000000e002a32a, size=32, cache=test
[   35.515016] 
[   35.515126] allocated by task 338 on cpu 1 at 35.513139s (0.001982s ago):
[   35.515202]  test_alloc+0x230/0x628
[   35.515250]  test_double_free+0xd4/0x238
[   35.515290]  kunit_try_run_case+0x170/0x3f0
[   35.515337]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.515382]  kthread+0x328/0x630
[   35.515428]  ret_from_fork+0x10/0x20
[   35.515468] 
[   35.515492] freed by task 338 on cpu 1 at 35.513387s (0.002102s ago):
[   35.516052]  test_double_free+0xf0/0x238
[   35.516216]  kunit_try_run_case+0x170/0x3f0
[   35.516330]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.516511]  kthread+0x328/0x630
[   35.516565]  ret_from_fork+0x10/0x20
[   35.516625] 
[   35.517106] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   35.517496] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.517609] Hardware name: linux,dummy-virt (DT)
[   35.517651] ==================================================================

[   37.716112] ==================================================================
[   37.716246] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   37.716246] 
[   37.716318] Invalid free of 0x000000004a3242c8 (in kfence-#134):
[   37.716389]  test_double_free+0x1bc/0x238
[   37.716439]  kunit_try_run_case+0x170/0x3f0
[   37.716487]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.716533]  kthread+0x328/0x630
[   37.716572]  ret_from_fork+0x10/0x20
[   37.716616] 
[   37.716643] kfence-#134: 0x000000004a3242c8-0x000000007fa3dd48, size=32, cache=kmalloc-32
[   37.716643] 
[   37.716701] allocated by task 334 on cpu 0 at 37.715805s (0.000892s ago):
[   37.716766]  test_alloc+0x29c/0x628
[   37.716807]  test_double_free+0xd4/0x238
[   37.716850]  kunit_try_run_case+0x170/0x3f0
[   37.716892]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.716937]  kthread+0x328/0x630
[   37.716975]  ret_from_fork+0x10/0x20
[   37.717015] 
[   37.717041] freed by task 334 on cpu 0 at 37.715878s (0.001159s ago):
[   37.717105]  test_double_free+0x1ac/0x238
[   37.717147]  kunit_try_run_case+0x170/0x3f0
[   37.717202]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.717247]  kthread+0x328/0x630
[   37.717284]  ret_from_fork+0x10/0x20
[   37.717324] 
[   37.717373] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   37.717456] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.717493] Hardware name: linux,dummy-virt (DT)
[   37.717528] ==================================================================
[   37.820011] ==================================================================
[   37.820098] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   37.820098] 
[   37.820180] Invalid free of 0x000000003bee8f17 (in kfence-#135):
[   37.820234]  test_double_free+0x100/0x238
[   37.820283]  kunit_try_run_case+0x170/0x3f0
[   37.820328]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.820374]  kthread+0x328/0x630
[   37.820413]  ret_from_fork+0x10/0x20
[   37.820453] 
[   37.820478] kfence-#135: 0x000000003bee8f17-0x0000000043019f32, size=32, cache=test
[   37.820478] 
[   37.820533] allocated by task 336 on cpu 0 at 37.819817s (0.000712s ago):
[   37.820598]  test_alloc+0x230/0x628
[   37.820638]  test_double_free+0xd4/0x238
[   37.820680]  kunit_try_run_case+0x170/0x3f0
[   37.820720]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.820765]  kthread+0x328/0x630
[   37.820801]  ret_from_fork+0x10/0x20
[   37.820842] 
[   37.820866] freed by task 336 on cpu 0 at 37.819873s (0.000988s ago):
[   37.820929]  test_double_free+0xf0/0x238
[   37.820969]  kunit_try_run_case+0x170/0x3f0
[   37.821011]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.821056]  kthread+0x328/0x630
[   37.821093]  ret_from_fork+0x10/0x20
[   37.821132] 
[   37.821182] CPU: 0 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   37.821265] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.821296] Hardware name: linux,dummy-virt (DT)
[   37.821333] ==================================================================

[   28.530174] ==================================================================
[   28.530725] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   28.530725] 
[   28.531109] Invalid free of 0x(____ptrval____) (in kfence-#95):
[   28.531339]  test_double_free+0x112/0x260
[   28.531535]  kunit_try_run_case+0x1a5/0x480
[   28.531772]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.532026]  kthread+0x337/0x6f0
[   28.532199]  ret_from_fork+0x116/0x1d0
[   28.532341]  ret_from_fork_asm+0x1a/0x30
[   28.532584] 
[   28.532681] kfence-#95: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   28.532681] 
[   28.533011] allocated by task 353 on cpu 0 at 28.529999s (0.003010s ago):
[   28.533267]  test_alloc+0x2a6/0x10f0
[   28.533463]  test_double_free+0xdb/0x260
[   28.533771]  kunit_try_run_case+0x1a5/0x480
[   28.533965]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.534187]  kthread+0x337/0x6f0
[   28.534370]  ret_from_fork+0x116/0x1d0
[   28.534563]  ret_from_fork_asm+0x1a/0x30
[   28.534777] 
[   28.534845] freed by task 353 on cpu 0 at 28.530053s (0.004790s ago):
[   28.535171]  test_double_free+0xfa/0x260
[   28.535352]  kunit_try_run_case+0x1a5/0x480
[   28.535489]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.535655]  kthread+0x337/0x6f0
[   28.535769]  ret_from_fork+0x116/0x1d0
[   28.535893]  ret_from_fork_asm+0x1a/0x30
[   28.536024] 
[   28.536116] CPU: 0 UID: 0 PID: 353 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   28.536793] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.537135] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.538268] ==================================================================
[   28.426290] ==================================================================
[   28.426784] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   28.426784] 
[   28.427088] Invalid free of 0x(____ptrval____) (in kfence-#94):
[   28.427389]  test_double_free+0x1d3/0x260
[   28.428033]  kunit_try_run_case+0x1a5/0x480
[   28.428213]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.428477]  kthread+0x337/0x6f0
[   28.428665]  ret_from_fork+0x116/0x1d0
[   28.428816]  ret_from_fork_asm+0x1a/0x30
[   28.429013] 
[   28.429110] kfence-#94: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.429110] 
[   28.429475] allocated by task 351 on cpu 1 at 28.426018s (0.003455s ago):
[   28.430291]  test_alloc+0x364/0x10f0
[   28.430612]  test_double_free+0xdb/0x260
[   28.430788]  kunit_try_run_case+0x1a5/0x480
[   28.431101]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.431339]  kthread+0x337/0x6f0
[   28.431489]  ret_from_fork+0x116/0x1d0
[   28.431838]  ret_from_fork_asm+0x1a/0x30
[   28.432048] 
[   28.432118] freed by task 351 on cpu 1 at 28.426093s (0.006023s ago):
[   28.432532]  test_double_free+0x1e0/0x260
[   28.432840]  kunit_try_run_case+0x1a5/0x480
[   28.433099]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.433410]  kthread+0x337/0x6f0
[   28.433609]  ret_from_fork+0x116/0x1d0
[   28.433777]  ret_from_fork_asm+0x1a/0x30
[   28.433952] 
[   28.434062] CPU: 1 UID: 0 PID: 351 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   28.434568] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.435049] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.435485] ==================================================================

[   28.803832] ==================================================================
[   28.804317] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   28.804317] 
[   28.804834] Invalid free of 0x(____ptrval____) (in kfence-#97):
[   28.805241]  test_double_free+0x1d3/0x260
[   28.805517]  kunit_try_run_case+0x1a5/0x480
[   28.806212]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.806453]  kthread+0x337/0x6f0
[   28.806883]  ret_from_fork+0x116/0x1d0
[   28.807075]  ret_from_fork_asm+0x1a/0x30
[   28.807297] 
[   28.807411] kfence-#97: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.807411] 
[   28.807866] allocated by task 352 on cpu 1 at 28.803543s (0.004320s ago):
[   28.808499]  test_alloc+0x364/0x10f0
[   28.808901]  test_double_free+0xdb/0x260
[   28.809203]  kunit_try_run_case+0x1a5/0x480
[   28.809397]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.809672]  kthread+0x337/0x6f0
[   28.810015]  ret_from_fork+0x116/0x1d0
[   28.810288]  ret_from_fork_asm+0x1a/0x30
[   28.810495] 
[   28.810580] freed by task 352 on cpu 1 at 28.803605s (0.006972s ago):
[   28.811131]  test_double_free+0x1e0/0x260
[   28.811327]  kunit_try_run_case+0x1a5/0x480
[   28.811683]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.812033]  kthread+0x337/0x6f0
[   28.812229]  ret_from_fork+0x116/0x1d0
[   28.812518]  ret_from_fork_asm+0x1a/0x30
[   28.812798] 
[   28.812941] CPU: 1 UID: 0 PID: 352 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   28.813445] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.813623] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.814233] ==================================================================
[   28.907689] ==================================================================
[   28.908128] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   28.908128] 
[   28.908438] Invalid free of 0x(____ptrval____) (in kfence-#98):
[   28.908741]  test_double_free+0x112/0x260
[   28.908910]  kunit_try_run_case+0x1a5/0x480
[   28.909135]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.909325]  kthread+0x337/0x6f0
[   28.909493]  ret_from_fork+0x116/0x1d0
[   28.909675]  ret_from_fork_asm+0x1a/0x30
[   28.909851] 
[   28.909921] kfence-#98: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   28.909921] 
[   28.910300] allocated by task 354 on cpu 0 at 28.907470s (0.002828s ago):
[   28.910585]  test_alloc+0x2a6/0x10f0
[   28.910712]  test_double_free+0xdb/0x260
[   28.910847]  kunit_try_run_case+0x1a5/0x480
[   28.911047]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.911355]  kthread+0x337/0x6f0
[   28.911527]  ret_from_fork+0x116/0x1d0
[   28.911674]  ret_from_fork_asm+0x1a/0x30
[   28.911808] 
[   28.911874] freed by task 354 on cpu 0 at 28.907522s (0.004350s ago):
[   28.912265]  test_double_free+0xfa/0x260
[   28.912460]  kunit_try_run_case+0x1a5/0x480
[   28.912665]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.912874]  kthread+0x337/0x6f0
[   28.913030]  ret_from_fork+0x116/0x1d0
[   28.913166]  ret_from_fork_asm+0x1a/0x30
[   28.913461] 
[   28.913577] CPU: 0 UID: 0 PID: 354 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   28.914007] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.914154] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.914456] ==================================================================