Hay
Date
June 20, 2025, 12:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   32.371356] ==================================================================
[   32.371600] BUG: KFENCE: invalid free in kfree_sensitive+0x80/0xb0
[   32.371600] 
[   32.371773] Invalid free of 0x000000004423a747 (in kfence-#94):
[   32.371885]  kfree_sensitive+0x80/0xb0
[   32.372069]  kmalloc_double_kzfree+0x168/0x308
[   32.372171]  kunit_try_run_case+0x170/0x3f0
[   32.372708]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.373036]  kthread+0x328/0x630
[   32.373131]  ret_from_fork+0x10/0x20
[   32.373222] 
[   32.373576] kfence-#94: 0x000000004423a747-0x0000000035fd8b96, size=16, cache=kmalloc-16
[   32.373576] 
[   32.373826] allocated by task 203 on cpu 1 at 32.362221s (0.011534s ago):
[   32.374070]  kmalloc_double_kzfree+0xb8/0x308
[   32.374194]  kunit_try_run_case+0x170/0x3f0
[   32.374294]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.374406]  kthread+0x328/0x630
[   32.374961]  ret_from_fork+0x10/0x20
[   32.375103] 
[   32.375209] freed by task 203 on cpu 1 at 32.362433s (0.012765s ago):
[   32.375468]  kfree_sensitive+0x80/0xb0
[   32.375568]  kmalloc_double_kzfree+0x11c/0x308
[   32.375673]  kunit_try_run_case+0x170/0x3f0
[   32.376176]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.376305]  kthread+0x328/0x630
[   32.376471]  ret_from_fork+0x10/0x20
[   32.376661] 
[   32.376868] CPU: 1 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT 
[   32.377091] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.377140] Hardware name: linux,dummy-virt (DT)
[   32.377201] ==================================================================

[   26.013131] ==================================================================
[   26.013684] BUG: KFENCE: invalid free in kfree_sensitive+0x67/0x90
[   26.013684] 
[   26.014263] Invalid free of 0x(____ptrval____) (in kfence-#68):
[   26.014723]  kfree_sensitive+0x67/0x90
[   26.015061]  kmalloc_double_kzfree+0x19c/0x350
[   26.015585]  kunit_try_run_case+0x1a5/0x480
[   26.015888]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.016323]  kthread+0x337/0x6f0
[   26.016533]  ret_from_fork+0x116/0x1d0
[   26.016717]  ret_from_fork_asm+0x1a/0x30
[   26.016903] 
[   26.017091] kfence-#68: 0x(____ptrval____)-0x(____ptrval____), size=16, cache=kmalloc-16
[   26.017091] 
[   26.017895] allocated by task 221 on cpu 0 at 25.997099s (0.020791s ago):
[   26.018891]  kmalloc_double_kzfree+0xa9/0x350
[   26.019303]  kunit_try_run_case+0x1a5/0x480
[   26.019682]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.020101]  kthread+0x337/0x6f0
[   26.020918]  ret_from_fork+0x116/0x1d0
[   26.021351]  ret_from_fork_asm+0x1a/0x30
[   26.021608] 
[   26.021712] freed by task 221 on cpu 0 at 25.997213s (0.024494s ago):
[   26.021975]  kfree_sensitive+0x67/0x90
[   26.022161]  kmalloc_double_kzfree+0x12b/0x350
[   26.022535]  kunit_try_run_case+0x1a5/0x480
[   26.022889]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.023347]  kthread+0x337/0x6f0
[   26.023673]  ret_from_fork+0x116/0x1d0
[   26.023857]  ret_from_fork_asm+0x1a/0x30
[   26.024041] 
[   26.024189] CPU: 0 UID: 0 PID: 221 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) 
[   26.025293] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.025679] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.026278] ==================================================================