Hay
Date
July 16, 2025, 12:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   35.848439] ==================================================================
[   35.848545] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   35.848545] 
[   35.848604] Invalid free of 0x00000000ebf908ce (in kfence-#133):
[   35.848659]  test_double_free+0x100/0x238
[   35.848700]  kunit_try_run_case+0x170/0x3f0
[   35.848744]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.848790]  kthread+0x328/0x630
[   35.848828]  ret_from_fork+0x10/0x20
[   35.848869] 
[   35.848894] kfence-#133: 0x00000000ebf908ce-0x00000000ba2b8e1e, size=32, cache=test
[   35.848894] 
[   35.848947] allocated by task 336 on cpu 0 at 35.848237s (0.000706s ago):
[   35.849012]  test_alloc+0x230/0x628
[   35.849054]  test_double_free+0xd4/0x238
[   35.849091]  kunit_try_run_case+0x170/0x3f0
[   35.849131]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.849174]  kthread+0x328/0x630
[   35.849210]  ret_from_fork+0x10/0x20
[   35.849249] 
[   35.849272] freed by task 336 on cpu 0 at 35.848291s (0.000978s ago):
[   35.849336]  test_double_free+0xf0/0x238
[   35.849373]  kunit_try_run_case+0x170/0x3f0
[   35.849412]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.849454]  kthread+0x328/0x630
[   35.849490]  ret_from_fork+0x10/0x20
[   35.849540] 
[   35.849583] CPU: 0 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT 
[   35.849662] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.849692] Hardware name: linux,dummy-virt (DT)
[   35.849726] ==================================================================
[   35.744435] ==================================================================
[   35.744568] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   35.744568] 
[   35.744634] Invalid free of 0x000000008fbd2d51 (in kfence-#132):
[   35.744703]  test_double_free+0x1bc/0x238
[   35.744749]  kunit_try_run_case+0x170/0x3f0
[   35.744794]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.744840]  kthread+0x328/0x630
[   35.744878]  ret_from_fork+0x10/0x20
[   35.744919] 
[   35.744945] kfence-#132: 0x000000008fbd2d51-0x0000000045164ad8, size=32, cache=kmalloc-32
[   35.744945] 
[   35.744999] allocated by task 334 on cpu 0 at 35.744144s (0.000851s ago):
[   35.745065]  test_alloc+0x29c/0x628
[   35.745107]  test_double_free+0xd4/0x238
[   35.745145]  kunit_try_run_case+0x170/0x3f0
[   35.745187]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.745232]  kthread+0x328/0x630
[   35.745269]  ret_from_fork+0x10/0x20
[   35.745308] 
[   35.745331] freed by task 334 on cpu 0 at 35.744212s (0.001116s ago):
[   35.745398]  test_double_free+0x1ac/0x238
[   35.745438]  kunit_try_run_case+0x170/0x3f0
[   35.745478]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.745533]  kthread+0x328/0x630
[   35.745571]  ret_from_fork+0x10/0x20
[   35.745608] 
[   35.745656] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT 
[   35.745738] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.745767] Hardware name: linux,dummy-virt (DT)
[   35.745802] ==================================================================

[   28.610652] ==================================================================
[   28.611192] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   28.611192] 
[   28.611568] Invalid free of 0x(____ptrval____) (in kfence-#94):
[   28.611875]  test_double_free+0x1d3/0x260
[   28.612025]  kunit_try_run_case+0x1a5/0x480
[   28.612269]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.612518]  kthread+0x337/0x6f0
[   28.612683]  ret_from_fork+0x116/0x1d0
[   28.612815]  ret_from_fork_asm+0x1a/0x30
[   28.612985] 
[   28.613116] kfence-#94: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.613116] 
[   28.613551] allocated by task 352 on cpu 1 at 28.610220s (0.003329s ago):
[   28.613934]  test_alloc+0x364/0x10f0
[   28.614171]  test_double_free+0xdb/0x260
[   28.614307]  kunit_try_run_case+0x1a5/0x480
[   28.614462]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.614833]  kthread+0x337/0x6f0
[   28.615000]  ret_from_fork+0x116/0x1d0
[   28.615186]  ret_from_fork_asm+0x1a/0x30
[   28.615369] 
[   28.615454] freed by task 352 on cpu 1 at 28.610302s (0.005149s ago):
[   28.615667]  test_double_free+0x1e0/0x260
[   28.615804]  kunit_try_run_case+0x1a5/0x480
[   28.615996]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.616249]  kthread+0x337/0x6f0
[   28.616419]  ret_from_fork+0x116/0x1d0
[   28.616613]  ret_from_fork_asm+0x1a/0x30
[   28.616816] 
[   28.616934] CPU: 1 UID: 0 PID: 352 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) 
[   28.617303] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.617511] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.618269] ==================================================================
[   28.714446] ==================================================================
[   28.715042] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   28.715042] 
[   28.715374] Invalid free of 0x(____ptrval____) (in kfence-#95):
[   28.715723]  test_double_free+0x112/0x260
[   28.715921]  kunit_try_run_case+0x1a5/0x480
[   28.716066]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.716286]  kthread+0x337/0x6f0
[   28.716460]  ret_from_fork+0x116/0x1d0
[   28.716664]  ret_from_fork_asm+0x1a/0x30
[   28.716879] 
[   28.716958] kfence-#95: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   28.716958] 
[   28.717339] allocated by task 354 on cpu 0 at 28.714250s (0.003087s ago):
[   28.717680]  test_alloc+0x2a6/0x10f0
[   28.717888]  test_double_free+0xdb/0x260
[   28.718215]  kunit_try_run_case+0x1a5/0x480
[   28.718442]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.718772]  kthread+0x337/0x6f0
[   28.718928]  ret_from_fork+0x116/0x1d0
[   28.719099]  ret_from_fork_asm+0x1a/0x30
[   28.719284] 
[   28.719376] freed by task 354 on cpu 0 at 28.714308s (0.005066s ago):
[   28.719602]  test_double_free+0xfa/0x260
[   28.719827]  kunit_try_run_case+0x1a5/0x480
[   28.720010]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.720182]  kthread+0x337/0x6f0
[   28.720298]  ret_from_fork+0x116/0x1d0
[   28.720436]  ret_from_fork_asm+0x1a/0x30
[   28.720573] 
[   28.720718] CPU: 0 UID: 0 PID: 354 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) 
[   28.721286] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.721501] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.722023] ==================================================================