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

Environment
qemu-arm64
qemu-x86_64

[   26.042340] ==================================================================
[   26.042501] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   26.042501] 
[   26.043334] Invalid free of 0x000000007859d322 (in kfence-#137):
[   26.043551]  test_double_free+0x100/0x238
[   26.044035]  kunit_try_run_case+0x170/0x3f0
[   26.044320]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.044933]  kthread+0x328/0x630
[   26.045494]  ret_from_fork+0x10/0x20
[   26.045768] 
[   26.045912] kfence-#137: 0x000000007859d322-0x00000000ad6cd0cf, size=32, cache=test
[   26.045912] 
[   26.046296] allocated by task 306 on cpu 1 at 26.041507s (0.004777s ago):
[   26.046552]  test_alloc+0x230/0x628
[   26.046670]  test_double_free+0xd4/0x238
[   26.047061]  kunit_try_run_case+0x170/0x3f0
[   26.047346]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.047720]  kthread+0x328/0x630
[   26.048006]  ret_from_fork+0x10/0x20
[   26.048435] 
[   26.048533] freed by task 306 on cpu 1 at 26.041625s (0.006898s ago):
[   26.048791]  test_double_free+0xf0/0x238
[   26.048895]  kunit_try_run_case+0x170/0x3f0
[   26.049434]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.049554]  kthread+0x328/0x630
[   26.050180]  ret_from_fork+0x10/0x20
[   26.050301] 
[   26.050613] CPU: 1 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   26.051488] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.051578] Hardware name: linux,dummy-virt (DT)
[   26.051661] ==================================================================
[   25.937048] ==================================================================
[   25.937283] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   25.937283] 
[   25.937441] Invalid free of 0x0000000094324d8c (in kfence-#136):
[   25.937676]  test_double_free+0x1bc/0x238
[   25.938233]  kunit_try_run_case+0x170/0x3f0
[   25.938497]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.938661]  kthread+0x328/0x630
[   25.938787]  ret_from_fork+0x10/0x20
[   25.938896] 
[   25.938959] kfence-#136: 0x0000000094324d8c-0x000000000a15d6bc, size=32, cache=kmalloc-32
[   25.938959] 
[   25.939093] allocated by task 304 on cpu 1 at 25.935798s (0.003279s ago):
[   25.939330]  test_alloc+0x29c/0x628
[   25.939611]  test_double_free+0xd4/0x238
[   25.939817]  kunit_try_run_case+0x170/0x3f0
[   25.939940]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.940084]  kthread+0x328/0x630
[   25.940218]  ret_from_fork+0x10/0x20
[   25.940338] 
[   25.940397] freed by task 304 on cpu 1 at 25.936341s (0.004047s ago):
[   25.940605]  test_double_free+0x1ac/0x238
[   25.940702]  kunit_try_run_case+0x170/0x3f0
[   25.940815]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.940924]  kthread+0x328/0x630
[   25.941006]  ret_from_fork+0x10/0x20
[   25.941361] 
[   25.941483] CPU: 1 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   25.941719] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.941791] Hardware name: linux,dummy-virt (DT)
[   25.942103] ==================================================================

[   18.737091] ==================================================================
[   18.737479] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.737479] 
[   18.737766] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   18.738088]  test_double_free+0x112/0x260
[   18.738276]  kunit_try_run_case+0x1a5/0x480
[   18.738473]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.738693]  kthread+0x337/0x6f0
[   18.738884]  ret_from_fork+0x116/0x1d0
[   18.739074]  ret_from_fork_asm+0x1a/0x30
[   18.739218] 
[   18.739301] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.739301] 
[   18.739646] allocated by task 323 on cpu 0 at 18.736920s (0.002723s ago):
[   18.739946]  test_alloc+0x2a6/0x10f0
[   18.740136]  test_double_free+0xdb/0x260
[   18.740334]  kunit_try_run_case+0x1a5/0x480
[   18.740549]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.740731]  kthread+0x337/0x6f0
[   18.740862]  ret_from_fork+0x116/0x1d0
[   18.741040]  ret_from_fork_asm+0x1a/0x30
[   18.741237] 
[   18.741366] freed by task 323 on cpu 0 at 18.736971s (0.004393s ago):
[   18.741675]  test_double_free+0xfa/0x260
[   18.741833]  kunit_try_run_case+0x1a5/0x480
[   18.741984]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.742243]  kthread+0x337/0x6f0
[   18.742420]  ret_from_fork+0x116/0x1d0
[   18.742610]  ret_from_fork_asm+0x1a/0x30
[   18.742805] 
[   18.742900] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.743311] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.743493] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.743811] ==================================================================
[   18.633182] ==================================================================
[   18.633585] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.633585] 
[   18.633972] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   18.634881]  test_double_free+0x1d3/0x260
[   18.635237]  kunit_try_run_case+0x1a5/0x480
[   18.635545]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.635842]  kthread+0x337/0x6f0
[   18.636158]  ret_from_fork+0x116/0x1d0
[   18.636427]  ret_from_fork_asm+0x1a/0x30
[   18.636729] 
[   18.636869] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.636869] 
[   18.637416] allocated by task 321 on cpu 1 at 18.633002s (0.004412s ago):
[   18.637882]  test_alloc+0x364/0x10f0
[   18.638060]  test_double_free+0xdb/0x260
[   18.638248]  kunit_try_run_case+0x1a5/0x480
[   18.638450]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.638987]  kthread+0x337/0x6f0
[   18.639161]  ret_from_fork+0x116/0x1d0
[   18.639330]  ret_from_fork_asm+0x1a/0x30
[   18.639662] 
[   18.639779] freed by task 321 on cpu 1 at 18.633068s (0.006708s ago):
[   18.640207]  test_double_free+0x1e0/0x260
[   18.640480]  kunit_try_run_case+0x1a5/0x480
[   18.640782]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.641012]  kthread+0x337/0x6f0
[   18.641264]  ret_from_fork+0x116/0x1d0
[   18.641623]  ret_from_fork_asm+0x1a/0x30
[   18.641877] 
[   18.642131] CPU: 1 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.642671] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.642898] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.643396] ==================================================================