Hay
Date
July 1, 2025, 3:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.397881] ==================================================================
[   22.397968] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   22.397968] 
[   22.398027] Invalid free of 0x00000000e93bdb42 (in kfence-#101):
[   22.398094]  test_double_free+0x1bc/0x238
[   22.398140]  kunit_try_run_case+0x170/0x3f0
[   22.398185]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.398228]  kthread+0x328/0x630
[   22.398268]  ret_from_fork+0x10/0x20
[   22.398306] 
[   22.398330] kfence-#101: 0x00000000e93bdb42-0x0000000076e54ea9, size=32, cache=kmalloc-32
[   22.398330] 
[   22.398386] allocated by task 304 on cpu 1 at 22.397654s (0.000728s ago):
[   22.398448]  test_alloc+0x29c/0x628
[   22.398488]  test_double_free+0xd4/0x238
[   22.398528]  kunit_try_run_case+0x170/0x3f0
[   22.398586]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.398629]  kthread+0x328/0x630
[   22.398665]  ret_from_fork+0x10/0x20
[   22.398703] 
[   22.398728] freed by task 304 on cpu 1 at 22.397729s (0.000995s ago):
[   22.398791]  test_double_free+0x1ac/0x238
[   22.398832]  kunit_try_run_case+0x170/0x3f0
[   22.398872]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.398916]  kthread+0x328/0x630
[   22.398953]  ret_from_fork+0x10/0x20
[   22.398993] 
[   22.399038] CPU: 1 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.399118] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.399146] Hardware name: linux,dummy-virt (DT)
[   22.399182] ==================================================================
[   22.501898] ==================================================================
[   22.501990] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   22.501990] 
[   22.502050] Invalid free of 0x000000008f715a2d (in kfence-#102):
[   22.502105]  test_double_free+0x100/0x238
[   22.502151]  kunit_try_run_case+0x170/0x3f0
[   22.502193]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.502235]  kthread+0x328/0x630
[   22.502273]  ret_from_fork+0x10/0x20
[   22.502311] 
[   22.502334] kfence-#102: 0x000000008f715a2d-0x0000000005e2801a, size=32, cache=test
[   22.502334] 
[   22.502387] allocated by task 306 on cpu 1 at 22.501691s (0.000692s ago):
[   22.502449]  test_alloc+0x230/0x628
[   22.502488]  test_double_free+0xd4/0x238
[   22.502529]  kunit_try_run_case+0x170/0x3f0
[   22.502581]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.502627]  kthread+0x328/0x630
[   22.502661]  ret_from_fork+0x10/0x20
[   22.502700] 
[   22.502723] freed by task 306 on cpu 1 at 22.501752s (0.000967s ago):
[   22.502784]  test_double_free+0xf0/0x238
[   22.502823]  kunit_try_run_case+0x170/0x3f0
[   22.502864]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.502907]  kthread+0x328/0x630
[   22.502942]  ret_from_fork+0x10/0x20
[   22.502981] 
[   22.503025] CPU: 1 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.503102] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.503132] Hardware name: linux,dummy-virt (DT)
[   22.503167] ==================================================================

[   17.951342] ==================================================================
[   17.951891] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.951891] 
[   17.952232] Invalid free of 0x(____ptrval____) (in kfence-#81):
[   17.952530]  test_double_free+0x1d3/0x260
[   17.952768]  kunit_try_run_case+0x1a5/0x480
[   17.952923]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.953174]  kthread+0x337/0x6f0
[   17.953351]  ret_from_fork+0x116/0x1d0
[   17.953548]  ret_from_fork_asm+0x1a/0x30
[   17.953703] 
[   17.953836] kfence-#81: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.953836] 
[   17.954215] allocated by task 320 on cpu 1 at 17.951091s (0.003121s ago):
[   17.954516]  test_alloc+0x364/0x10f0
[   17.954668]  test_double_free+0xdb/0x260
[   17.954888]  kunit_try_run_case+0x1a5/0x480
[   17.955103]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.955280]  kthread+0x337/0x6f0
[   17.955429]  ret_from_fork+0x116/0x1d0
[   17.955626]  ret_from_fork_asm+0x1a/0x30
[   17.955857] 
[   17.955968] freed by task 320 on cpu 1 at 17.951145s (0.004820s ago):
[   17.956201]  test_double_free+0x1e0/0x260
[   17.956390]  kunit_try_run_case+0x1a5/0x480
[   17.956611]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.956905]  kthread+0x337/0x6f0
[   17.957091]  ret_from_fork+0x116/0x1d0
[   17.957277]  ret_from_fork_asm+0x1a/0x30
[   17.957486] 
[   17.957620] CPU: 1 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.958099] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.958290] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.958713] ==================================================================
[   18.055204] ==================================================================
[   18.055603] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.055603] 
[   18.055936] Invalid free of 0x(____ptrval____) (in kfence-#82):
[   18.056244]  test_double_free+0x112/0x260
[   18.056419]  kunit_try_run_case+0x1a5/0x480
[   18.056654]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.056869]  kthread+0x337/0x6f0
[   18.056998]  ret_from_fork+0x116/0x1d0
[   18.057184]  ret_from_fork_asm+0x1a/0x30
[   18.057393] 
[   18.057496] kfence-#82: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.057496] 
[   18.058016] allocated by task 322 on cpu 1 at 18.055039s (0.002975s ago):
[   18.058309]  test_alloc+0x2a6/0x10f0
[   18.058443]  test_double_free+0xdb/0x260
[   18.058594]  kunit_try_run_case+0x1a5/0x480
[   18.058806]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.059060]  kthread+0x337/0x6f0
[   18.059244]  ret_from_fork+0x116/0x1d0
[   18.059414]  ret_from_fork_asm+0x1a/0x30
[   18.059615] 
[   18.059730] freed by task 322 on cpu 1 at 18.055090s (0.004637s ago):
[   18.059964]  test_double_free+0xfa/0x260
[   18.060118]  kunit_try_run_case+0x1a5/0x480
[   18.060335]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.060596]  kthread+0x337/0x6f0
[   18.060773]  ret_from_fork+0x116/0x1d0
[   18.060908]  ret_from_fork_asm+0x1a/0x30
[   18.061070] 
[   18.061198] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   18.061676] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.061907] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.062254] ==================================================================