Hay
Date
July 19, 2025, 11:11 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.034742] ==================================================================
[   20.034825] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   20.034825] 
[   20.034881] Invalid free of 0x00000000546391c4 (in kfence-#90):
[   20.034931]  test_double_free+0x100/0x238
[   20.034976]  kunit_try_run_case+0x170/0x3f0
[   20.035019]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.035061]  kthread+0x328/0x630
[   20.035309]  ret_from_fork+0x10/0x20
[   20.035374] 
[   20.035399] kfence-#90: 0x00000000546391c4-0x00000000b9c59e6f, size=32, cache=test
[   20.035399] 
[   20.035477] allocated by task 306 on cpu 1 at 20.034525s (0.000921s ago):
[   20.035572]  test_alloc+0x230/0x628
[   20.035615]  test_double_free+0xd4/0x238
[   20.035672]  kunit_try_run_case+0x170/0x3f0
[   20.035738]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.035782]  kthread+0x328/0x630
[   20.035837]  ret_from_fork+0x10/0x20
[   20.035876] 
[   20.035899] freed by task 306 on cpu 1 at 20.034598s (0.001297s ago):
[   20.035959]  test_double_free+0xf0/0x238
[   20.036169]  kunit_try_run_case+0x170/0x3f0
[   20.036212]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.036258]  kthread+0x328/0x630
[   20.036294]  ret_from_fork+0x10/0x20
[   20.036363] 
[   20.036406] CPU: 1 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.036485] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.036513] Hardware name: linux,dummy-virt (DT)
[   20.036558] ==================================================================
[   19.931180] ==================================================================
[   19.931292] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   19.931292] 
[   19.931419] Invalid free of 0x00000000df401f08 (in kfence-#89):
[   19.931493]  test_double_free+0x1bc/0x238
[   19.931570]  kunit_try_run_case+0x170/0x3f0
[   19.931627]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.931671]  kthread+0x328/0x630
[   19.931726]  ret_from_fork+0x10/0x20
[   19.931768] 
[   19.931792] kfence-#89: 0x00000000df401f08-0x00000000d144a7aa, size=32, cache=kmalloc-32
[   19.931792] 
[   19.932059] allocated by task 304 on cpu 1 at 19.930829s (0.001130s ago):
[   19.932201]  test_alloc+0x29c/0x628
[   19.932282]  test_double_free+0xd4/0x238
[   19.932394]  kunit_try_run_case+0x170/0x3f0
[   19.932462]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.932510]  kthread+0x328/0x630
[   19.932635]  ret_from_fork+0x10/0x20
[   19.932722] 
[   19.932786] freed by task 304 on cpu 1 at 19.930899s (0.001855s ago):
[   19.932853]  test_double_free+0x1ac/0x238
[   19.932896]  kunit_try_run_case+0x170/0x3f0
[   19.932939]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.932982]  kthread+0x328/0x630
[   19.933019]  ret_from_fork+0x10/0x20
[   19.933189] 
[   19.933241] CPU: 1 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   19.933322] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.933351] Hardware name: linux,dummy-virt (DT)
[   19.933502] ==================================================================

[   17.749680] ==================================================================
[   17.750111] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.750111] 
[   17.750459] Invalid free of 0x(____ptrval____) (in kfence-#73):
[   17.750793]  test_double_free+0x1d3/0x260
[   17.750965]  kunit_try_run_case+0x1a5/0x480
[   17.751152]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.751409]  kthread+0x337/0x6f0
[   17.751546]  ret_from_fork+0x116/0x1d0
[   17.751783]  ret_from_fork_asm+0x1a/0x30
[   17.751984] 
[   17.752082] kfence-#73: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.752082] 
[   17.752485] allocated by task 321 on cpu 1 at 17.749408s (0.003076s ago):
[   17.752808]  test_alloc+0x364/0x10f0
[   17.752999]  test_double_free+0xdb/0x260
[   17.753193]  kunit_try_run_case+0x1a5/0x480
[   17.753380]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.753605]  kthread+0x337/0x6f0
[   17.753769]  ret_from_fork+0x116/0x1d0
[   17.753957]  ret_from_fork_asm+0x1a/0x30
[   17.754148] 
[   17.754252] freed by task 321 on cpu 1 at 17.749480s (0.004769s ago):
[   17.754542]  test_double_free+0x1e0/0x260
[   17.754711]  kunit_try_run_case+0x1a5/0x480
[   17.754920]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.755137]  kthread+0x337/0x6f0
[   17.755290]  ret_from_fork+0x116/0x1d0
[   17.755474]  ret_from_fork_asm+0x1a/0x30
[   17.755654] 
[   17.755775] CPU: 1 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.756197] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.756376] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.756733] ==================================================================
[   17.853589] ==================================================================
[   17.853995] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.853995] 
[   17.854380] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   17.854967]  test_double_free+0x112/0x260
[   17.855475]  kunit_try_run_case+0x1a5/0x480
[   17.855717]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.855964]  kthread+0x337/0x6f0
[   17.856134]  ret_from_fork+0x116/0x1d0
[   17.856458]  ret_from_fork_asm+0x1a/0x30
[   17.856834] 
[   17.856924] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.856924] 
[   17.857472] allocated by task 323 on cpu 0 at 17.853391s (0.004078s ago):
[   17.857953]  test_alloc+0x2a6/0x10f0
[   17.858155]  test_double_free+0xdb/0x260
[   17.858541]  kunit_try_run_case+0x1a5/0x480
[   17.858834]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.859165]  kthread+0x337/0x6f0
[   17.859359]  ret_from_fork+0x116/0x1d0
[   17.859667]  ret_from_fork_asm+0x1a/0x30
[   17.859887] 
[   17.860128] freed by task 323 on cpu 0 at 17.853453s (0.006670s ago):
[   17.860560]  test_double_free+0xfa/0x260
[   17.860771]  kunit_try_run_case+0x1a5/0x480
[   17.861076]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.861417]  kthread+0x337/0x6f0
[   17.861620]  ret_from_fork+0x116/0x1d0
[   17.861918]  ret_from_fork_asm+0x1a/0x30
[   17.862134] 
[   17.862369] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.862834] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.863021] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.863660] ==================================================================