Hay
Date
July 17, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.145213] ==================================================================
[   21.145417] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   21.145417] 
[   21.145818] Use-after-free read at 0x00000000c6575446 (in kfence-#93):
[   21.145899]  test_use_after_free_read+0x114/0x248
[   21.146071]  kunit_try_run_case+0x170/0x3f0
[   21.146270]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.146317]  kthread+0x328/0x630
[   21.146353]  ret_from_fork+0x10/0x20
[   21.146393] 
[   21.146419] kfence-#93: 0x00000000c6575446-0x0000000006181b44, size=32, cache=test
[   21.146419] 
[   21.146468] allocated by task 297 on cpu 0 at 21.144781s (0.001683s ago):
[   21.146537]  test_alloc+0x230/0x628
[   21.146588]  test_use_after_free_read+0xd0/0x248
[   21.146630]  kunit_try_run_case+0x170/0x3f0
[   21.146669]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.146724]  kthread+0x328/0x630
[   21.146759]  ret_from_fork+0x10/0x20
[   21.146905] 
[   21.147028] freed by task 297 on cpu 0 at 21.144872s (0.002138s ago):
[   21.147443]  test_use_after_free_read+0xf0/0x248
[   21.147488]  kunit_try_run_case+0x170/0x3f0
[   21.147528]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.147582]  kthread+0x328/0x630
[   21.147618]  ret_from_fork+0x10/0x20
[   21.147769] 
[   21.147857] CPU: 0 UID: 0 PID: 297 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.147997] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.148042] Hardware name: linux,dummy-virt (DT)
[   21.148074] ==================================================================
[   21.040970] ==================================================================
[   21.041097] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   21.041097] 
[   21.041199] Use-after-free read at 0x00000000d02ba65c (in kfence-#92):
[   21.041258]  test_use_after_free_read+0x114/0x248
[   21.041361]  kunit_try_run_case+0x170/0x3f0
[   21.041408]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.041450]  kthread+0x328/0x630
[   21.041489]  ret_from_fork+0x10/0x20
[   21.041536] 
[   21.041657] kfence-#92: 0x00000000d02ba65c-0x000000006aa22cad, size=32, cache=kmalloc-32
[   21.041657] 
[   21.041924] allocated by task 295 on cpu 0 at 21.040413s (0.001493s ago):
[   21.042087]  test_alloc+0x29c/0x628
[   21.042223]  test_use_after_free_read+0xd0/0x248
[   21.042265]  kunit_try_run_case+0x170/0x3f0
[   21.042303]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.042345]  kthread+0x328/0x630
[   21.042385]  ret_from_fork+0x10/0x20
[   21.042596] 
[   21.042726] freed by task 295 on cpu 0 at 21.040487s (0.002158s ago):
[   21.043151]  test_use_after_free_read+0x1c0/0x248
[   21.043218]  kunit_try_run_case+0x170/0x3f0
[   21.043310]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.043354]  kthread+0x328/0x630
[   21.043403]  ret_from_fork+0x10/0x20
[   21.043459] 
[   21.043615] CPU: 0 UID: 0 PID: 295 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   21.043886] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.043999] Hardware name: linux,dummy-virt (DT)
[   21.044040] ==================================================================

[   17.739335] ==================================================================
[   17.739890] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   17.739890] 
[   17.740323] Use-after-free read at 0x(____ptrval____) (in kfence-#75):
[   17.740682]  test_use_after_free_read+0x129/0x270
[   17.740905]  kunit_try_run_case+0x1a5/0x480
[   17.741098]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.741273]  kthread+0x337/0x6f0
[   17.741415]  ret_from_fork+0x116/0x1d0
[   17.741659]  ret_from_fork_asm+0x1a/0x30
[   17.741884] 
[   17.742215] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.742215] 
[   17.743031] allocated by task 312 on cpu 0 at 17.739112s (0.003917s ago):
[   17.743377]  test_alloc+0x364/0x10f0
[   17.743546]  test_use_after_free_read+0xdc/0x270
[   17.743797]  kunit_try_run_case+0x1a5/0x480
[   17.743954]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.744139]  kthread+0x337/0x6f0
[   17.744338]  ret_from_fork+0x116/0x1d0
[   17.744532]  ret_from_fork_asm+0x1a/0x30
[   17.744759] 
[   17.745043] freed by task 312 on cpu 0 at 17.739178s (0.005862s ago):
[   17.745356]  test_use_after_free_read+0x1e7/0x270
[   17.746000]  kunit_try_run_case+0x1a5/0x480
[   17.746219]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.746566]  kthread+0x337/0x6f0
[   17.746852]  ret_from_fork+0x116/0x1d0
[   17.747020]  ret_from_fork_asm+0x1a/0x30
[   17.747244] 
[   17.747554] CPU: 0 UID: 0 PID: 312 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.748062] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.748417] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.748955] ==================================================================
[   17.843403] ==================================================================
[   17.843993] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   17.843993] 
[   17.844408] Use-after-free read at 0x(____ptrval____) (in kfence-#76):
[   17.844737]  test_use_after_free_read+0x129/0x270
[   17.844949]  kunit_try_run_case+0x1a5/0x480
[   17.845140]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.845400]  kthread+0x337/0x6f0
[   17.845578]  ret_from_fork+0x116/0x1d0
[   17.845746]  ret_from_fork_asm+0x1a/0x30
[   17.845942] 
[   17.846034] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.846034] 
[   17.846419] allocated by task 314 on cpu 1 at 17.843219s (0.003198s ago):
[   17.846697]  test_alloc+0x2a6/0x10f0
[   17.846908]  test_use_after_free_read+0xdc/0x270
[   17.847099]  kunit_try_run_case+0x1a5/0x480
[   17.847248]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.847476]  kthread+0x337/0x6f0
[   17.847647]  ret_from_fork+0x116/0x1d0
[   17.847812]  ret_from_fork_asm+0x1a/0x30
[   17.848022] 
[   17.848107] freed by task 314 on cpu 1 at 17.843267s (0.004837s ago):
[   17.848334]  test_use_after_free_read+0xfb/0x270
[   17.848559]  kunit_try_run_case+0x1a5/0x480
[   17.848780]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.849037]  kthread+0x337/0x6f0
[   17.849219]  ret_from_fork+0x116/0x1d0
[   17.849411]  ret_from_fork_asm+0x1a/0x30
[   17.849596] 
[   17.849709] CPU: 1 UID: 0 PID: 314 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.850142] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.850289] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.850680] ==================================================================