Hay
Date
June 23, 2025, 1:39 p.m.

Environment
qemu-arm64
qemu-x86_64

[   32.325863] ==================================================================
[   32.326061] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   32.326061] 
[   32.326206] Invalid free of 0x00000000b41ae17e (in kfence-#135):
[   32.326346]  test_double_free+0x1bc/0x238
[   32.326472]  kunit_try_run_case+0x170/0x3f0
[   32.326606]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.326740]  kthread+0x328/0x630
[   32.326879]  ret_from_fork+0x10/0x20
[   32.327031] 
[   32.327096] kfence-#135: 0x00000000b41ae17e-0x00000000a3a14edd, size=32, cache=kmalloc-32
[   32.327096] 
[   32.327238] allocated by task 305 on cpu 0 at 32.325172s (0.002057s ago):
[   32.327417]  test_alloc+0x29c/0x628
[   32.327519]  test_double_free+0xd4/0x238
[   32.327826]  kunit_try_run_case+0x170/0x3f0
[   32.328251]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.328848]  kthread+0x328/0x630
[   32.329036]  ret_from_fork+0x10/0x20
[   32.329751] 
[   32.329957] freed by task 305 on cpu 0 at 32.325553s (0.004325s ago):
[   32.330768]  test_double_free+0x1ac/0x238
[   32.330902]  kunit_try_run_case+0x170/0x3f0
[   32.331015]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.331114]  kthread+0x328/0x630
[   32.331212]  ret_from_fork+0x10/0x20
[   32.332117] 
[   32.332285] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc1 #1 PREEMPT 
[   32.332493] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.333221] Hardware name: linux,dummy-virt (DT)
[   32.333548] ==================================================================
[   32.429165] ==================================================================
[   32.429667] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   32.429667] 
[   32.429932] Invalid free of 0x0000000025387e77 (in kfence-#136):
[   32.430075]  test_double_free+0x100/0x238
[   32.430180]  kunit_try_run_case+0x170/0x3f0
[   32.430282]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.430401]  kthread+0x328/0x630
[   32.430500]  ret_from_fork+0x10/0x20
[   32.430661] 
[   32.430729] kfence-#136: 0x0000000025387e77-0x000000002184f291, size=32, cache=test
[   32.430729] 
[   32.432166] allocated by task 307 on cpu 0 at 32.428816s (0.003340s ago):
[   32.432323]  test_alloc+0x230/0x628
[   32.432444]  test_double_free+0xd4/0x238
[   32.432946]  kunit_try_run_case+0x170/0x3f0
[   32.433341]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.433977]  kthread+0x328/0x630
[   32.434362]  ret_from_fork+0x10/0x20
[   32.434626] 
[   32.434696] freed by task 307 on cpu 0 at 32.428911s (0.005776s ago):
[   32.434861]  test_double_free+0xf0/0x238
[   32.435193]  kunit_try_run_case+0x170/0x3f0
[   32.435363]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.435504]  kthread+0x328/0x630
[   32.435603]  ret_from_fork+0x10/0x20
[   32.435698] 
[   32.435865] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc1 #1 PREEMPT 
[   32.436147] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.436223] Hardware name: linux,dummy-virt (DT)
[   32.436321] ==================================================================

[   26.322494] ==================================================================
[   26.323020] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   26.323020] 
[   26.324292] Invalid free of 0x(____ptrval____) (in kfence-#113):
[   26.324769]  test_double_free+0x1d3/0x260
[   26.325162]  kunit_try_run_case+0x1a5/0x480
[   26.325536]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.326079]  kthread+0x337/0x6f0
[   26.326477]  ret_from_fork+0x41/0x80
[   26.326871]  ret_from_fork_asm+0x1a/0x30
[   26.327328] 
[   26.327532] kfence-#113: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   26.327532] 
[   26.328381] allocated by task 324 on cpu 0 at 26.322156s (0.006218s ago):
[   26.328888]  test_alloc+0x364/0x10f0
[   26.329344]  test_double_free+0xdb/0x260
[   26.329774]  kunit_try_run_case+0x1a5/0x480
[   26.330106]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.330662]  kthread+0x337/0x6f0
[   26.331032]  ret_from_fork+0x41/0x80
[   26.331478]  ret_from_fork_asm+0x1a/0x30
[   26.331879] 
[   26.332111] freed by task 324 on cpu 0 at 26.322242s (0.009863s ago):
[   26.332738]  test_double_free+0x1e0/0x260
[   26.333166]  kunit_try_run_case+0x1a5/0x480
[   26.333567]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.334086]  kthread+0x337/0x6f0
[   26.334505]  ret_from_fork+0x41/0x80
[   26.334887]  ret_from_fork_asm+0x1a/0x30
[   26.335256] 
[   26.335499] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc1 #1 PREEMPT(voluntary) 
[   26.336530] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.336916] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.337694] ==================================================================
[   26.426365] ==================================================================
[   26.427005] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   26.427005] 
[   26.427663] Invalid free of 0x(____ptrval____) (in kfence-#114):
[   26.428074]  test_double_free+0x112/0x260
[   26.428647]  kunit_try_run_case+0x1a5/0x480
[   26.429021]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.429584]  kthread+0x337/0x6f0
[   26.429953]  ret_from_fork+0x41/0x80
[   26.430347]  ret_from_fork_asm+0x1a/0x30
[   26.430756] 
[   26.430985] kfence-#114: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   26.430985] 
[   26.431718] allocated by task 326 on cpu 1 at 26.426068s (0.005644s ago):
[   26.432337]  test_alloc+0x2a6/0x10f0
[   26.432708]  test_double_free+0xdb/0x260
[   26.433146]  kunit_try_run_case+0x1a5/0x480
[   26.433498]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.433959]  kthread+0x337/0x6f0
[   26.434364]  ret_from_fork+0x41/0x80
[   26.434794]  ret_from_fork_asm+0x1a/0x30
[   26.435176] 
[   26.435430] freed by task 326 on cpu 1 at 26.426144s (0.009280s ago):
[   26.436012]  test_double_free+0xfa/0x260
[   26.436451]  kunit_try_run_case+0x1a5/0x480
[   26.436834]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.437256]  kthread+0x337/0x6f0
[   26.437636]  ret_from_fork+0x41/0x80
[   26.438055]  ret_from_fork_asm+0x1a/0x30
[   26.438624] 
[   26.438895] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc1 #1 PREEMPT(voluntary) 
[   26.439896] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.440273] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.440854] ==================================================================