Hay
Date
July 19, 2025, 11:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.656847] ==================================================================
[   19.657012] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   19.657012] 
[   19.657186] Use-after-free read at 0x0000000017c6b58f (in kfence-#85):
[   19.657240]  test_use_after_free_read+0x114/0x248
[   19.657304]  kunit_try_run_case+0x170/0x3f0
[   19.657350]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.657394]  kthread+0x328/0x630
[   19.657702]  ret_from_fork+0x10/0x20
[   19.657780] 
[   19.657808] kfence-#85: 0x0000000017c6b58f-0x000000007bf89467, size=32, cache=test
[   19.657808] 
[   19.657918] allocated by task 297 on cpu 1 at 19.656431s (0.001477s ago):
[   19.657989]  test_alloc+0x230/0x628
[   19.658047]  test_use_after_free_read+0xd0/0x248
[   19.658090]  kunit_try_run_case+0x170/0x3f0
[   19.658195]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.658281]  kthread+0x328/0x630
[   19.658337]  ret_from_fork+0x10/0x20
[   19.658447] 
[   19.658494] freed by task 297 on cpu 1 at 19.656492s (0.001984s ago):
[   19.658604]  test_use_after_free_read+0xf0/0x248
[   19.658870]  kunit_try_run_case+0x170/0x3f0
[   19.658986]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.659129]  kthread+0x328/0x630
[   19.659205]  ret_from_fork+0x10/0x20
[   19.659248] 
[   19.659300] CPU: 1 UID: 0 PID: 297 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   19.659383] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.659412] Hardware name: linux,dummy-virt (DT)
[   19.659705] ==================================================================
[   19.555092] ==================================================================
[   19.555583] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   19.555583] 
[   19.555703] Use-after-free read at 0x000000006f375039 (in kfence-#84):
[   19.555758]  test_use_after_free_read+0x114/0x248
[   19.555805]  kunit_try_run_case+0x170/0x3f0
[   19.555933]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.555995]  kthread+0x328/0x630
[   19.556046]  ret_from_fork+0x10/0x20
[   19.556100] 
[   19.556136] kfence-#84: 0x000000006f375039-0x00000000c083ec5a, size=32, cache=kmalloc-32
[   19.556136] 
[   19.556197] allocated by task 295 on cpu 1 at 19.554203s (0.001990s ago):
[   19.556278]  test_alloc+0x29c/0x628
[   19.556337]  test_use_after_free_read+0xd0/0x248
[   19.556390]  kunit_try_run_case+0x170/0x3f0
[   19.556428]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.556480]  kthread+0x328/0x630
[   19.556516]  ret_from_fork+0x10/0x20
[   19.556556] 
[   19.556594] freed by task 295 on cpu 1 at 19.554346s (0.002243s ago):
[   19.556674]  test_use_after_free_read+0x1c0/0x248
[   19.556747]  kunit_try_run_case+0x170/0x3f0
[   19.556794]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.556847]  kthread+0x328/0x630
[   19.556897]  ret_from_fork+0x10/0x20
[   19.556936] 
[   19.556990] CPU: 1 UID: 0 PID: 295 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   19.557095] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.557124] Hardware name: linux,dummy-virt (DT)
[   19.557160] ==================================================================

[   17.796879] ==================================================================
[   17.797366] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   17.797366] 
[   17.797776] Use-after-free read at 0x(____ptrval____) (in kfence-#72):
[   17.798104]  test_use_after_free_read+0x129/0x270
[   17.798292]  kunit_try_run_case+0x1a5/0x480
[   17.798442]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.798697]  kthread+0x337/0x6f0
[   17.798997]  ret_from_fork+0x116/0x1d0
[   17.799171]  ret_from_fork_asm+0x1a/0x30
[   17.799462] 
[   17.799599] kfence-#72: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.799599] 
[   17.800061] allocated by task 313 on cpu 0 at 17.796658s (0.003400s ago):
[   17.800387]  test_alloc+0x364/0x10f0
[   17.800610]  test_use_after_free_read+0xdc/0x270
[   17.800836]  kunit_try_run_case+0x1a5/0x480
[   17.801038]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.801207]  kthread+0x337/0x6f0
[   17.801329]  ret_from_fork+0x116/0x1d0
[   17.801774]  ret_from_fork_asm+0x1a/0x30
[   17.801981] 
[   17.802224] freed by task 313 on cpu 0 at 17.796723s (0.005406s ago):
[   17.803255]  test_use_after_free_read+0x1e7/0x270
[   17.803633]  kunit_try_run_case+0x1a5/0x480
[   17.804107]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.804378]  kthread+0x337/0x6f0
[   17.804553]  ret_from_fork+0x116/0x1d0
[   17.804722]  ret_from_fork_asm+0x1a/0x30
[   17.804939] 
[   17.805061] CPU: 0 UID: 0 PID: 313 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.805533] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.805723] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.806099] ==================================================================
[   17.900813] ==================================================================
[   17.901239] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   17.901239] 
[   17.901677] Use-after-free read at 0x(____ptrval____) (in kfence-#73):
[   17.901959]  test_use_after_free_read+0x129/0x270
[   17.902185]  kunit_try_run_case+0x1a5/0x480
[   17.902382]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.903220]  kthread+0x337/0x6f0
[   17.903378]  ret_from_fork+0x116/0x1d0
[   17.903582]  ret_from_fork_asm+0x1a/0x30
[   17.903880] 
[   17.903965] kfence-#73: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.903965] 
[   17.904347] allocated by task 315 on cpu 1 at 17.900694s (0.003651s ago):
[   17.904974]  test_alloc+0x2a6/0x10f0
[   17.905239]  test_use_after_free_read+0xdc/0x270
[   17.905495]  kunit_try_run_case+0x1a5/0x480
[   17.905857]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.906191]  kthread+0x337/0x6f0
[   17.906337]  ret_from_fork+0x116/0x1d0
[   17.906635]  ret_from_fork_asm+0x1a/0x30
[   17.906789] 
[   17.906889] freed by task 315 on cpu 1 at 17.900731s (0.006155s ago):
[   17.907220]  test_use_after_free_read+0xfb/0x270
[   17.907410]  kunit_try_run_case+0x1a5/0x480
[   17.907893]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.908240]  kthread+0x337/0x6f0
[   17.908381]  ret_from_fork+0x116/0x1d0
[   17.908588]  ret_from_fork_asm+0x1a/0x30
[   17.908934] 
[   17.909063] CPU: 1 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.909684] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.909955] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.910445] ==================================================================