Hay
Date
June 3, 2025, 7:38 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.041575] ==================================================================
[   23.041664] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   23.041664] 
[   23.042038] Invalid free of 0x000000004ac2cf51 (in kfence-#92):
[   23.042150]  test_double_free+0x100/0x238
[   23.042208]  kunit_try_run_case+0x170/0x3f0
[   23.042255]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.042301]  kthread+0x328/0x630
[   23.042502]  ret_from_fork+0x10/0x20
[   23.042710] 
[   23.042745] kfence-#92: 0x000000004ac2cf51-0x000000002fa93f85, size=32, cache=test
[   23.042745] 
[   23.042947] allocated by task 305 on cpu 1 at 23.040990s (0.001948s ago):
[   23.043191]  test_alloc+0x230/0x628
[   23.043249]  test_double_free+0xd4/0x238
[   23.043310]  kunit_try_run_case+0x170/0x3f0
[   23.043698]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.043832]  kthread+0x328/0x630
[   23.043871]  ret_from_fork+0x10/0x20
[   23.043928] 
[   23.044116] freed by task 305 on cpu 1 at 23.041178s (0.002771s ago):
[   23.044378]  test_double_free+0xf0/0x238
[   23.044496]  kunit_try_run_case+0x170/0x3f0
[   23.044780]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.044976]  kthread+0x328/0x630
[   23.045149]  ret_from_fork+0x10/0x20
[   23.045205] 
[   23.045417] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT 
[   23.045666] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.045841] Hardware name: linux,dummy-virt (DT)
[   23.046068] ==================================================================
[   22.938551] ==================================================================
[   22.938788] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   22.938788] 
[   22.938911] Invalid free of 0x00000000bbecc36f (in kfence-#91):
[   22.939294]  test_double_free+0x1bc/0x238
[   22.939402]  kunit_try_run_case+0x170/0x3f0
[   22.939584]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.939633]  kthread+0x328/0x630
[   22.940044]  ret_from_fork+0x10/0x20
[   22.940181] 
[   22.940237] kfence-#91: 0x00000000bbecc36f-0x0000000077703c52, size=32, cache=kmalloc-32
[   22.940237] 
[   22.940682] allocated by task 303 on cpu 1 at 22.937660s (0.002968s ago):
[   22.940870]  test_alloc+0x29c/0x628
[   22.941009]  test_double_free+0xd4/0x238
[   22.941384]  kunit_try_run_case+0x170/0x3f0
[   22.941738]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.941936]  kthread+0x328/0x630
[   22.941995]  ret_from_fork+0x10/0x20
[   22.942202] 
[   22.942252] freed by task 303 on cpu 1 at 22.938066s (0.004180s ago):
[   22.942495]  test_double_free+0x1ac/0x238
[   22.942673]  kunit_try_run_case+0x170/0x3f0
[   22.942723]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.942943]  kthread+0x328/0x630
[   22.943126]  ret_from_fork+0x10/0x20
[   22.943316] 
[   22.943605] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT 
[   22.943799] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.943834] Hardware name: linux,dummy-virt (DT)
[   22.944220] ==================================================================


[   21.509697] ==================================================================
[   21.510223] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   21.510223] 
[   21.510633] Invalid free of 0x(____ptrval____) (in kfence-#97):
[   21.511964]  test_double_free+0x1d3/0x260
[   21.512451]  kunit_try_run_case+0x1a5/0x480
[   21.512889]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.513323]  kthread+0x337/0x6f0
[   21.513609]  ret_from_fork+0x116/0x1d0
[   21.513934]  ret_from_fork_asm+0x1a/0x30
[   21.514242] 
[   21.514466] kfence-#97: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   21.514466] 
[   21.514895] allocated by task 320 on cpu 0 at 21.509370s (0.005519s ago):
[   21.515519]  test_alloc+0x364/0x10f0
[   21.515769]  test_double_free+0xdb/0x260
[   21.516136]  kunit_try_run_case+0x1a5/0x480
[   21.516425]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.516910]  kthread+0x337/0x6f0
[   21.517107]  ret_from_fork+0x116/0x1d0
[   21.517308]  ret_from_fork_asm+0x1a/0x30
[   21.517688] 
[   21.518322] freed by task 320 on cpu 0 at 21.509476s (0.008840s ago):
[   21.518801]  test_double_free+0x1e0/0x260
[   21.519019]  kunit_try_run_case+0x1a5/0x480
[   21.519445]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.519907]  kthread+0x337/0x6f0
[   21.520296]  ret_from_fork+0x116/0x1d0
[   21.520649]  ret_from_fork_asm+0x1a/0x30
[   21.521013] 
[   21.521281] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT(voluntary) 
[   21.521922] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.522131] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.523135] ==================================================================
[   21.613795] ==================================================================
[   21.614279] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   21.614279] 
[   21.614973] Invalid free of 0x(____ptrval____) (in kfence-#98):
[   21.615225]  test_double_free+0x112/0x260
[   21.615439]  kunit_try_run_case+0x1a5/0x480
[   21.615653]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.615870]  kthread+0x337/0x6f0
[   21.616037]  ret_from_fork+0x116/0x1d0
[   21.616204]  ret_from_fork_asm+0x1a/0x30
[   21.616378] 
[   21.616512] kfence-#98: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   21.616512] 
[   21.617210] allocated by task 322 on cpu 1 at 21.613485s (0.003719s ago):
[   21.617552]  test_alloc+0x2a6/0x10f0
[   21.617738]  test_double_free+0xdb/0x260
[   21.617927]  kunit_try_run_case+0x1a5/0x480
[   21.618118]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.618346]  kthread+0x337/0x6f0
[   21.618695]  ret_from_fork+0x116/0x1d0
[   21.619587]  ret_from_fork_asm+0x1a/0x30
[   21.620141] 
[   21.622869] freed by task 322 on cpu 1 at 21.613584s (0.009277s ago):
[   21.623870]  test_double_free+0xfa/0x260
[   21.624154]  kunit_try_run_case+0x1a5/0x480
[   21.624905]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.625380]  kthread+0x337/0x6f0
[   21.625600]  ret_from_fork+0x116/0x1d0
[   21.626047]  ret_from_fork_asm+0x1a/0x30
[   21.626333] 
[   21.626904] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT(voluntary) 
[   21.627848] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.628146] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.628918] ==================================================================