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

Environment
qemu-arm64
qemu-x86_64

[   22.747862] ==================================================================
[   22.747978] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   22.747978] 
[   22.748070] Invalid free of 0x00000000a56615b3 (in kfence-#91):
[   22.748122]  test_double_free+0x100/0x238
[   22.748193]  kunit_try_run_case+0x170/0x3f0
[   22.748236]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.748315]  kthread+0x328/0x630
[   22.748372]  ret_from_fork+0x10/0x20
[   22.748411] 
[   22.748435] kfence-#91: 0x00000000a56615b3-0x00000000751db6c3, size=32, cache=test
[   22.748435] 
[   22.748490] allocated by task 305 on cpu 1 at 22.747582s (0.000900s ago):
[   22.748552]  test_alloc+0x230/0x628
[   22.748591]  test_double_free+0xd4/0x238
[   22.748763]  kunit_try_run_case+0x170/0x3f0
[   22.748827]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.748872]  kthread+0x328/0x630
[   22.748907]  ret_from_fork+0x10/0x20
[   22.748982] 
[   22.749023] freed by task 305 on cpu 1 at 22.747639s (0.001379s ago):
[   22.749091]  test_double_free+0xf0/0x238
[   22.749147]  kunit_try_run_case+0x170/0x3f0
[   22.749188]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.749231]  kthread+0x328/0x630
[   22.749349]  ret_from_fork+0x10/0x20
[   22.749452] 
[   22.749495] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.749594] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.749660] Hardware name: linux,dummy-virt (DT)
[   22.749696] ==================================================================
[   22.644533] ==================================================================
[   22.645257] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   22.645257] 
[   22.647667] Invalid free of 0x00000000251c4c2f (in kfence-#90):
[   22.647773]  test_double_free+0x1bc/0x238
[   22.647838]  kunit_try_run_case+0x170/0x3f0
[   22.647884]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.647930]  kthread+0x328/0x630
[   22.647970]  ret_from_fork+0x10/0x20
[   22.648008] 
[   22.648032] kfence-#90: 0x00000000251c4c2f-0x00000000e351b751, size=32, cache=kmalloc-32
[   22.648032] 
[   22.648084] allocated by task 303 on cpu 1 at 22.644171s (0.003910s ago):
[   22.648146]  test_alloc+0x29c/0x628
[   22.648188]  test_double_free+0xd4/0x238
[   22.648227]  kunit_try_run_case+0x170/0x3f0
[   22.648269]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.648310]  kthread+0x328/0x630
[   22.648346]  ret_from_fork+0x10/0x20
[   22.648384] 
[   22.648407] freed by task 303 on cpu 1 at 22.644234s (0.004170s ago):
[   22.648469]  test_double_free+0x1ac/0x238
[   22.648509]  kunit_try_run_case+0x170/0x3f0
[   22.648549]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.648591]  kthread+0x328/0x630
[   22.648628]  ret_from_fork+0x10/0x20
[   22.648666] 
[   22.648709] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.648788] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.648826] Hardware name: linux,dummy-virt (DT)
[   22.648862] ==================================================================

[   18.314948] ==================================================================
[   18.315475] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.315475] 
[   18.315825] Invalid free of 0x(____ptrval____) (in kfence-#84):
[   18.316115]  test_double_free+0x1d3/0x260
[   18.316309]  kunit_try_run_case+0x1a5/0x480
[   18.316974]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.317716]  kthread+0x337/0x6f0
[   18.317929]  ret_from_fork+0x116/0x1d0
[   18.318086]  ret_from_fork_asm+0x1a/0x30
[   18.318527] 
[   18.318613] kfence-#84: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.318613] 
[   18.319183] allocated by task 320 on cpu 0 at 18.314647s (0.004533s ago):
[   18.319651]  test_alloc+0x364/0x10f0
[   18.319923]  test_double_free+0xdb/0x260
[   18.320203]  kunit_try_run_case+0x1a5/0x480
[   18.320578]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.320910]  kthread+0x337/0x6f0
[   18.321163]  ret_from_fork+0x116/0x1d0
[   18.321520]  ret_from_fork_asm+0x1a/0x30
[   18.321709] 
[   18.321809] freed by task 320 on cpu 0 at 18.314721s (0.007085s ago):
[   18.322104]  test_double_free+0x1e0/0x260
[   18.322606]  kunit_try_run_case+0x1a5/0x480
[   18.322810]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.323128]  kthread+0x337/0x6f0
[   18.323284]  ret_from_fork+0x116/0x1d0
[   18.323585]  ret_from_fork_asm+0x1a/0x30
[   18.323765] 
[   18.323902] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   18.324294] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.324601] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.324999] ==================================================================
[   18.418800] ==================================================================
[   18.419258] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.419258] 
[   18.419580] Invalid free of 0x(____ptrval____) (in kfence-#85):
[   18.420175]  test_double_free+0x112/0x260
[   18.420637]  kunit_try_run_case+0x1a5/0x480
[   18.420860]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.421095]  kthread+0x337/0x6f0
[   18.421283]  ret_from_fork+0x116/0x1d0
[   18.421806]  ret_from_fork_asm+0x1a/0x30
[   18.422003] 
[   18.422087] kfence-#85: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.422087] 
[   18.422460] allocated by task 322 on cpu 1 at 18.418598s (0.003860s ago):
[   18.422807]  test_alloc+0x2a6/0x10f0
[   18.423081]  test_double_free+0xdb/0x260
[   18.423253]  kunit_try_run_case+0x1a5/0x480
[   18.423801]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.424090]  kthread+0x337/0x6f0
[   18.424233]  ret_from_fork+0x116/0x1d0
[   18.424591]  ret_from_fork_asm+0x1a/0x30
[   18.424803] 
[   18.424897] freed by task 322 on cpu 1 at 18.418663s (0.006232s ago):
[   18.425189]  test_double_free+0xfa/0x260
[   18.425719]  kunit_try_run_case+0x1a5/0x480
[   18.426023]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.426256]  kthread+0x337/0x6f0
[   18.426447]  ret_from_fork+0x116/0x1d0
[   18.426616]  ret_from_fork_asm+0x1a/0x30
[   18.426808] 
[   18.426945] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   18.427391] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.427557] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.427917] ==================================================================