Hay
Date
June 17, 2025, 6:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.242606] ==================================================================
[   22.242693] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.242693] 
[   22.242756] Invalid free of 0x00000000bfb720bb (in kfence-#96):
[   22.242811]  test_invalid_addr_free+0xec/0x238
[   22.242862]  kunit_try_run_case+0x170/0x3f0
[   22.242905]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.242965]  kthread+0x328/0x630
[   22.243007]  ret_from_fork+0x10/0x20
[   22.243047] 
[   22.243071] kfence-#96: 0x00000000c3afe16e-0x000000001740f0f3, size=32, cache=test
[   22.243071] 
[   22.243125] allocated by task 318 on cpu 1 at 22.242471s (0.000650s ago):
[   22.243190]  test_alloc+0x230/0x628
[   22.243232]  test_invalid_addr_free+0xd4/0x238
[   22.243273]  kunit_try_run_case+0x170/0x3f0
[   22.243314]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.243357]  kthread+0x328/0x630
[   22.243392]  ret_from_fork+0x10/0x20
[   22.243432] 
[   22.243478] CPU: 1 UID: 0 PID: 318 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT 
[   22.243561] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.243590] Hardware name: linux,dummy-virt (DT)
[   22.243624] ==================================================================
[   22.138611] ==================================================================
[   22.138707] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.138707] 
[   22.138773] Invalid free of 0x000000000dc54328 (in kfence-#95):
[   22.138829]  test_invalid_addr_free+0x1ac/0x238
[   22.138880]  kunit_try_run_case+0x170/0x3f0
[   22.138942]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.138988]  kthread+0x328/0x630
[   22.139030]  ret_from_fork+0x10/0x20
[   22.139073] 
[   22.139098] kfence-#95: 0x00000000acc7e59e-0x00000000f9faf999, size=32, cache=kmalloc-32
[   22.139098] 
[   22.139156] allocated by task 316 on cpu 1 at 22.138454s (0.000697s ago):
[   22.139222]  test_alloc+0x29c/0x628
[   22.139266]  test_invalid_addr_free+0xd4/0x238
[   22.139309]  kunit_try_run_case+0x170/0x3f0
[   22.139350]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.139393]  kthread+0x328/0x630
[   22.139430]  ret_from_fork+0x10/0x20
[   22.139470] 
[   22.139514] CPU: 1 UID: 0 PID: 316 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT 
[   22.139600] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.139630] Hardware name: linux,dummy-virt (DT)
[   22.139664] ==================================================================

[   27.524033] ==================================================================
[   27.524749] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   27.524749] 
[   27.525401] Invalid free of 0x(____ptrval____) (in kfence-#118):
[   27.525920]  test_invalid_addr_free+0xfb/0x260
[   27.526270]  kunit_try_run_case+0x1a5/0x480
[   27.526613]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.527154]  kthread+0x337/0x6f0
[   27.527490]  ret_from_fork+0x116/0x1d0
[   27.527817]  ret_from_fork_asm+0x1a/0x30
[   27.528259] 
[   27.528475] kfence-#118: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   27.528475] 
[   27.529133] allocated by task 336 on cpu 1 at 27.523853s (0.005275s ago):
[   27.529812]  test_alloc+0x2a6/0x10f0
[   27.530144]  test_invalid_addr_free+0xdb/0x260
[   27.530532]  kunit_try_run_case+0x1a5/0x480
[   27.530959]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.531425]  kthread+0x337/0x6f0
[   27.531738]  ret_from_fork+0x116/0x1d0
[   27.532119]  ret_from_fork_asm+0x1a/0x30
[   27.532682] 
[   27.532937] CPU: 1 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) 
[   27.533921] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.534246] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.534874] ==================================================================
[   27.420013] ==================================================================
[   27.420549] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   27.420549] 
[   27.421261] Invalid free of 0x(____ptrval____) (in kfence-#117):
[   27.421936]  test_invalid_addr_free+0x1e1/0x260
[   27.422821]  kunit_try_run_case+0x1a5/0x480
[   27.423155]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.423655]  kthread+0x337/0x6f0
[   27.424153]  ret_from_fork+0x116/0x1d0
[   27.424647]  ret_from_fork_asm+0x1a/0x30
[   27.425070] 
[   27.425264] kfence-#117: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   27.425264] 
[   27.426074] allocated by task 334 on cpu 0 at 27.419785s (0.006283s ago):
[   27.426752]  test_alloc+0x364/0x10f0
[   27.427213]  test_invalid_addr_free+0xdb/0x260
[   27.427630]  kunit_try_run_case+0x1a5/0x480
[   27.427991]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.428468]  kthread+0x337/0x6f0
[   27.428983]  ret_from_fork+0x116/0x1d0
[   27.429390]  ret_from_fork_asm+0x1a/0x30
[   27.429796] 
[   27.430069] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) 
[   27.431171] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.431493] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.432114] ==================================================================