Hay
Date
July 12, 2025, 11:09 a.m.

Environment
qemu-x86_64

[   12.979596] ==================================================================
[   12.980062] BUG: KFENCE: invalid free in kfree_sensitive+0x67/0x90
[   12.980062] 
[   12.980436] Invalid free of 0x(____ptrval____) (in kfence-#40):
[   12.980879]  kfree_sensitive+0x67/0x90
[   12.981047]  kmalloc_double_kzfree+0x19c/0x350
[   12.981258]  kunit_try_run_case+0x1a5/0x480
[   12.981454]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.981714]  kthread+0x337/0x6f0
[   12.981934]  ret_from_fork+0x116/0x1d0
[   12.982126]  ret_from_fork_asm+0x1a/0x30
[   12.982288] 
[   12.982388] kfence-#40: 0x(____ptrval____)-0x(____ptrval____), size=16, cache=kmalloc-16
[   12.982388] 
[   12.982710] allocated by task 210 on cpu 1 at 12.969119s (0.013590s ago):
[   12.983210]  kmalloc_double_kzfree+0xa9/0x350
[   12.983449]  kunit_try_run_case+0x1a5/0x480
[   12.983696]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.983906]  kthread+0x337/0x6f0
[   12.984028]  ret_from_fork+0x116/0x1d0
[   12.984158]  ret_from_fork_asm+0x1a/0x30
[   12.984353] 
[   12.984445] freed by task 210 on cpu 1 at 12.969196s (0.015247s ago):
[   12.984979]  kfree_sensitive+0x67/0x90
[   12.985184]  kmalloc_double_kzfree+0x12b/0x350
[   12.985365]  kunit_try_run_case+0x1a5/0x480
[   12.985572]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.985912]  kthread+0x337/0x6f0
[   12.986081]  ret_from_fork+0x116/0x1d0
[   12.986224]  ret_from_fork_asm+0x1a/0x30
[   12.986369] 
[   12.986484] CPU: 1 UID: 0 PID: 210 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.987045] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.987233] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.987552] ==================================================================