Hay
Date
July 15, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.590142] ==================================================================
[   20.590262] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   20.590262] 
[   20.590369] Invalid free of 0x000000004a756c11 (in kfence-#93):
[   20.590467]  test_double_free+0x1bc/0x238
[   20.590513]  kunit_try_run_case+0x170/0x3f0
[   20.590734]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.590914]  kthread+0x328/0x630
[   20.590960]  ret_from_fork+0x10/0x20
[   20.591018] 
[   20.591066] kfence-#93: 0x000000004a756c11-0x000000009bd72d8f, size=32, cache=kmalloc-32
[   20.591066] 
[   20.591122] allocated by task 304 on cpu 0 at 20.589650s (0.001468s ago):
[   20.591378]  test_alloc+0x29c/0x628
[   20.591433]  test_double_free+0xd4/0x238
[   20.591500]  kunit_try_run_case+0x170/0x3f0
[   20.591542]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.591596]  kthread+0x328/0x630
[   20.591633]  ret_from_fork+0x10/0x20
[   20.591671] 
[   20.591703] freed by task 304 on cpu 0 at 20.589896s (0.001803s ago):
[   20.591767]  test_double_free+0x1ac/0x238
[   20.591807]  kunit_try_run_case+0x170/0x3f0
[   20.591847]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.591891]  kthread+0x328/0x630
[   20.591925]  ret_from_fork+0x10/0x20
[   20.591964] 
[   20.592010] CPU: 0 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.592090] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.592119] Hardware name: linux,dummy-virt (DT)
[   20.592154] ==================================================================
[   20.694126] ==================================================================
[   20.694288] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   20.694288] 
[   20.694562] Invalid free of 0x000000006c0f6cd6 (in kfence-#94):
[   20.694686]  test_double_free+0x100/0x238
[   20.694766]  kunit_try_run_case+0x170/0x3f0
[   20.694810]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.694884]  kthread+0x328/0x630
[   20.694929]  ret_from_fork+0x10/0x20
[   20.695019] 
[   20.695196] kfence-#94: 0x000000006c0f6cd6-0x000000002fae9442, size=32, cache=test
[   20.695196] 
[   20.695274] allocated by task 306 on cpu 0 at 20.693594s (0.001674s ago):
[   20.695575]  test_alloc+0x230/0x628
[   20.695735]  test_double_free+0xd4/0x238
[   20.695964]  kunit_try_run_case+0x170/0x3f0
[   20.696018]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.696063]  kthread+0x328/0x630
[   20.696098]  ret_from_fork+0x10/0x20
[   20.696137] 
[   20.696159] freed by task 306 on cpu 0 at 20.693729s (0.002427s ago):
[   20.696360]  test_double_free+0xf0/0x238
[   20.696402]  kunit_try_run_case+0x170/0x3f0
[   20.696642]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.696737]  kthread+0x328/0x630
[   20.696887]  ret_from_fork+0x10/0x20
[   20.696932] 
[   20.697003] CPU: 0 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.697264] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.697471] Hardware name: linux,dummy-virt (DT)
[   20.697615] ==================================================================

[   18.331828] ==================================================================
[   18.332229] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.332229] 
[   18.332599] Invalid free of 0x(____ptrval____) (in kfence-#73):
[   18.333207]  test_double_free+0x112/0x260
[   18.333409]  kunit_try_run_case+0x1a5/0x480
[   18.333837]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.334301]  kthread+0x337/0x6f0
[   18.334677]  ret_from_fork+0x116/0x1d0
[   18.334879]  ret_from_fork_asm+0x1a/0x30
[   18.335035] 
[   18.335136] kfence-#73: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.335136] 
[   18.335794] allocated by task 322 on cpu 0 at 18.331656s (0.004135s ago):
[   18.336256]  test_alloc+0x2a6/0x10f0
[   18.336514]  test_double_free+0xdb/0x260
[   18.336811]  kunit_try_run_case+0x1a5/0x480
[   18.337032]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.337410]  kthread+0x337/0x6f0
[   18.337640]  ret_from_fork+0x116/0x1d0
[   18.337989]  ret_from_fork_asm+0x1a/0x30
[   18.338199] 
[   18.338463] freed by task 322 on cpu 0 at 18.331701s (0.006760s ago):
[   18.338908]  test_double_free+0xfa/0x260
[   18.339110]  kunit_try_run_case+0x1a5/0x480
[   18.339461]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.339810]  kthread+0x337/0x6f0
[   18.339991]  ret_from_fork+0x116/0x1d0
[   18.340274]  ret_from_fork_asm+0x1a/0x30
[   18.340613] 
[   18.340770] CPU: 0 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.341365] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.341677] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.342044] ==================================================================
[   18.227811] ==================================================================
[   18.228232] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.228232] 
[   18.228645] Invalid free of 0x(____ptrval____) (in kfence-#72):
[   18.228965]  test_double_free+0x1d3/0x260
[   18.229169]  kunit_try_run_case+0x1a5/0x480
[   18.229325]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.229848]  kthread+0x337/0x6f0
[   18.230001]  ret_from_fork+0x116/0x1d0
[   18.230208]  ret_from_fork_asm+0x1a/0x30
[   18.230385] 
[   18.230489] kfence-#72: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.230489] 
[   18.230989] allocated by task 320 on cpu 0 at 18.227594s (0.003393s ago):
[   18.231294]  test_alloc+0x364/0x10f0
[   18.231426]  test_double_free+0xdb/0x260
[   18.231562]  kunit_try_run_case+0x1a5/0x480
[   18.231705]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.232123]  kthread+0x337/0x6f0
[   18.232290]  ret_from_fork+0x116/0x1d0
[   18.232845]  ret_from_fork_asm+0x1a/0x30
[   18.233162] 
[   18.233377] freed by task 320 on cpu 0 at 18.227646s (0.005729s ago):
[   18.233647]  test_double_free+0x1e0/0x260
[   18.233867]  kunit_try_run_case+0x1a5/0x480
[   18.234036]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.234293]  kthread+0x337/0x6f0
[   18.234439]  ret_from_fork+0x116/0x1d0
[   18.234596]  ret_from_fork_asm+0x1a/0x30
[   18.234851] 
[   18.234962] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.235367] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.235597] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.235939] ==================================================================