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

Environment
qemu-arm64
qemu-x86_64

[   21.455106] ==================================================================
[   21.455204] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   21.455204] 
[   21.455278] Invalid free of 0x000000007ec94fce (in kfence-#92):
[   21.455638]  test_double_free+0x100/0x238
[   21.456185]  kunit_try_run_case+0x170/0x3f0
[   21.456257]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.456498]  kthread+0x328/0x630
[   21.456689]  ret_from_fork+0x10/0x20
[   21.456742] 
[   21.456822] kfence-#92: 0x000000007ec94fce-0x000000001fd99d9c, size=32, cache=test
[   21.456822] 
[   21.456928] allocated by task 305 on cpu 0 at 21.454780s (0.002144s ago):
[   21.457535]  test_alloc+0x230/0x628
[   21.457607]  test_double_free+0xd4/0x238
[   21.457663]  kunit_try_run_case+0x170/0x3f0
[   21.457703]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.457749]  kthread+0x328/0x630
[   21.457785]  ret_from_fork+0x10/0x20
[   21.457825] 
[   21.457849] freed by task 305 on cpu 0 at 21.454902s (0.002943s ago):
[   21.457938]  test_double_free+0xf0/0x238
[   21.457980]  kunit_try_run_case+0x170/0x3f0
[   21.458023]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.458133]  kthread+0x328/0x630
[   21.458186]  ret_from_fork+0x10/0x20
[   21.458226] 
[   21.458280] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.458558] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.458606] Hardware name: linux,dummy-virt (DT)
[   21.458656] ==================================================================
[   21.351743] ==================================================================
[   21.351977] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   21.351977] 
[   21.352244] Invalid free of 0x00000000103f7890 (in kfence-#91):
[   21.352388]  test_double_free+0x1bc/0x238
[   21.352438]  kunit_try_run_case+0x170/0x3f0
[   21.352484]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.352529]  kthread+0x328/0x630
[   21.352569]  ret_from_fork+0x10/0x20
[   21.352615] 
[   21.352742] kfence-#91: 0x00000000103f7890-0x00000000f20ed4e9, size=32, cache=kmalloc-32
[   21.352742] 
[   21.352897] allocated by task 303 on cpu 0 at 21.351249s (0.001644s ago):
[   21.353156]  test_alloc+0x29c/0x628
[   21.353281]  test_double_free+0xd4/0x238
[   21.353358]  kunit_try_run_case+0x170/0x3f0
[   21.353400]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.353443]  kthread+0x328/0x630
[   21.353479]  ret_from_fork+0x10/0x20
[   21.353518] 
[   21.353543] freed by task 303 on cpu 0 at 21.351329s (0.002210s ago):
[   21.353606]  test_double_free+0x1ac/0x238
[   21.353648]  kunit_try_run_case+0x170/0x3f0
[   21.353784]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.354224]  kthread+0x328/0x630
[   21.354272]  ret_from_fork+0x10/0x20
[   21.354349] 
[   21.354600] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.354885] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.354915] Hardware name: linux,dummy-virt (DT)
[   21.355229] ==================================================================

[   18.316388] ==================================================================
[   18.316818] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.316818] 
[   18.317325] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   18.317623]  test_double_free+0x1d3/0x260
[   18.317775]  kunit_try_run_case+0x1a5/0x480
[   18.318004]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.318298]  kthread+0x337/0x6f0
[   18.318497]  ret_from_fork+0x116/0x1d0
[   18.318667]  ret_from_fork_asm+0x1a/0x30
[   18.318861] 
[   18.318971] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.318971] 
[   18.319386] allocated by task 320 on cpu 1 at 18.316138s (0.003246s ago):
[   18.319689]  test_alloc+0x364/0x10f0
[   18.319865]  test_double_free+0xdb/0x260
[   18.320078]  kunit_try_run_case+0x1a5/0x480
[   18.320305]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.320533]  kthread+0x337/0x6f0
[   18.320654]  ret_from_fork+0x116/0x1d0
[   18.320790]  ret_from_fork_asm+0x1a/0x30
[   18.321100] 
[   18.321198] freed by task 320 on cpu 1 at 18.316202s (0.004994s ago):
[   18.321493]  test_double_free+0x1e0/0x260
[   18.321665]  kunit_try_run_case+0x1a5/0x480
[   18.321811]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.322055]  kthread+0x337/0x6f0
[   18.322307]  ret_from_fork+0x116/0x1d0
[   18.322490]  ret_from_fork_asm+0x1a/0x30
[   18.322637] 
[   18.322731] CPU: 1 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.323443] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.323654] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.323937] ==================================================================
[   18.420315] ==================================================================
[   18.420700] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.420700] 
[   18.421159] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   18.421483]  test_double_free+0x112/0x260
[   18.421918]  kunit_try_run_case+0x1a5/0x480
[   18.422180]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.422400]  kthread+0x337/0x6f0
[   18.422529]  ret_from_fork+0x116/0x1d0
[   18.422661]  ret_from_fork_asm+0x1a/0x30
[   18.422861] 
[   18.422973] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.422973] 
[   18.423282] allocated by task 322 on cpu 0 at 18.420150s (0.003130s ago):
[   18.423613]  test_alloc+0x2a6/0x10f0
[   18.423811]  test_double_free+0xdb/0x260
[   18.424057]  kunit_try_run_case+0x1a5/0x480
[   18.424278]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.424544]  kthread+0x337/0x6f0
[   18.424714]  ret_from_fork+0x116/0x1d0
[   18.424870]  ret_from_fork_asm+0x1a/0x30
[   18.425151] 
[   18.425286] freed by task 322 on cpu 0 at 18.420205s (0.005079s ago):
[   18.425557]  test_double_free+0xfa/0x260
[   18.425785]  kunit_try_run_case+0x1a5/0x480
[   18.425987]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.426273]  kthread+0x337/0x6f0
[   18.426390]  ret_from_fork+0x116/0x1d0
[   18.426517]  ret_from_fork_asm+0x1a/0x30
[   18.426725] 
[   18.426865] CPU: 0 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.427597] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.427787] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.428195] ==================================================================