Hay
Date
July 5, 2025, 5:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.048549] ==================================================================
[   23.048668] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   23.048668] 
[   23.048734] Invalid free of 0x00000000d0e19250 (in kfence-#95):
[   23.048823]  test_double_free+0x1bc/0x238
[   23.048883]  kunit_try_run_case+0x170/0x3f0
[   23.048929]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.048971]  kthread+0x328/0x630
[   23.049010]  ret_from_fork+0x10/0x20
[   23.049077] 
[   23.049105] kfence-#95: 0x00000000d0e19250-0x000000005dec63b7, size=32, cache=kmalloc-32
[   23.049105] 
[   23.049158] allocated by task 303 on cpu 0 at 23.047969s (0.001185s ago):
[   23.049224]  test_alloc+0x29c/0x628
[   23.049265]  test_double_free+0xd4/0x238
[   23.049323]  kunit_try_run_case+0x170/0x3f0
[   23.049369]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.049431]  kthread+0x328/0x630
[   23.049487]  ret_from_fork+0x10/0x20
[   23.049544] 
[   23.049603] freed by task 303 on cpu 0 at 23.048191s (0.001378s ago):
[   23.049667]  test_double_free+0x1ac/0x238
[   23.049707]  kunit_try_run_case+0x170/0x3f0
[   23.049746]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.049790]  kthread+0x328/0x630
[   23.049824]  ret_from_fork+0x10/0x20
[   23.050248] 
[   23.050779] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.050907] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.050937] Hardware name: linux,dummy-virt (DT)
[   23.050975] ==================================================================
[   23.157574] ==================================================================
[   23.157693] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   23.157693] 
[   23.157754] Invalid free of 0x00000000ddd58e32 (in kfence-#96):
[   23.157832]  test_double_free+0x100/0x238
[   23.158176]  kunit_try_run_case+0x170/0x3f0
[   23.158227]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.158571]  kthread+0x328/0x630
[   23.158674]  ret_from_fork+0x10/0x20
[   23.158794] 
[   23.158942] kfence-#96: 0x00000000ddd58e32-0x00000000698c3d6d, size=32, cache=test
[   23.158942] 
[   23.159062] allocated by task 305 on cpu 0 at 23.157307s (0.001751s ago):
[   23.159125]  test_alloc+0x230/0x628
[   23.159167]  test_double_free+0xd4/0x238
[   23.159208]  kunit_try_run_case+0x170/0x3f0
[   23.159538]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.159918]  kthread+0x328/0x630
[   23.160022]  ret_from_fork+0x10/0x20
[   23.160121] 
[   23.160444] freed by task 305 on cpu 0 at 23.157375s (0.003055s ago):
[   23.160887]  test_double_free+0xf0/0x238
[   23.161035]  kunit_try_run_case+0x170/0x3f0
[   23.161106]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.161173]  kthread+0x328/0x630
[   23.161320]  ret_from_fork+0x10/0x20
[   23.161408] 
[   23.161547] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.161628] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.162046] Hardware name: linux,dummy-virt (DT)
[   23.162137] ==================================================================

[   17.658742] ==================================================================
[   17.659250] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.659250] 
[   17.659609] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   17.659982]  test_double_free+0x1d3/0x260
[   17.660146]  kunit_try_run_case+0x1a5/0x480
[   17.660302]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.660574]  kthread+0x337/0x6f0
[   17.660777]  ret_from_fork+0x116/0x1d0
[   17.660996]  ret_from_fork_asm+0x1a/0x30
[   17.661487] 
[   17.662074] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.662074] 
[   17.662503] allocated by task 322 on cpu 1 at 17.658479s (0.004022s ago):
[   17.663090]  test_alloc+0x364/0x10f0
[   17.663288]  test_double_free+0xdb/0x260
[   17.663488]  kunit_try_run_case+0x1a5/0x480
[   17.663957]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.664214]  kthread+0x337/0x6f0
[   17.664492]  ret_from_fork+0x116/0x1d0
[   17.664834]  ret_from_fork_asm+0x1a/0x30
[   17.665037] 
[   17.665123] freed by task 322 on cpu 1 at 17.658547s (0.006573s ago):
[   17.665637]  test_double_free+0x1e0/0x260
[   17.665870]  kunit_try_run_case+0x1a5/0x480
[   17.666205]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.666556]  kthread+0x337/0x6f0
[   17.666863]  ret_from_fork+0x116/0x1d0
[   17.667133]  ret_from_fork_asm+0x1a/0x30
[   17.667333] 
[   17.667658] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.668144] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.668337] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.668898] ==================================================================
[   17.762697] ==================================================================
[   17.763088] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.763088] 
[   17.763437] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   17.763786]  test_double_free+0x112/0x260
[   17.763949]  kunit_try_run_case+0x1a5/0x480
[   17.764197]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.764565]  kthread+0x337/0x6f0
[   17.764694]  ret_from_fork+0x116/0x1d0
[   17.764934]  ret_from_fork_asm+0x1a/0x30
[   17.765143] 
[   17.765248] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.765248] 
[   17.765574] allocated by task 324 on cpu 0 at 17.762552s (0.003019s ago):
[   17.765859]  test_alloc+0x2a6/0x10f0
[   17.766059]  test_double_free+0xdb/0x260
[   17.766261]  kunit_try_run_case+0x1a5/0x480
[   17.766488]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.766808]  kthread+0x337/0x6f0
[   17.766974]  ret_from_fork+0x116/0x1d0
[   17.767140]  ret_from_fork_asm+0x1a/0x30
[   17.767284] 
[   17.767360] freed by task 324 on cpu 0 at 17.762593s (0.004765s ago):
[   17.767705]  test_double_free+0xfa/0x260
[   17.767929]  kunit_try_run_case+0x1a5/0x480
[   17.768145]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.768325]  kthread+0x337/0x6f0
[   17.768475]  ret_from_fork+0x116/0x1d0
[   17.768670]  ret_from_fork_asm+0x1a/0x30
[   17.768892] 
[   17.768993] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.769894] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.770093] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.770467] ==================================================================