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

Environment
qemu-arm64
qemu-x86_64

[   21.435644] ==================================================================
[   21.435937] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   21.435937] 
[   21.436010] Invalid free of 0x000000009cdd7bc4 (in kfence-#97):
[   21.436063]  test_invalid_addr_free+0xec/0x238
[   21.436333]  kunit_try_run_case+0x170/0x3f0
[   21.436445]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.436537]  kthread+0x328/0x630
[   21.436577]  ret_from_fork+0x10/0x20
[   21.436622] 
[   21.436693] kfence-#97: 0x000000006287950d-0x000000007e5b6525, size=32, cache=test
[   21.436693] 
[   21.436786] allocated by task 310 on cpu 1 at 21.435500s (0.001276s ago):
[   21.436862]  test_alloc+0x230/0x628
[   21.436902]  test_invalid_addr_free+0xd4/0x238
[   21.436943]  kunit_try_run_case+0x170/0x3f0
[   21.436981]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.437025]  kthread+0x328/0x630
[   21.437061]  ret_from_fork+0x10/0x20
[   21.437102] 
[   21.437146] CPU: 1 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.437227] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.437254] Hardware name: linux,dummy-virt (DT)
[   21.437288] ==================================================================
[   21.331765] ==================================================================
[   21.331889] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   21.331889] 
[   21.331951] Invalid free of 0x00000000c78ff793 (in kfence-#96):
[   21.332029]  test_invalid_addr_free+0x1ac/0x238
[   21.332124]  kunit_try_run_case+0x170/0x3f0
[   21.332167]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.332251]  kthread+0x328/0x630
[   21.332329]  ret_from_fork+0x10/0x20
[   21.332395] 
[   21.332423] kfence-#96: 0x000000007660db41-0x000000001cd4eaab, size=32, cache=kmalloc-32
[   21.332423] 
[   21.332535] allocated by task 308 on cpu 1 at 21.331429s (0.001044s ago):
[   21.332598]  test_alloc+0x29c/0x628
[   21.332638]  test_invalid_addr_free+0xd4/0x238
[   21.332679]  kunit_try_run_case+0x170/0x3f0
[   21.332718]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.332760]  kthread+0x328/0x630
[   21.332921]  ret_from_fork+0x10/0x20
[   21.333007] 
[   21.333084] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.333195] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.333409] Hardware name: linux,dummy-virt (DT)
[   21.333455] ==================================================================

[   19.103428] ==================================================================
[   19.103902] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   19.103902] 
[   19.104265] Invalid free of 0x(____ptrval____) (in kfence-#82):
[   19.104548]  test_invalid_addr_free+0x1e1/0x260
[   19.104740]  kunit_try_run_case+0x1a5/0x480
[   19.105527]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.105901]  kthread+0x337/0x6f0
[   19.106196]  ret_from_fork+0x116/0x1d0
[   19.106357]  ret_from_fork_asm+0x1a/0x30
[   19.106565] 
[   19.106656] kfence-#82: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   19.106656] 
[   19.107051] allocated by task 324 on cpu 0 at 19.103289s (0.003760s ago):
[   19.107370]  test_alloc+0x364/0x10f0
[   19.107502]  test_invalid_addr_free+0xdb/0x260
[   19.107719]  kunit_try_run_case+0x1a5/0x480
[   19.107891]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.108139]  kthread+0x337/0x6f0
[   19.108308]  ret_from_fork+0x116/0x1d0
[   19.108441]  ret_from_fork_asm+0x1a/0x30
[   19.108644] 
[   19.108758] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.109219] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.109382] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.109668] ==================================================================
[   19.207474] ==================================================================
[   19.207935] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   19.207935] 
[   19.208273] Invalid free of 0x(____ptrval____) (in kfence-#83):
[   19.208572]  test_invalid_addr_free+0xfb/0x260
[   19.208936]  kunit_try_run_case+0x1a5/0x480
[   19.209110]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.209363]  kthread+0x337/0x6f0
[   19.209537]  ret_from_fork+0x116/0x1d0
[   19.209673]  ret_from_fork_asm+0x1a/0x30
[   19.209993] 
[   19.210089] kfence-#83: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.210089] 
[   19.210448] allocated by task 326 on cpu 0 at 19.207360s (0.003086s ago):
[   19.210722]  test_alloc+0x2a6/0x10f0
[   19.210889]  test_invalid_addr_free+0xdb/0x260
[   19.211090]  kunit_try_run_case+0x1a5/0x480
[   19.211238]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.211471]  kthread+0x337/0x6f0
[   19.211642]  ret_from_fork+0x116/0x1d0
[   19.211824]  ret_from_fork_asm+0x1a/0x30
[   19.212042] 
[   19.212162] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   19.212584] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.212761] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.213102] ==================================================================