Hay
Date
June 7, 2025, 10:40 a.m.

Environment
qemu-arm64
qemu-x86_64

[   33.042111] ==================================================================
[   33.042769] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   33.042769] 
[   33.043542] Invalid free of 0x000000005ccf2165 (in kfence-#126):
[   33.044146]  test_double_free+0x100/0x238
[   33.044754]  kunit_try_run_case+0x170/0x3f0
[   33.045273]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.046004]  kthread+0x318/0x620
[   33.046519]  ret_from_fork+0x10/0x20
[   33.047110] 
[   33.047439] kfence-#126: 0x000000005ccf2165-0x00000000b1658439, size=32, cache=test
[   33.047439] 
[   33.048436] allocated by task 294 on cpu 0 at 33.041767s (0.006656s ago):
[   33.049244]  test_alloc+0x230/0x628
[   33.049734]  test_double_free+0xd4/0x238
[   33.050260]  kunit_try_run_case+0x170/0x3f0
[   33.050791]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.051419]  kthread+0x318/0x620
[   33.051916]  ret_from_fork+0x10/0x20
[   33.052397] 
[   33.052739] freed by task 294 on cpu 0 at 33.041857s (0.010870s ago):
[   33.053508]  test_double_free+0xf0/0x238
[   33.054061]  kunit_try_run_case+0x170/0x3f0
[   33.054676]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.055340]  kthread+0x318/0x620
[   33.055783]  ret_from_fork+0x10/0x20
[   33.056327] 
[   33.056688] CPU: 0 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   33.057567] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.058179] Hardware name: linux,dummy-virt (DT)
[   33.058653] ==================================================================
[   32.938350] ==================================================================
[   32.939152] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   32.939152] 
[   32.939956] Invalid free of 0x000000004675fcfb (in kfence-#125):
[   32.940551]  test_double_free+0x1bc/0x238
[   32.941276]  kunit_try_run_case+0x170/0x3f0
[   32.941866]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.942503]  kthread+0x318/0x620
[   32.942942]  ret_from_fork+0x10/0x20
[   32.943514] 
[   32.943897] kfence-#125: 0x000000004675fcfb-0x0000000023770ba1, size=32, cache=kmalloc-32
[   32.943897] 
[   32.944977] allocated by task 292 on cpu 0 at 32.937844s (0.007122s ago):
[   32.945699]  test_alloc+0x29c/0x628
[   32.946264]  test_double_free+0xd4/0x238
[   32.946902]  kunit_try_run_case+0x170/0x3f0
[   32.947545]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.948261]  kthread+0x318/0x620
[   32.948810]  ret_from_fork+0x10/0x20
[   32.949370] 
[   32.949705] freed by task 292 on cpu 0 at 32.937976s (0.011717s ago):
[   32.950568]  test_double_free+0x1ac/0x238
[   32.951103]  kunit_try_run_case+0x170/0x3f0
[   32.951727]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.952392]  kthread+0x318/0x620
[   32.952945]  ret_from_fork+0x10/0x20
[   32.953497] 
[   32.953908] CPU: 0 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   32.954927] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.955453] Hardware name: linux,dummy-virt (DT)
[   32.956053] ==================================================================

[   26.275499] ==================================================================
[   26.276029] BUG: KFENCE: invalid free in test_double_free+0x113/0x260
[   26.276029] 
[   26.276559] Invalid free of 0x(____ptrval____) (in kfence-#106):
[   26.276954]  test_double_free+0x113/0x260
[   26.277192]  kunit_try_run_case+0x1a6/0x480
[   26.277574]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.278186]  kthread+0x324/0x6e0
[   26.278474]  ret_from_fork+0x41/0x80
[   26.278715]  ret_from_fork_asm+0x1a/0x30
[   26.279132] 
[   26.279358] kfence-#106: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   26.279358] 
[   26.280041] allocated by task 313 on cpu 1 at 26.275102s (0.004933s ago):
[   26.280597]  test_alloc+0x2a7/0x10f0
[   26.280835]  test_double_free+0xdc/0x260
[   26.281232]  kunit_try_run_case+0x1a6/0x480
[   26.281782]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.282241]  kthread+0x324/0x6e0
[   26.282478]  ret_from_fork+0x41/0x80
[   26.282777]  ret_from_fork_asm+0x1a/0x30
[   26.283331] 
[   26.283555] freed by task 313 on cpu 1 at 26.275198s (0.008351s ago):
[   26.284185]  test_double_free+0xfb/0x260
[   26.284499]  kunit_try_run_case+0x1a6/0x480
[   26.284763]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.285284]  kthread+0x324/0x6e0
[   26.285655]  ret_from_fork+0x41/0x80
[   26.286049]  ret_from_fork_asm+0x1a/0x30
[   26.286483] 
[   26.286698] CPU: 1 UID: 0 PID: 313 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   26.287296] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.287548] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.287984] ==================================================================
[   26.171517] ==================================================================
[   26.172167] BUG: KFENCE: invalid free in test_double_free+0x1d5/0x260
[   26.172167] 
[   26.172507] Invalid free of 0x(____ptrval____) (in kfence-#105):
[   26.172700]  test_double_free+0x1d5/0x260
[   26.172861]  kunit_try_run_case+0x1a6/0x480
[   26.173068]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.173399]  kthread+0x324/0x6e0
[   26.173674]  ret_from_fork+0x41/0x80
[   26.174046]  ret_from_fork_asm+0x1a/0x30
[   26.174306] 
[   26.174518] kfence-#105: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   26.174518] 
[   26.175370] allocated by task 311 on cpu 0 at 26.171037s (0.004326s ago):
[   26.175876]  test_alloc+0x365/0x10f0
[   26.176185]  test_double_free+0xdc/0x260
[   26.176536]  kunit_try_run_case+0x1a6/0x480
[   26.177462]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.177957]  kthread+0x324/0x6e0
[   26.178202]  ret_from_fork+0x41/0x80
[   26.178669]  ret_from_fork_asm+0x1a/0x30
[   26.179167] 
[   26.179319] freed by task 311 on cpu 0 at 26.171153s (0.008161s ago):
[   26.179694]  test_double_free+0x1e2/0x260
[   26.180157]  kunit_try_run_case+0x1a6/0x480
[   26.181017]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.181952]  kthread+0x324/0x6e0
[   26.182699]  ret_from_fork+0x41/0x80
[   26.183045]  ret_from_fork_asm+0x1a/0x30
[   26.183340] 
[   26.183612] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   26.184251] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.184685] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.185166] ==================================================================