Hay
Date
May 26, 2025, 9:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.770350] ==================================================================
[   22.770505] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   22.770505] 
[   22.771022] Use-after-free read at 0x000000000ccb60a1 (in kfence-#106):
[   22.771162]  test_use_after_free_read+0x114/0x248
[   22.771774]  kunit_try_run_case+0x170/0x3f0
[   22.771886]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.771991]  kthread+0x328/0x630
[   22.772422]  ret_from_fork+0x10/0x20
[   22.772598] 
[   22.772673] kfence-#106: 0x000000000ccb60a1-0x000000006644583e, size=32, cache=test
[   22.772673] 
[   22.773204] allocated by task 297 on cpu 0 at 22.768672s (0.004521s ago):
[   22.773368]  test_alloc+0x230/0x628
[   22.773809]  test_use_after_free_read+0xd0/0x248
[   22.773908]  kunit_try_run_case+0x170/0x3f0
[   22.773989]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.774476]  kthread+0x328/0x630
[   22.774578]  ret_from_fork+0x10/0x20
[   22.774961] 
[   22.775059] freed by task 297 on cpu 0 at 22.768773s (0.006277s ago):
[   22.775502]  test_use_after_free_read+0xf0/0x248
[   22.775610]  kunit_try_run_case+0x170/0x3f0
[   22.775700]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.776131]  kthread+0x328/0x630
[   22.776219]  ret_from_fork+0x10/0x20
[   22.776302] 
[   22.776892] CPU: 0 UID: 0 PID: 297 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   22.777262] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.777458] Hardware name: linux,dummy-virt (DT)
[   22.777883] ==================================================================
[   22.665748] ==================================================================
[   22.666238] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   22.666238] 
[   22.666859] Use-after-free read at 0x00000000fa56cf99 (in kfence-#105):
[   22.667007]  test_use_after_free_read+0x114/0x248
[   22.667118]  kunit_try_run_case+0x170/0x3f0
[   22.667198]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.667270]  kthread+0x328/0x630
[   22.667349]  ret_from_fork+0x10/0x20
[   22.667410] 
[   22.667454] kfence-#105: 0x00000000fa56cf99-0x000000003c485cfb, size=32, cache=kmalloc-32
[   22.667454] 
[   22.667557] allocated by task 295 on cpu 0 at 22.664487s (0.003062s ago):
[   22.667701]  test_alloc+0x29c/0x628
[   22.667786]  test_use_after_free_read+0xd0/0x248
[   22.668212]  kunit_try_run_case+0x170/0x3f0
[   22.668338]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.668708]  kthread+0x328/0x630
[   22.668791]  ret_from_fork+0x10/0x20
[   22.668884] 
[   22.668936] freed by task 295 on cpu 0 at 22.664940s (0.003988s ago):
[   22.669074]  test_use_after_free_read+0x1c0/0x248
[   22.669165]  kunit_try_run_case+0x170/0x3f0
[   22.669259]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.670105]  kthread+0x328/0x630
[   22.670209]  ret_from_fork+0x10/0x20
[   22.670403] 
[   22.670559] CPU: 0 UID: 0 PID: 295 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   22.670968] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.671118] Hardware name: linux,dummy-virt (DT)
[   22.671202] ==================================================================


[   16.403454] ==================================================================
[   16.403943] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   16.403943] 
[   16.404366] Use-after-free read at 0x(____ptrval____) (in kfence-#72):
[   16.404958]  test_use_after_free_read+0x129/0x270
[   16.405196]  kunit_try_run_case+0x1a5/0x480
[   16.405400]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.405634]  kthread+0x337/0x6f0
[   16.406163]  ret_from_fork+0x116/0x1d0
[   16.406344]  ret_from_fork_asm+0x1a/0x30
[   16.406565] 
[   16.406732] kfence-#72: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.406732] 
[   16.407281] allocated by task 315 on cpu 0 at 16.403312s (0.003966s ago):
[   16.407760]  test_alloc+0x2a6/0x10f0
[   16.408006]  test_use_after_free_read+0xdc/0x270
[   16.408207]  kunit_try_run_case+0x1a5/0x480
[   16.408417]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.408657]  kthread+0x337/0x6f0
[   16.409022]  ret_from_fork+0x116/0x1d0
[   16.409210]  ret_from_fork_asm+0x1a/0x30
[   16.409593] 
[   16.409692] freed by task 315 on cpu 0 at 16.403364s (0.006326s ago):
[   16.410237]  test_use_after_free_read+0xfb/0x270
[   16.410543]  kunit_try_run_case+0x1a5/0x480
[   16.410756]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.411136]  kthread+0x337/0x6f0
[   16.411296]  ret_from_fork+0x116/0x1d0
[   16.411589]  ret_from_fork_asm+0x1a/0x30
[   16.411782] 
[   16.411928] CPU: 0 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   16.412425] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.412611] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.413301] ==================================================================
[   16.299544] ==================================================================
[   16.300016] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   16.300016] 
[   16.300482] Use-after-free read at 0x(____ptrval____) (in kfence-#71):
[   16.300734]  test_use_after_free_read+0x129/0x270
[   16.300976]  kunit_try_run_case+0x1a5/0x480
[   16.301312]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.301529]  kthread+0x337/0x6f0
[   16.301671]  ret_from_fork+0x116/0x1d0
[   16.301860]  ret_from_fork_asm+0x1a/0x30
[   16.302155] 
[   16.302245] kfence-#71: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.302245] 
[   16.302574] allocated by task 313 on cpu 1 at 16.299326s (0.003246s ago):
[   16.303080]  test_alloc+0x364/0x10f0
[   16.303260]  test_use_after_free_read+0xdc/0x270
[   16.303496]  kunit_try_run_case+0x1a5/0x480
[   16.303716]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.303926]  kthread+0x337/0x6f0
[   16.304099]  ret_from_fork+0x116/0x1d0
[   16.304300]  ret_from_fork_asm+0x1a/0x30
[   16.304495] 
[   16.304755] freed by task 313 on cpu 1 at 16.299372s (0.005284s ago):
[   16.305102]  test_use_after_free_read+0x1e7/0x270
[   16.305361]  kunit_try_run_case+0x1a5/0x480
[   16.305605]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.305890]  kthread+0x337/0x6f0
[   16.306084]  ret_from_fork+0x116/0x1d0
[   16.306285]  ret_from_fork_asm+0x1a/0x30
[   16.306508] 
[   16.306634] CPU: 1 UID: 0 PID: 313 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   16.307267] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.307475] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.308347] ==================================================================