Hay
Date
July 23, 2025, 3:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   35.580348] ==================================================================
[   35.580472] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   35.580472] 
[   35.581207] Invalid free of 0x00000000d08afd28 (in kfence-#129):
[   35.581422]  test_double_free+0x1bc/0x238
[   35.581615]  kunit_try_run_case+0x170/0x3f0
[   35.581871]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.582021]  kthread+0x328/0x630
[   35.582070]  ret_from_fork+0x10/0x20
[   35.582114] 
[   35.582364] kfence-#129: 0x00000000d08afd28-0x00000000667cc3dc, size=32, cache=kmalloc-32
[   35.582364] 
[   35.582467] allocated by task 336 on cpu 1 at 35.579535s (0.002927s ago):
[   35.582786]  test_alloc+0x29c/0x628
[   35.582907]  test_double_free+0xd4/0x238
[   35.582987]  kunit_try_run_case+0x170/0x3f0
[   35.583033]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.583290]  kthread+0x328/0x630
[   35.583782]  ret_from_fork+0x10/0x20
[   35.583876] 
[   35.584401] freed by task 336 on cpu 1 at 35.579918s (0.004461s ago):
[   35.584810]  test_double_free+0x1ac/0x238
[   35.584861]  kunit_try_run_case+0x170/0x3f0
[   35.584916]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.584986]  kthread+0x328/0x630
[   35.585024]  ret_from_fork+0x10/0x20
[   35.585357] 
[   35.585507] CPU: 1 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   35.586199] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   35.586294] Hardware name: linux,dummy-virt (DT)
[   35.586613] ==================================================================
[   35.682522] ==================================================================
[   35.682922] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   35.682922] 
[   35.683232] Invalid free of 0x00000000466e04fa (in kfence-#130):
[   35.683388]  test_double_free+0x100/0x238
[   35.683462]  kunit_try_run_case+0x170/0x3f0
[   35.683507]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.683815]  kthread+0x328/0x630
[   35.684179]  ret_from_fork+0x10/0x20
[   35.684252] 
[   35.684278] kfence-#130: 0x00000000466e04fa-0x00000000646e99dc, size=32, cache=test
[   35.684278] 
[   35.684378] allocated by task 338 on cpu 1 at 35.682272s (0.002074s ago):
[   35.684463]  test_alloc+0x230/0x628
[   35.684796]  test_double_free+0xd4/0x238
[   35.684957]  kunit_try_run_case+0x170/0x3f0
[   35.685086]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.685137]  kthread+0x328/0x630
[   35.685443]  ret_from_fork+0x10/0x20
[   35.685608] 
[   35.685700] freed by task 338 on cpu 1 at 35.682345s (0.003334s ago):
[   35.685869]  test_double_free+0xf0/0x238
[   35.685927]  kunit_try_run_case+0x170/0x3f0
[   35.685997]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.686386]  kthread+0x328/0x630
[   35.686744]  ret_from_fork+0x10/0x20
[   35.686851] 
[   35.686914] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   35.687314] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   35.687383] Hardware name: linux,dummy-virt (DT)
[   35.687602] ==================================================================

[   30.876910] ==================================================================
[   30.877348] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   30.877348] 
[   30.877758] Invalid free of 0x(____ptrval____) (in kfence-#101):
[   30.878098]  test_double_free+0x1d3/0x260
[   30.878648]  kunit_try_run_case+0x1a5/0x480
[   30.878830]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.879078]  kthread+0x337/0x6f0
[   30.879329]  ret_from_fork+0x116/0x1d0
[   30.879462]  ret_from_fork_asm+0x1a/0x30
[   30.879673] 
[   30.880332] kfence-#101: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   30.880332] 
[   30.880829] allocated by task 352 on cpu 0 at 30.876703s (0.004123s ago):
[   30.881388]  test_alloc+0x364/0x10f0
[   30.881640]  test_double_free+0xdb/0x260
[   30.881824]  kunit_try_run_case+0x1a5/0x480
[   30.882117]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.882414]  kthread+0x337/0x6f0
[   30.882558]  ret_from_fork+0x116/0x1d0
[   30.882754]  ret_from_fork_asm+0x1a/0x30
[   30.882904] 
[   30.883253] freed by task 352 on cpu 0 at 30.876760s (0.006299s ago):
[   30.883598]  test_double_free+0x1e0/0x260
[   30.883858]  kunit_try_run_case+0x1a5/0x480
[   30.884067]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.884315]  kthread+0x337/0x6f0
[   30.884451]  ret_from_fork+0x116/0x1d0
[   30.884602]  ret_from_fork_asm+0x1a/0x30
[   30.884796] 
[   30.884920] CPU: 0 UID: 0 PID: 352 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) 
[   30.885791] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.885982] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.886495] ==================================================================
[   30.981044] ==================================================================
[   30.981515] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   30.981515] 
[   30.981808] Invalid free of 0x(____ptrval____) (in kfence-#102):
[   30.982135]  test_double_free+0x112/0x260
[   30.982413]  kunit_try_run_case+0x1a5/0x480
[   30.982572]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.982825]  kthread+0x337/0x6f0
[   30.983026]  ret_from_fork+0x116/0x1d0
[   30.983193]  ret_from_fork_asm+0x1a/0x30
[   30.983333] 
[   30.983403] kfence-#102: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   30.983403] 
[   30.983796] allocated by task 354 on cpu 1 at 30.980726s (0.003067s ago):
[   30.984083]  test_alloc+0x2a6/0x10f0
[   30.984398]  test_double_free+0xdb/0x260
[   30.984581]  kunit_try_run_case+0x1a5/0x480
[   30.984784]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.984960]  kthread+0x337/0x6f0
[   30.985084]  ret_from_fork+0x116/0x1d0
[   30.985281]  ret_from_fork_asm+0x1a/0x30
[   30.985475] 
[   30.985570] freed by task 354 on cpu 1 at 30.980778s (0.004790s ago):
[   30.985953]  test_double_free+0xfa/0x260
[   30.986094]  kunit_try_run_case+0x1a5/0x480
[   30.986268]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.986522]  kthread+0x337/0x6f0
[   30.986699]  ret_from_fork+0x116/0x1d0
[   30.986900]  ret_from_fork_asm+0x1a/0x30
[   30.987115] 
[   30.987289] CPU: 1 UID: 0 PID: 354 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) 
[   30.987744] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.987989] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.988327] ==================================================================