Hay
Date
June 17, 2025, 3:39 p.m.

Environment
qemu-arm64
qemu-i386
qemu-x86_64

[   98.160626] ==================================================================
[   98.161549] BUG: KFENCE: invalid free in test_double_free+0xf8/0x1d0
[   98.161549] 
[   98.162575] Invalid free of 0x000000001f2ec6b3 (in kfence-#162):
[   98.163632]  test_double_free+0xf8/0x1d0
[   98.164650]  kunit_try_run_case+0x114/0x298
[   98.165539]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.166531]  kthread+0x18c/0x1a8
[   98.167212]  ret_from_fork+0x10/0x20
[   98.167939] 
[   98.168389] kfence-#162: 0x000000001f2ec6b3-0x00000000ddade902, size=32, cache=test
[   98.168389] 
[   98.169546] allocated by task 246 on cpu 0 at 98.160011s:
[   98.170629]  test_alloc+0x1bc/0x3e8
[   98.171302]  test_double_free+0xcc/0x1d0
[   98.172154]  kunit_try_run_case+0x114/0x298
[   98.173049]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.174111]  kthread+0x18c/0x1a8
[   98.174827]  ret_from_fork+0x10/0x20
[   98.175594] 
[   98.176062] freed by task 246 on cpu 0 at 98.160205s:
[   98.177289]  test_double_free+0xe8/0x1d0
[   98.177966]  kunit_try_run_case+0x114/0x298
[   98.178778]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.179765]  kthread+0x18c/0x1a8
[   98.180481]  ret_from_fork+0x10/0x20
[   98.181250] 
[   98.181745] CPU: 0 PID: 246 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   98.182936] Hardware name: linux,dummy-virt (DT)
[   98.183727] ==================================================================
[   98.056835] ==================================================================
[   98.057904] BUG: KFENCE: invalid free in test_double_free+0x15c/0x1d0
[   98.057904] 
[   98.059002] Invalid free of 0x0000000066894106 (in kfence-#161):
[   98.060046]  test_double_free+0x15c/0x1d0
[   98.061052]  kunit_try_run_case+0x114/0x298
[   98.061965]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.063014]  kthread+0x18c/0x1a8
[   98.063722]  ret_from_fork+0x10/0x20
[   98.064517] 
[   98.064992] kfence-#161: 0x0000000066894106-0x00000000221ae6a9, size=32, cache=kmalloc-32
[   98.064992] 
[   98.066287] allocated by task 244 on cpu 0 at 98.056087s:
[   98.067604]  test_alloc+0x228/0x3e8
[   98.068281]  test_double_free+0xcc/0x1d0
[   98.069103]  kunit_try_run_case+0x114/0x298
[   98.069939]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.070906]  kthread+0x18c/0x1a8
[   98.071583]  ret_from_fork+0x10/0x20
[   98.072346] 
[   98.072800] freed by task 244 on cpu 0 at 98.056317s:
[   98.073959]  test_double_free+0x14c/0x1d0
[   98.074567]  kunit_try_run_case+0x114/0x298
[   98.075368]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   98.076399]  kthread+0x18c/0x1a8
[   98.077117]  ret_from_fork+0x10/0x20
[   98.077876] 
[   98.078321] CPU: 0 PID: 244 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   98.079435] Hardware name: linux,dummy-virt (DT)
[   98.080242] ==================================================================


[   15.976478] ==================================================================
[   15.976739] BUG: KFENCE: invalid free in test_double_free+0x75/0x130
[   15.976739] 
[   15.977034] Invalid free of 0x(ptrval) (in kfence-#35):
[   15.977156]  test_double_free+0x75/0x130
[   15.977258]  kunit_try_run_case+0x8a/0x1c4
[   15.977730]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   15.978047]  kthread+0xe0/0x108
[   15.978288]  ret_from_fork+0x40/0x4c
[   15.978389]  ret_from_fork_asm+0x12/0x18
[   15.978488]  restore_all_switch_stack+0x0/0xc3
[   15.978595] 
[   15.978644] kfence-#35: 0x(ptrval)-0x(ptrval), size=32, cache=test
[   15.978644] 
[   15.978870] allocated by task 146 on cpu 1 at 15.976311s:
[   15.979267]  test_alloc+0xed/0x2d4
[   15.979511]  test_double_free+0x50/0x130
[   15.979784]  kunit_try_run_case+0x8a/0x1c4
[   15.980057]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   15.980204]  kthread+0xe0/0x108
[   15.980306]  ret_from_fork+0x40/0x4c
[   15.980415]  ret_from_fork_asm+0x12/0x18
[   15.980530]  restore_all_switch_stack+0x0/0xc3
[   15.980655] 
[   15.980757] freed by task 146 on cpu 1 at 15.976374s:
[   15.981098]  test_double_free+0x65/0x130
[   15.981355]  kunit_try_run_case+0x8a/0x1c4
[   15.981626]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   15.981968]  kthread+0xe0/0x108
[   15.982194]  ret_from_fork+0x40/0x4c
[   15.982414]  ret_from_fork_asm+0x12/0x18
[   15.982576]  restore_all_switch_stack+0x0/0xc3
[   15.982776] 
[   15.982853] CPU: 1 PID: 146 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   15.983073] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.983291] ==================================================================
[   15.872514] ==================================================================
[   15.872941] BUG: KFENCE: invalid free in test_double_free+0xb7/0x130
[   15.872941] 
[   15.873276] Invalid free of 0x(ptrval) (in kfence-#34):
[   15.873650]  test_double_free+0xb7/0x130
[   15.873879]  kunit_try_run_case+0x8a/0x1c4
[   15.874017]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   15.874152]  kthread+0xe0/0x108
[   15.874272]  ret_from_fork+0x40/0x4c
[   15.874490]  ret_from_fork_asm+0x12/0x18
[   15.874711]  restore_all_switch_stack+0x0/0xc3
[   15.874914] 
[   15.874968] kfence-#34: 0x(ptrval)-0x(ptrval), size=32, cache=kmalloc-32
[   15.874968] 
[   15.875166] allocated by task 144 on cpu 1 at 15.872277s:
[   15.875463]  test_alloc+0x153/0x2d4
[   15.875755]  test_double_free+0x50/0x130
[   15.875989]  kunit_try_run_case+0x8a/0x1c4
[   15.876181]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   15.876327]  kthread+0xe0/0x108
[   15.876428]  ret_from_fork+0x40/0x4c
[   15.876534]  ret_from_fork_asm+0x12/0x18
[   15.876647]  restore_all_switch_stack+0x0/0xc3
[   15.876782] 
[   15.876841] freed by task 144 on cpu 1 at 15.872357s:
[   15.877003]  test_double_free+0xa7/0x130
[   15.877236]  kunit_try_run_case+0x8a/0x1c4
[   15.877518]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   15.877888]  kthread+0xe0/0x108
[   15.878114]  ret_from_fork+0x40/0x4c
[   15.878368]  ret_from_fork_asm+0x12/0x18
[   15.878645]  restore_all_switch_stack+0x0/0xc3
[   15.878910] 
[   15.878993] CPU: 1 PID: 144 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   15.879334] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.879590] ==================================================================


[   37.921272] ==================================================================
[   37.921811] BUG: KFENCE: invalid free in test_double_free+0x16a/0x1d0
[   37.921811] 
[   37.922397] Invalid free of 0x(____ptrval____) (in kfence-#95):
[   37.922744]  test_double_free+0x16a/0x1d0
[   37.923045]  kunit_try_run_case+0x120/0x290
[   37.923542]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   37.923988]  kthread+0x19e/0x1e0
[   37.924227]  ret_from_fork+0x41/0x70
[   37.924497]  ret_from_fork_asm+0x1b/0x30
[   37.924782] 
[   37.924998] kfence-#95: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   37.924998] 
[   37.925501] allocated by task 259 on cpu 0 at 37.920896s:
[   37.925826]  test_alloc+0x2ad/0x8e0
[   37.926150]  test_double_free+0xd0/0x1d0
[   37.926441]  kunit_try_run_case+0x120/0x290
[   37.926724]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   37.927116]  kthread+0x19e/0x1e0
[   37.927347]  ret_from_fork+0x41/0x70
[   37.927585]  ret_from_fork_asm+0x1b/0x30
[   37.927883] 
[   37.928013] freed by task 259 on cpu 0 at 37.921004s:
[   37.928391]  test_double_free+0x156/0x1d0
[   37.928674]  kunit_try_run_case+0x120/0x290
[   37.928940]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   37.929314]  kthread+0x19e/0x1e0
[   37.929535]  ret_from_fork+0x41/0x70
[   37.929781]  ret_from_fork_asm+0x1b/0x30
[   37.930071] 
[   37.930189] CPU: 0 PID: 259 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   37.930646] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   37.931117] ==================================================================
[   38.025226] ==================================================================
[   38.025746] BUG: KFENCE: invalid free in test_double_free+0xff/0x1d0
[   38.025746] 
[   38.026298] Invalid free of 0x(____ptrval____) (in kfence-#96):
[   38.026615]  test_double_free+0xff/0x1d0
[   38.027075]  kunit_try_run_case+0x120/0x290
[   38.027373]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   38.027732]  kthread+0x19e/0x1e0
[   38.027984]  ret_from_fork+0x41/0x70
[   38.028263]  ret_from_fork_asm+0x1b/0x30
[   38.028562] 
[   38.028699] kfence-#96: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   38.028699] 
[   38.029174] allocated by task 261 on cpu 0 at 38.024926s:
[   38.029680]  test_alloc+0x1f9/0x8e0
[   38.029956]  test_double_free+0xd0/0x1d0
[   38.030251]  kunit_try_run_case+0x120/0x290
[   38.030505]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   38.030924]  kthread+0x19e/0x1e0
[   38.031170]  ret_from_fork+0x41/0x70
[   38.031414]  ret_from_fork_asm+0x1b/0x30
[   38.031712] 
[   38.031851] freed by task 261 on cpu 0 at 38.025030s:
[   38.032234]  test_double_free+0xeb/0x1d0
[   38.032517]  kunit_try_run_case+0x120/0x290
[   38.032838]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   38.033159]  kthread+0x19e/0x1e0
[   38.033431]  ret_from_fork+0x41/0x70
[   38.033649]  ret_from_fork_asm+0x1b/0x30
[   38.033928] 
[   38.034094] CPU: 0 PID: 261 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   38.034560] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   38.035120] ==================================================================