Hay
Date
June 26, 2025, 9:10 a.m.

Environment
dragonboard-845c
juno-r2
qemu-arm64
qemu-x86_64

[   83.259445] ==================================================================
[   83.266788] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   83.266788] 
[   83.274810] Invalid free of 0x(____ptrval____) (in kfence-#203):
[   83.280905]  test_double_free+0x1bc/0x238
[   83.284980]  kunit_try_run_case+0x170/0x3f0
[   83.289239]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   83.294798]  kthread+0x328/0x630
[   83.298089]  ret_from_fork+0x10/0x20
[   83.301726] 
[   83.303252] kfence-#203: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   83.303252] 
[   83.313024] allocated by task 389 on cpu 5 at 83.259393s (0.053630s ago):
[   83.319904]  test_alloc+0x29c/0x628
[   83.323454]  test_double_free+0xd4/0x238
[   83.327440]  kunit_try_run_case+0x170/0x3f0
[   83.331692]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   83.337262]  kthread+0x328/0x630
[   83.340547]  ret_from_fork+0x10/0x20
[   83.344182] 
[   83.345706] freed by task 389 on cpu 5 at 83.259402s (0.086303s ago):
[   83.352237]  test_double_free+0x1ac/0x238
[   83.356307]  kunit_try_run_case+0x170/0x3f0
[   83.360561]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   83.366129]  kthread+0x328/0x630
[   83.369413]  ret_from_fork+0x10/0x20
[   83.373047] 
[   83.374578] CPU: 5 UID: 0 PID: 389 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   83.385847] Tainted: [B]=BAD_PAGE, [N]=TEST
[   83.390096] Hardware name: Thundercomm Dragonboard 845c (DT)
[   83.395825] ==================================================================
[   83.507418] ==================================================================
[   83.514756] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   83.514756] 
[   83.522777] Invalid free of 0x(____ptrval____) (in kfence-#205):
[   83.528868]  test_double_free+0x100/0x238
[   83.532944]  kunit_try_run_case+0x170/0x3f0
[   83.537203]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   83.542762]  kthread+0x328/0x630
[   83.546049]  ret_from_fork+0x10/0x20
[   83.549683] 
[   83.551211] kfence-#205: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   83.551211] 
[   83.560451] allocated by task 391 on cpu 7 at 83.507369s (0.053081s ago):
[   83.567339]  test_alloc+0x230/0x628
[   83.570889]  test_double_free+0xd4/0x238
[   83.574874]  kunit_try_run_case+0x170/0x3f0
[   83.579127]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   83.584686]  kthread+0x328/0x630
[   83.587971]  ret_from_fork+0x10/0x20
[   83.591606] 
[   83.593129] freed by task 391 on cpu 7 at 83.507378s (0.085749s ago):
[   83.599662]  test_double_free+0xf0/0x238
[   83.603646]  kunit_try_run_case+0x170/0x3f0
[   83.607899]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   83.613468]  kthread+0x328/0x630
[   83.616753]  ret_from_fork+0x10/0x20
[   83.620384] 
[   83.621914] CPU: 7 UID: 0 PID: 391 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   83.633180] Tainted: [B]=BAD_PAGE, [N]=TEST
[   83.637426] Hardware name: Thundercomm Dragonboard 845c (DT)
[   83.643164] ==================================================================

[ 1527.328164] ==================================================================
[ 1527.328178] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[ 1527.328178] 
[ 1527.328198] Invalid free of 0x00000000acaf80ad (in kfence-#41):
[ 1527.328213]  test_double_free+0x1bc/0x238
[ 1527.328230]  kunit_try_run_case+0x170/0x3f0
[ 1527.328246]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.328261]  kthread+0x328/0x630
[ 1527.328273]  ret_from_fork+0x10/0x20
[ 1527.328287] 
[ 1527.328292] kfence-#41: 0x00000000acaf80ad-0x0000000070a0fc0b, size=32, cache=kmalloc-32
[ 1527.328292] 
[ 1527.328308] allocated by task 374 on cpu 2 at 1527.328122s (0.000184s ago):
[ 1527.328331]  test_alloc+0x29c/0x628
[ 1527.328345]  test_double_free+0xd4/0x238
[ 1527.328359]  kunit_try_run_case+0x170/0x3f0
[ 1527.328373]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.328388]  kthread+0x328/0x630
[ 1527.328397]  ret_from_fork+0x10/0x20
[ 1527.328410] 
[ 1527.328415] freed by task 374 on cpu 2 at 1527.328131s (0.000283s ago):
[ 1527.328437]  test_double_free+0x1ac/0x238
[ 1527.328452]  kunit_try_run_case+0x170/0x3f0
[ 1527.328465]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.328480]  kthread+0x328/0x630
[ 1527.328490]  ret_from_fork+0x10/0x20
[ 1527.328502] 
[ 1527.328511] CPU: 2 UID: 0 PID: 374 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[ 1527.328537] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[ 1527.328545] Hardware name: ARM Juno development board (r2) (DT)
[ 1527.328555] ==================================================================
[ 1527.428185] ==================================================================
[ 1527.428200] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[ 1527.428200] 
[ 1527.428220] Invalid free of 0x00000000112ceba9 (in kfence-#42):
[ 1527.428234]  test_double_free+0x100/0x238
[ 1527.428251]  kunit_try_run_case+0x170/0x3f0
[ 1527.428266]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.428282]  kthread+0x328/0x630
[ 1527.428293]  ret_from_fork+0x10/0x20
[ 1527.428306] 
[ 1527.428312] kfence-#42: 0x00000000112ceba9-0x000000007a0c2341, size=32, cache=test
[ 1527.428312] 
[ 1527.428328] allocated by task 376 on cpu 2 at 1527.428145s (0.000182s ago):
[ 1527.428351]  test_alloc+0x230/0x628
[ 1527.428366]  test_double_free+0xd4/0x238
[ 1527.428380]  kunit_try_run_case+0x170/0x3f0
[ 1527.428393]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.428409]  kthread+0x328/0x630
[ 1527.428419]  ret_from_fork+0x10/0x20
[ 1527.428431] 
[ 1527.428436] freed by task 376 on cpu 2 at 1527.428153s (0.000282s ago):
[ 1527.428460]  test_double_free+0xf0/0x238
[ 1527.428475]  kunit_try_run_case+0x170/0x3f0
[ 1527.428488]  kunit_generic_run_threadfn_adapter+0x88/0x100
[ 1527.428503]  kthread+0x328/0x630
[ 1527.428513]  ret_from_fork+0x10/0x20
[ 1527.428526] 
[ 1527.428534] CPU: 2 UID: 0 PID: 376 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[ 1527.428560] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[ 1527.428568] Hardware name: ARM Juno development board (r2) (DT)
[ 1527.428578] ==================================================================

[   32.712472] ==================================================================
[   32.712564] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   32.712564] 
[   32.712623] Invalid free of 0x0000000005fd3809 (in kfence-#102):
[   32.712676]  test_double_free+0x100/0x238
[   32.712723]  kunit_try_run_case+0x170/0x3f0
[   32.712768]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.712810]  kthread+0x328/0x630
[   32.712850]  ret_from_fork+0x10/0x20
[   32.712888] 
[   32.712911] kfence-#102: 0x0000000005fd3809-0x00000000aa42abcf, size=32, cache=test
[   32.712911] 
[   32.712964] allocated by task 317 on cpu 1 at 32.712246s (0.000714s ago):
[   32.713026]  test_alloc+0x230/0x628
[   32.713082]  test_double_free+0xd4/0x238
[   32.713123]  kunit_try_run_case+0x170/0x3f0
[   32.713162]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.713206]  kthread+0x328/0x630
[   32.713241]  ret_from_fork+0x10/0x20
[   32.713285] 
[   32.713309] freed by task 317 on cpu 1 at 32.712310s (0.000996s ago):
[   32.713373]  test_double_free+0xf0/0x238
[   32.713415]  kunit_try_run_case+0x170/0x3f0
[   32.713454]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.713501]  kthread+0x328/0x630
[   32.713537]  ret_from_fork+0x10/0x20
[   32.713575] 
[   32.713617] CPU: 1 UID: 0 PID: 317 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   32.713702] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.713731] Hardware name: linux,dummy-virt (DT)
[   32.713764] ==================================================================
[   32.608523] ==================================================================
[   32.608638] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   32.608638] 
[   32.608707] Invalid free of 0x000000005a8da5eb (in kfence-#101):
[   32.608772]  test_double_free+0x1bc/0x238
[   32.608819]  kunit_try_run_case+0x170/0x3f0
[   32.608864]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.608908]  kthread+0x328/0x630
[   32.608948]  ret_from_fork+0x10/0x20
[   32.608988] 
[   32.609011] kfence-#101: 0x000000005a8da5eb-0x000000008d5feff4, size=32, cache=kmalloc-32
[   32.609011] 
[   32.609083] allocated by task 315 on cpu 0 at 32.608208s (0.000871s ago):
[   32.609147]  test_alloc+0x29c/0x628
[   32.609190]  test_double_free+0xd4/0x238
[   32.609232]  kunit_try_run_case+0x170/0x3f0
[   32.609273]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.609318]  kthread+0x328/0x630
[   32.609352]  ret_from_fork+0x10/0x20
[   32.609392] 
[   32.609417] freed by task 315 on cpu 0 at 32.608285s (0.001128s ago):
[   32.609478]  test_double_free+0x1ac/0x238
[   32.609521]  kunit_try_run_case+0x170/0x3f0
[   32.609562]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.609605]  kthread+0x328/0x630
[   32.609642]  ret_from_fork+0x10/0x20
[   32.609682] 
[   32.609726] CPU: 0 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   32.609809] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.609837] Hardware name: linux,dummy-virt (DT)
[   32.609869] ==================================================================

[   27.923429] ==================================================================
[   27.923870] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   27.923870] 
[   27.924155] Invalid free of 0x(____ptrval____) (in kfence-#82):
[   27.924464]  test_double_free+0x112/0x260
[   27.924661]  kunit_try_run_case+0x1a5/0x480
[   27.924856]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.925716]  kthread+0x337/0x6f0
[   27.925892]  ret_from_fork+0x116/0x1d0
[   27.926131]  ret_from_fork_asm+0x1a/0x30
[   27.926414] 
[   27.926507] kfence-#82: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   27.926507] 
[   27.926868] allocated by task 334 on cpu 0 at 27.923245s (0.003620s ago):
[   27.927502]  test_alloc+0x2a6/0x10f0
[   27.927767]  test_double_free+0xdb/0x260
[   27.927925]  kunit_try_run_case+0x1a5/0x480
[   27.928321]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.928556]  kthread+0x337/0x6f0
[   27.928828]  ret_from_fork+0x116/0x1d0
[   27.929012]  ret_from_fork_asm+0x1a/0x30
[   27.929364] 
[   27.929461] freed by task 334 on cpu 0 at 27.923307s (0.006151s ago):
[   27.929879]  test_double_free+0xfa/0x260
[   27.930103]  kunit_try_run_case+0x1a5/0x480
[   27.930299]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.930535]  kthread+0x337/0x6f0
[   27.930692]  ret_from_fork+0x116/0x1d0
[   27.930855]  ret_from_fork_asm+0x1a/0x30
[   27.931048] 
[   27.931492] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   27.932035] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.932267] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.932764] ==================================================================
[   27.819415] ==================================================================
[   27.819890] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   27.819890] 
[   27.820198] Invalid free of 0x(____ptrval____) (in kfence-#81):
[   27.820508]  test_double_free+0x1d3/0x260
[   27.820710]  kunit_try_run_case+0x1a5/0x480
[   27.820894]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.821158]  kthread+0x337/0x6f0
[   27.821296]  ret_from_fork+0x116/0x1d0
[   27.821429]  ret_from_fork_asm+0x1a/0x30
[   27.821628] 
[   27.821720] kfence-#81: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   27.821720] 
[   27.822166] allocated by task 332 on cpu 1 at 27.819160s (0.003004s ago):
[   27.822438]  test_alloc+0x364/0x10f0
[   27.822621]  test_double_free+0xdb/0x260
[   27.822808]  kunit_try_run_case+0x1a5/0x480
[   27.822985]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.823206]  kthread+0x337/0x6f0
[   27.823468]  ret_from_fork+0x116/0x1d0
[   27.823673]  ret_from_fork_asm+0x1a/0x30
[   27.823825] 
[   27.823893] freed by task 332 on cpu 1 at 27.819253s (0.004637s ago):
[   27.824099]  test_double_free+0x1e0/0x260
[   27.824273]  kunit_try_run_case+0x1a5/0x480
[   27.824480]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.824852]  kthread+0x337/0x6f0
[   27.825013]  ret_from_fork+0x116/0x1d0
[   27.825274]  ret_from_fork_asm+0x1a/0x30
[   27.825408] 
[   27.825501] CPU: 1 UID: 0 PID: 332 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   27.825970] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.826378] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.826709] ==================================================================