Hay
Date
July 3, 2025, 6:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.989120] ==================================================================
[   21.989211] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   21.989211] 
[   21.989269] Invalid free of 0x00000000c1526fa0 (in kfence-#93):
[   21.989322]  test_double_free+0x100/0x238
[   21.989368]  kunit_try_run_case+0x170/0x3f0
[   21.989409]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.989453]  kthread+0x328/0x630
[   21.989489]  ret_from_fork+0x10/0x20
[   21.989527] 
[   21.989551] kfence-#93: 0x00000000c1526fa0-0x000000009e3eb753, size=32, cache=test
[   21.989551] 
[   21.989603] allocated by task 305 on cpu 1 at 21.988895s (0.000705s ago):
[   21.989664]  test_alloc+0x230/0x628
[   21.989704]  test_double_free+0xd4/0x238
[   21.989743]  kunit_try_run_case+0x170/0x3f0
[   21.989783]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.989825]  kthread+0x328/0x630
[   21.989859]  ret_from_fork+0x10/0x20
[   21.989897] 
[   21.989920] freed by task 305 on cpu 1 at 21.988957s (0.000959s ago):
[   21.989980]  test_double_free+0xf0/0x238
[   21.990020]  kunit_try_run_case+0x170/0x3f0
[   21.990070]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.990113]  kthread+0x328/0x630
[   21.990147]  ret_from_fork+0x10/0x20
[   21.990185] 
[   21.990227] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   21.990305] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.990337] Hardware name: linux,dummy-virt (DT)
[   21.990371] ==================================================================
[   21.885328] ==================================================================
[   21.885440] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   21.885440] 
[   21.885505] Invalid free of 0x000000006175534f (in kfence-#92):
[   21.885568]  test_double_free+0x1bc/0x238
[   21.885613]  kunit_try_run_case+0x170/0x3f0
[   21.885657]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.885701]  kthread+0x328/0x630
[   21.885738]  ret_from_fork+0x10/0x20
[   21.885778] 
[   21.885802] kfence-#92: 0x000000006175534f-0x000000004f7ee95f, size=32, cache=kmalloc-32
[   21.885802] 
[   21.885855] allocated by task 303 on cpu 1 at 21.885048s (0.000804s ago):
[   21.885916]  test_alloc+0x29c/0x628
[   21.885955]  test_double_free+0xd4/0x238
[   21.885996]  kunit_try_run_case+0x170/0x3f0
[   21.886048]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.886089]  kthread+0x328/0x630
[   21.886125]  ret_from_fork+0x10/0x20
[   21.886164] 
[   21.886187] freed by task 303 on cpu 1 at 21.885120s (0.001063s ago):
[   21.886248]  test_double_free+0x1ac/0x238
[   21.886288]  kunit_try_run_case+0x170/0x3f0
[   21.886328]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.886370]  kthread+0x328/0x630
[   21.886404]  ret_from_fork+0x10/0x20
[   21.886443] 
[   21.886488] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   21.886565] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.886594] Hardware name: linux,dummy-virt (DT)
[   21.886629] ==================================================================

[   17.144665] ==================================================================
[   17.145074] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.145074] 
[   17.145554] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   17.145802]  test_double_free+0x112/0x260
[   17.146016]  kunit_try_run_case+0x1a5/0x480
[   17.146212]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.146468]  kthread+0x337/0x6f0
[   17.146596]  ret_from_fork+0x116/0x1d0
[   17.146745]  ret_from_fork_asm+0x1a/0x30
[   17.146947] 
[   17.147044] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.147044] 
[   17.147413] allocated by task 323 on cpu 1 at 17.144479s (0.002932s ago):
[   17.147786]  test_alloc+0x2a6/0x10f0
[   17.147976]  test_double_free+0xdb/0x260
[   17.148137]  kunit_try_run_case+0x1a5/0x480
[   17.148284]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.148547]  kthread+0x337/0x6f0
[   17.148720]  ret_from_fork+0x116/0x1d0
[   17.148910]  ret_from_fork_asm+0x1a/0x30
[   17.149091] 
[   17.149180] freed by task 323 on cpu 1 at 17.144527s (0.004651s ago):
[   17.149453]  test_double_free+0xfa/0x260
[   17.149642]  kunit_try_run_case+0x1a5/0x480
[   17.149855]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.150074]  kthread+0x337/0x6f0
[   17.150255]  ret_from_fork+0x116/0x1d0
[   17.150520]  ret_from_fork_asm+0x1a/0x30
[   17.150694] 
[   17.150820] CPU: 1 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.151190] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.151342] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.151718] ==================================================================
[   17.040566] ==================================================================
[   17.040992] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.040992] 
[   17.041490] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   17.041771]  test_double_free+0x1d3/0x260
[   17.041971]  kunit_try_run_case+0x1a5/0x480
[   17.042188]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.042445]  kthread+0x337/0x6f0
[   17.042634]  ret_from_fork+0x116/0x1d0
[   17.042830]  ret_from_fork_asm+0x1a/0x30
[   17.042977] 
[   17.043078] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.043078] 
[   17.043463] allocated by task 321 on cpu 0 at 17.040388s (0.003073s ago):
[   17.043686]  test_alloc+0x364/0x10f0
[   17.043999]  test_double_free+0xdb/0x260
[   17.044222]  kunit_try_run_case+0x1a5/0x480
[   17.044430]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.044688]  kthread+0x337/0x6f0
[   17.044836]  ret_from_fork+0x116/0x1d0
[   17.044971]  ret_from_fork_asm+0x1a/0x30
[   17.045122] 
[   17.045196] freed by task 321 on cpu 0 at 17.040442s (0.004752s ago):
[   17.047010]  test_double_free+0x1e0/0x260
[   17.047299]  kunit_try_run_case+0x1a5/0x480
[   17.047455]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.047755]  kthread+0x337/0x6f0
[   17.048557]  ret_from_fork+0x116/0x1d0
[   17.048909]  ret_from_fork_asm+0x1a/0x30
[   17.049205] 
[   17.049307] CPU: 0 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.049627] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.049764] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.051869] ==================================================================