Hay
Date
June 23, 2025, 7:07 a.m.

Environment
qemu-arm64
qemu-x86_64

[   39.200247] ==================================================================
[   39.200443] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   39.200443] 
[   39.200591] Invalid free of 0x00000000ca7e0302 (in kfence-#126):
[   39.200730]  test_double_free+0x1bc/0x238
[   39.200847]  kunit_try_run_case+0x170/0x3f0
[   39.200958]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.201087]  kthread+0x328/0x630
[   39.201189]  ret_from_fork+0x10/0x20
[   39.201290] 
[   39.201349] kfence-#126: 0x00000000ca7e0302-0x000000000cb24181, size=32, cache=kmalloc-32
[   39.201349] 
[   39.201474] allocated by task 315 on cpu 0 at 39.198062s (0.003403s ago):
[   39.201618]  test_alloc+0x29c/0x628
[   39.201720]  test_double_free+0xd4/0x238
[   39.201821]  kunit_try_run_case+0x170/0x3f0
[   39.201916]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.202020]  kthread+0x328/0x630
[   39.202180]  ret_from_fork+0x10/0x20
[   39.202299] 
[   39.202364] freed by task 315 on cpu 0 at 39.199682s (0.002673s ago):
[   39.202688]  test_double_free+0x1ac/0x238
[   39.202828]  kunit_try_run_case+0x170/0x3f0
[   39.202942]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.203195]  kthread+0x328/0x630
[   39.203389]  ret_from_fork+0x10/0x20
[   39.203531] 
[   39.203634] CPU: 0 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT 
[   39.203904] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.204014] Hardware name: linux,dummy-virt (DT)
[   39.204161] ==================================================================
[   39.304794] ==================================================================
[   39.304864] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   39.304864] 
[   39.304934] Invalid free of 0x00000000a8618b22 (in kfence-#127):
[   39.304995]  test_double_free+0x100/0x238
[   39.305104]  kunit_try_run_case+0x170/0x3f0
[   39.305220]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.305394]  kthread+0x328/0x630
[   39.305506]  ret_from_fork+0x10/0x20
[   39.305624] 
[   39.305679] kfence-#127: 0x00000000a8618b22-0x0000000060c9e402, size=32, cache=test
[   39.305679] 
[   39.306522] allocated by task 317 on cpu 0 at 39.304205s (0.002285s ago):
[   39.306791]  test_alloc+0x230/0x628
[   39.307528]  test_double_free+0xd4/0x238
[   39.307632]  kunit_try_run_case+0x170/0x3f0
[   39.308269]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.308713]  kthread+0x328/0x630
[   39.308808]  ret_from_fork+0x10/0x20
[   39.308901] 
[   39.308956] freed by task 317 on cpu 0 at 39.304325s (0.004623s ago):
[   39.310066]  test_double_free+0xf0/0x238
[   39.310375]  kunit_try_run_case+0x170/0x3f0
[   39.310857]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.311296]  kthread+0x328/0x630
[   39.311520]  ret_from_fork+0x10/0x20
[   39.311910] 
[   39.312048] CPU: 0 UID: 0 PID: 317 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT 
[   39.312704] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.313204] Hardware name: linux,dummy-virt (DT)
[   39.313291] ==================================================================

[   28.548575] ==================================================================
[   28.548888] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   28.548888] 
[   28.549313] Invalid free of 0x(____ptrval____) (in kfence-#95):
[   28.549590]  test_double_free+0x112/0x260
[   28.549856]  kunit_try_run_case+0x1a5/0x480
[   28.550261]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.550466]  kthread+0x337/0x6f0
[   28.550746]  ret_from_fork+0x116/0x1d0
[   28.551020]  ret_from_fork_asm+0x1a/0x30
[   28.551190] 
[   28.551295] kfence-#95: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   28.551295] 
[   28.551874] allocated by task 334 on cpu 0 at 28.548389s (0.003480s ago):
[   28.552258]  test_alloc+0x2a6/0x10f0
[   28.552447]  test_double_free+0xdb/0x260
[   28.552730]  kunit_try_run_case+0x1a5/0x480
[   28.553108]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.553396]  kthread+0x337/0x6f0
[   28.553537]  ret_from_fork+0x116/0x1d0
[   28.553827]  ret_from_fork_asm+0x1a/0x30
[   28.554129] 
[   28.554227] freed by task 334 on cpu 0 at 28.548449s (0.005773s ago):
[   28.554470]  test_double_free+0xfa/0x260
[   28.554617]  kunit_try_run_case+0x1a5/0x480
[   28.554945]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.555290]  kthread+0x337/0x6f0
[   28.555557]  ret_from_fork+0x116/0x1d0
[   28.555827]  ret_from_fork_asm+0x1a/0x30
[   28.556057] 
[   28.556222] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) 
[   28.557015] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.557171] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.557489] ==================================================================
[   28.444730] ==================================================================
[   28.445054] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   28.445054] 
[   28.445472] Invalid free of 0x(____ptrval____) (in kfence-#94):
[   28.446092]  test_double_free+0x1d3/0x260
[   28.446417]  kunit_try_run_case+0x1a5/0x480
[   28.446665]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.447402]  kthread+0x337/0x6f0
[   28.447666]  ret_from_fork+0x116/0x1d0
[   28.447813]  ret_from_fork_asm+0x1a/0x30
[   28.448170] 
[   28.448269] kfence-#94: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.448269] 
[   28.448813] allocated by task 332 on cpu 1 at 28.444409s (0.004399s ago):
[   28.449245]  test_alloc+0x364/0x10f0
[   28.449503]  test_double_free+0xdb/0x260
[   28.449662]  kunit_try_run_case+0x1a5/0x480
[   28.449817]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.450152]  kthread+0x337/0x6f0
[   28.450571]  ret_from_fork+0x116/0x1d0
[   28.450972]  ret_from_fork_asm+0x1a/0x30
[   28.451280] 
[   28.451521] freed by task 332 on cpu 1 at 28.444498s (0.006986s ago):
[   28.452036]  test_double_free+0x1e0/0x260
[   28.452209]  kunit_try_run_case+0x1a5/0x480
[   28.452585]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.452893]  kthread+0x337/0x6f0
[   28.453045]  ret_from_fork+0x116/0x1d0
[   28.453319]  ret_from_fork_asm+0x1a/0x30
[   28.453733] 
[   28.454020] CPU: 1 UID: 0 PID: 332 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) 
[   28.454740] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.454985] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.455547] ==================================================================