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

Environment
qemu-arm64
qemu-x86_64

[   20.882750] ==================================================================
[   20.882846] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   20.882846] 
[   20.882905] Invalid free of 0x0000000021d37ea3 (in kfence-#100):
[   20.882974]  test_double_free+0x100/0x238
[   20.883017]  kunit_try_run_case+0x170/0x3f0
[   20.883060]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.883105]  kthread+0x328/0x630
[   20.883145]  ret_from_fork+0x10/0x20
[   20.883185] 
[   20.883210] kfence-#100: 0x0000000021d37ea3-0x00000000cab75418, size=32, cache=test
[   20.883210] 
[   20.883262] allocated by task 308 on cpu 1 at 20.882536s (0.000722s ago):
[   20.883323]  test_alloc+0x230/0x628
[   20.883361]  test_double_free+0xd4/0x238
[   20.883400]  kunit_try_run_case+0x170/0x3f0
[   20.883442]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.883485]  kthread+0x328/0x630
[   20.883524]  ret_from_fork+0x10/0x20
[   20.883562] 
[   20.883586] freed by task 308 on cpu 1 at 20.882597s (0.000985s ago):
[   20.883646]  test_double_free+0xf0/0x238
[   20.883685]  kunit_try_run_case+0x170/0x3f0
[   20.883726]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.883769]  kthread+0x328/0x630
[   20.883809]  ret_from_fork+0x10/0x20
[   20.883846] 
[   20.883890] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT 
[   20.883978] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.884008] Hardware name: linux,dummy-virt (DT)
[   20.884041] ==================================================================
[   20.779213] ==================================================================
[   20.779335] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   20.779335] 
[   20.779403] Invalid free of 0x000000009a1a9171 (in kfence-#99):
[   20.779465]  test_double_free+0x1bc/0x238
[   20.779510]  kunit_try_run_case+0x170/0x3f0
[   20.779555]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.779600]  kthread+0x328/0x630
[   20.779642]  ret_from_fork+0x10/0x20
[   20.779681] 
[   20.779705] kfence-#99: 0x000000009a1a9171-0x000000009c0ba914, size=32, cache=kmalloc-32
[   20.779705] 
[   20.779758] allocated by task 306 on cpu 1 at 20.778888s (0.000866s ago):
[   20.779818]  test_alloc+0x29c/0x628
[   20.779859]  test_double_free+0xd4/0x238
[   20.779896]  kunit_try_run_case+0x170/0x3f0
[   20.779936]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.779998]  kthread+0x328/0x630
[   20.780040]  ret_from_fork+0x10/0x20
[   20.780080] 
[   20.780105] freed by task 306 on cpu 1 at 20.778980s (0.001122s ago):
[   20.780165]  test_double_free+0x1ac/0x238
[   20.780205]  kunit_try_run_case+0x170/0x3f0
[   20.780247]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.780291]  kthread+0x328/0x630
[   20.780329]  ret_from_fork+0x10/0x20
[   20.780369] 
[   20.780416] CPU: 1 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT 
[   20.780494] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.780525] Hardware name: linux,dummy-virt (DT)
[   20.780560] ==================================================================

[   16.993871] ==================================================================
[   16.994341] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   16.994341] 
[   16.994683] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   16.994961]  test_double_free+0x1d3/0x260
[   16.995178]  kunit_try_run_case+0x1a5/0x480
[   16.995379]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.995626]  kthread+0x337/0x6f0
[   16.995754]  ret_from_fork+0x41/0x80
[   16.995915]  ret_from_fork_asm+0x1a/0x30
[   16.996162] 
[   16.996255] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.996255] 
[   16.996619] allocated by task 323 on cpu 1 at 16.993625s (0.002991s ago):
[   16.996954]  test_alloc+0x364/0x10f0
[   16.997115]  test_double_free+0xdb/0x260
[   16.997310]  kunit_try_run_case+0x1a5/0x480
[   16.997458]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.997754]  kthread+0x337/0x6f0
[   16.997926]  ret_from_fork+0x41/0x80
[   16.998114]  ret_from_fork_asm+0x1a/0x30
[   16.998305] 
[   16.998403] freed by task 323 on cpu 1 at 16.993688s (0.004713s ago):
[   16.998673]  test_double_free+0x1e0/0x260
[   16.998842]  kunit_try_run_case+0x1a5/0x480
[   16.999056]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.999303]  kthread+0x337/0x6f0
[   16.999454]  ret_from_fork+0x41/0x80
[   16.999591]  ret_from_fork_asm+0x1a/0x30
[   16.999734] 
[   16.999832] CPU: 1 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   17.000328] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.000513] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.001352] ==================================================================
[   17.097827] ==================================================================
[   17.098248] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.098248] 
[   17.098563] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   17.098956]  test_double_free+0x112/0x260
[   17.099122]  kunit_try_run_case+0x1a5/0x480
[   17.099358]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.099574]  kthread+0x337/0x6f0
[   17.099826]  ret_from_fork+0x41/0x80
[   17.099963]  ret_from_fork_asm+0x1a/0x30
[   17.100163] 
[   17.100279] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.100279] 
[   17.100621] allocated by task 325 on cpu 1 at 17.097650s (0.002969s ago):
[   17.100899]  test_alloc+0x2a6/0x10f0
[   17.101087]  test_double_free+0xdb/0x260
[   17.101301]  kunit_try_run_case+0x1a5/0x480
[   17.101478]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.101664]  kthread+0x337/0x6f0
[   17.101831]  ret_from_fork+0x41/0x80
[   17.102104]  ret_from_fork_asm+0x1a/0x30
[   17.102317] 
[   17.102400] freed by task 325 on cpu 1 at 17.097712s (0.004685s ago):
[   17.102713]  test_double_free+0xfa/0x260
[   17.102902]  kunit_try_run_case+0x1a5/0x480
[   17.103079]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.103276]  kthread+0x337/0x6f0
[   17.103450]  ret_from_fork+0x41/0x80
[   17.103648]  ret_from_fork_asm+0x1a/0x30
[   17.103858] 
[   17.103981] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   17.104426] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.104568] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.105016] ==================================================================