Hay
Date
May 15, 2025, 10:38 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.455415] ==================================================================
[   22.455495] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   22.455495] 
[   22.455555] Invalid free of 0x000000005fd9151c (in kfence-#92):
[   22.455741]  test_double_free+0x100/0x238
[   22.455803]  kunit_try_run_case+0x170/0x3f0
[   22.455964]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.456052]  kthread+0x328/0x630
[   22.456117]  ret_from_fork+0x10/0x20
[   22.456244] 
[   22.456292] kfence-#92: 0x000000005fd9151c-0x00000000fd9f3de0, size=32, cache=test
[   22.456292] 
[   22.456346] allocated by task 305 on cpu 0 at 22.454857s (0.001485s ago):
[   22.456648]  test_alloc+0x230/0x628
[   22.456708]  test_double_free+0xd4/0x238
[   22.456881]  kunit_try_run_case+0x170/0x3f0
[   22.456934]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.456978]  kthread+0x328/0x630
[   22.457046]  ret_from_fork+0x10/0x20
[   22.457089] 
[   22.457235] freed by task 305 on cpu 0 at 22.455048s (0.002158s ago):
[   22.457539]  test_double_free+0xf0/0x238
[   22.457679]  kunit_try_run_case+0x170/0x3f0
[   22.457829]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.458199]  kthread+0x328/0x630
[   22.458486]  ret_from_fork+0x10/0x20
[   22.458535] 
[   22.459103] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   22.459354] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.459612] Hardware name: linux,dummy-virt (DT)
[   22.459904] ==================================================================
[   22.353584] ==================================================================
[   22.353684] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   22.353684] 
[   22.353757] Invalid free of 0x00000000490fc580 (in kfence-#91):
[   22.354089]  test_double_free+0x1bc/0x238
[   22.354310]  kunit_try_run_case+0x170/0x3f0
[   22.354451]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.354546]  kthread+0x328/0x630
[   22.354595]  ret_from_fork+0x10/0x20
[   22.354863] 
[   22.355430] kfence-#91: 0x00000000490fc580-0x0000000043916d6b, size=32, cache=kmalloc-32
[   22.355430] 
[   22.355985] allocated by task 303 on cpu 0 at 22.352883s (0.003096s ago):
[   22.356517]  test_alloc+0x29c/0x628
[   22.356598]  test_double_free+0xd4/0x238
[   22.356661]  kunit_try_run_case+0x170/0x3f0
[   22.356709]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.356757]  kthread+0x328/0x630
[   22.356808]  ret_from_fork+0x10/0x20
[   22.356857] 
[   22.356882] freed by task 303 on cpu 0 at 22.352961s (0.003918s ago):
[   22.356958]  test_double_free+0x1ac/0x238
[   22.357004]  kunit_try_run_case+0x170/0x3f0
[   22.357055]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.357106]  kthread+0x328/0x630
[   22.357165]  ret_from_fork+0x10/0x20
[   22.357205] 
[   22.357259] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   22.357342] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.357386] Hardware name: linux,dummy-virt (DT)
[   22.357435] ==================================================================


[   19.667262] ==================================================================
[   19.667605] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   19.667605] 
[   19.667802] Invalid free of 0x(____ptrval____) (in kfence-#90):
[   19.667922]  test_double_free+0x112/0x260
[   19.668091]  kunit_try_run_case+0x1a5/0x480
[   19.668353]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.668658]  kthread+0x337/0x6f0
[   19.668848]  ret_from_fork+0x116/0x1d0
[   19.669059]  ret_from_fork_asm+0x1a/0x30
[   19.669359] 
[   19.669455] kfence-#90: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.669455] 
[   19.669691] allocated by task 323 on cpu 1 at 19.667063s (0.002625s ago):
[   19.669881]  test_alloc+0x2a6/0x10f0
[   19.669971]  test_double_free+0xdb/0x260
[   19.670061]  kunit_try_run_case+0x1a5/0x480
[   19.670150]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.670266]  kthread+0x337/0x6f0
[   19.670363]  ret_from_fork+0x116/0x1d0
[   19.670456]  ret_from_fork_asm+0x1a/0x30
[   19.670549] 
[   19.670606] freed by task 323 on cpu 1 at 19.667114s (0.003488s ago):
[   19.670738]  test_double_free+0xfa/0x260
[   19.670829]  kunit_try_run_case+0x1a5/0x480
[   19.670920]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.671192]  kthread+0x337/0x6f0
[   19.671364]  ret_from_fork+0x116/0x1d0
[   19.671544]  ret_from_fork_asm+0x1a/0x30
[   19.671775] 
[   19.671905] CPU: 1 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) 
[   19.672402] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.672592] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.673029] ==================================================================
[   19.563424] ==================================================================
[   19.563930] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   19.563930] 
[   19.564129] Invalid free of 0x(____ptrval____) (in kfence-#89):
[   19.564415]  test_double_free+0x1d3/0x260
[   19.564646]  kunit_try_run_case+0x1a5/0x480
[   19.564798]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.564921]  kthread+0x337/0x6f0
[   19.565012]  ret_from_fork+0x116/0x1d0
[   19.565195]  ret_from_fork_asm+0x1a/0x30
[   19.566272] 
[   19.566376] kfence-#89: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   19.566376] 
[   19.566792] allocated by task 321 on cpu 0 at 19.563068s (0.003717s ago):
[   19.567117]  test_alloc+0x364/0x10f0
[   19.567338]  test_double_free+0xdb/0x260
[   19.567496]  kunit_try_run_case+0x1a5/0x480
[   19.567673]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.567890]  kthread+0x337/0x6f0
[   19.568065]  ret_from_fork+0x116/0x1d0
[   19.568215]  ret_from_fork_asm+0x1a/0x30
[   19.568401] 
[   19.568489] freed by task 321 on cpu 0 at 19.563167s (0.005318s ago):
[   19.568740]  test_double_free+0x1e0/0x260
[   19.568961]  kunit_try_run_case+0x1a5/0x480
[   19.569195]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.569364]  kthread+0x337/0x6f0
[   19.569543]  ret_from_fork+0x116/0x1d0
[   19.569728]  ret_from_fork_asm+0x1a/0x30
[   19.569928] 
[   19.570120] CPU: 0 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) 
[   19.570500] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.570735] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.571074] ==================================================================