Hay
Date
July 1, 2025, 12:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.987689] ==================================================================
[   22.987789] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   22.987789] 
[   22.987853] Invalid free of 0x00000000285f5f6c (in kfence-#103):
[   22.987910]  test_double_free+0x100/0x238
[   22.987959]  kunit_try_run_case+0x170/0x3f0
[   22.988004]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.988049]  kthread+0x328/0x630
[   22.988088]  ret_from_fork+0x10/0x20
[   22.988128] 
[   22.988152] kfence-#103: 0x00000000285f5f6c-0x0000000091961e0a, size=32, cache=test
[   22.988152] 
[   22.988209] allocated by task 305 on cpu 1 at 22.987435s (0.000769s ago):
[   22.988274]  test_alloc+0x230/0x628
[   22.988315]  test_double_free+0xd4/0x238
[   22.988357]  kunit_try_run_case+0x170/0x3f0
[   22.988397]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.988458]  kthread+0x328/0x630
[   22.988495]  ret_from_fork+0x10/0x20
[   22.988533] 
[   22.988559] freed by task 305 on cpu 1 at 22.987520s (0.001034s ago):
[   22.988622]  test_double_free+0xf0/0x238
[   22.988664]  kunit_try_run_case+0x170/0x3f0
[   22.988706]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.988752]  kthread+0x328/0x630
[   22.988787]  ret_from_fork+0x10/0x20
[   22.988827] 
[   22.988871] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.988952] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.988982] Hardware name: linux,dummy-virt (DT)
[   22.989017] ==================================================================
[   22.883676] ==================================================================
[   22.883797] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   22.883797] 
[   22.883869] Invalid free of 0x00000000e44db0e6 (in kfence-#102):
[   22.883940]  test_double_free+0x1bc/0x238
[   22.883989]  kunit_try_run_case+0x170/0x3f0
[   22.884035]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.884079]  kthread+0x328/0x630
[   22.884119]  ret_from_fork+0x10/0x20
[   22.884159] 
[   22.884183] kfence-#102: 0x00000000e44db0e6-0x00000000e969e2e5, size=32, cache=kmalloc-32
[   22.884183] 
[   22.884237] allocated by task 303 on cpu 1 at 22.883355s (0.000879s ago):
[   22.884303]  test_alloc+0x29c/0x628
[   22.884345]  test_double_free+0xd4/0x238
[   22.884385]  kunit_try_run_case+0x170/0x3f0
[   22.884427]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.884751]  kthread+0x328/0x630
[   22.884787]  ret_from_fork+0x10/0x20
[   22.884827] 
[   22.884853] freed by task 303 on cpu 1 at 22.883428s (0.001421s ago):
[   22.884918]  test_double_free+0x1ac/0x238
[   22.884960]  kunit_try_run_case+0x170/0x3f0
[   22.885001]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.885045]  kthread+0x328/0x630
[   22.885082]  ret_from_fork+0x10/0x20
[   22.885123] 
[   22.885171] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.885253] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.885283] Hardware name: linux,dummy-virt (DT)
[   22.885320] ==================================================================

[   17.449550] ==================================================================
[   17.449941] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.449941] 
[   17.450352] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   17.450697]  test_double_free+0x112/0x260
[   17.450888]  kunit_try_run_case+0x1a5/0x480
[   17.451045]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.451296]  kthread+0x337/0x6f0
[   17.451576]  ret_from_fork+0x116/0x1d0
[   17.451797]  ret_from_fork_asm+0x1a/0x30
[   17.451975] 
[   17.452085] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.452085] 
[   17.452505] allocated by task 322 on cpu 1 at 17.449401s (0.003102s ago):
[   17.452809]  test_alloc+0x2a6/0x10f0
[   17.452998]  test_double_free+0xdb/0x260
[   17.453216]  kunit_try_run_case+0x1a5/0x480
[   17.453461]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.453659]  kthread+0x337/0x6f0
[   17.453779]  ret_from_fork+0x116/0x1d0
[   17.453970]  ret_from_fork_asm+0x1a/0x30
[   17.454218] 
[   17.454319] freed by task 322 on cpu 1 at 17.449451s (0.004867s ago):
[   17.454632]  test_double_free+0xfa/0x260
[   17.454807]  kunit_try_run_case+0x1a5/0x480
[   17.455039]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.455338]  kthread+0x337/0x6f0
[   17.455504]  ret_from_fork+0x116/0x1d0
[   17.455728]  ret_from_fork_asm+0x1a/0x30
[   17.455922] 
[   17.456050] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.456432] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.456582] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.457005] ==================================================================
[   17.345639] ==================================================================
[   17.346070] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   17.346070] 
[   17.346447] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   17.346781]  test_double_free+0x1d3/0x260
[   17.346930]  kunit_try_run_case+0x1a5/0x480
[   17.347096]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.347616]  kthread+0x337/0x6f0
[   17.347793]  ret_from_fork+0x116/0x1d0
[   17.348004]  ret_from_fork_asm+0x1a/0x30
[   17.348204] 
[   17.348349] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.348349] 
[   17.348783] allocated by task 320 on cpu 1 at 17.345397s (0.003384s ago):
[   17.349126]  test_alloc+0x364/0x10f0
[   17.349283]  test_double_free+0xdb/0x260
[   17.349420]  kunit_try_run_case+0x1a5/0x480
[   17.349600]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.349867]  kthread+0x337/0x6f0
[   17.350065]  ret_from_fork+0x116/0x1d0
[   17.350324]  ret_from_fork_asm+0x1a/0x30
[   17.350535] 
[   17.350620] freed by task 320 on cpu 1 at 17.345459s (0.005159s ago):
[   17.350913]  test_double_free+0x1e0/0x260
[   17.351129]  kunit_try_run_case+0x1a5/0x480
[   17.351364]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.351531]  kthread+0x337/0x6f0
[   17.351895]  ret_from_fork+0x116/0x1d0
[   17.352093]  ret_from_fork_asm+0x1a/0x30
[   17.352252] 
[   17.352399] CPU: 1 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.352867] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.353054] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.353476] ==================================================================