Hay
Date
July 4, 2025, 3:11 p.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   67.016865] ==================================================================
[   67.016994] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   67.016994] 
[   67.017144] Use-after-free read at 0x(____ptrval____) (in kfence-#121):
[   67.017616]  test_use_after_free_read+0x114/0x248
[   67.022304]  kunit_try_run_case+0x170/0x3f0
[   67.026470]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   67.031939]  kthread+0x328/0x630
[   67.035151]  ret_from_fork+0x10/0x20
[   67.038709] 
[   67.040189] kfence-#121: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   67.040189] 
[   67.049302] allocated by task 346 on cpu 7 at 67.016811s (0.032489s ago):
[   67.056089]  test_alloc+0x230/0x628
[   67.059543]  test_use_after_free_read+0xd0/0x248
[   67.064144]  kunit_try_run_case+0x170/0x3f0
[   67.068310]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   67.073779]  kthread+0x328/0x630
[   67.076990]  ret_from_fork+0x10/0x20
[   67.080551] 
[   67.082026] freed by task 346 on cpu 7 at 67.016826s (0.065198s ago):
[   67.088459]  test_use_after_free_read+0xf0/0x248
[   67.093049]  kunit_try_run_case+0x170/0x3f0
[   67.097216]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   67.102684]  kthread+0x328/0x630
[   67.105896]  ret_from_fork+0x10/0x20
[   67.109457] 
[   67.110942] CPU: 7 UID: 0 PID: 346 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT 
[   67.120838] Tainted: [B]=BAD_PAGE, [N]=TEST
[   67.124995] Hardware name: WinLink E850-96 board (DT)
[   67.130031] ==================================================================
[   66.792863] ==================================================================
[   66.792999] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   66.792999] 
[   66.793152] Use-after-free read at 0x(____ptrval____) (in kfence-#119):
[   66.793620]  test_use_after_free_read+0x114/0x248
[   66.798307]  kunit_try_run_case+0x170/0x3f0
[   66.802474]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   66.807943]  kthread+0x328/0x630
[   66.811155]  ret_from_fork+0x10/0x20
[   66.814713] 
[   66.816193] kfence-#119: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   66.816193] 
[   66.825827] allocated by task 344 on cpu 5 at 66.792809s (0.033016s ago):
[   66.832611]  test_alloc+0x29c/0x628
[   66.836067]  test_use_after_free_read+0xd0/0x248
[   66.840668]  kunit_try_run_case+0x170/0x3f0
[   66.844836]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   66.850303]  kthread+0x328/0x630
[   66.853515]  ret_from_fork+0x10/0x20
[   66.857075] 
[   66.858552] freed by task 344 on cpu 5 at 66.792824s (0.065725s ago):
[   66.864985]  test_use_after_free_read+0x1c0/0x248
[   66.869661]  kunit_try_run_case+0x170/0x3f0
[   66.873827]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   66.879296]  kthread+0x328/0x630
[   66.882508]  ret_from_fork+0x10/0x20
[   66.886068] 
[   66.887554] CPU: 5 UID: 0 PID: 344 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT 
[   66.897448] Tainted: [B]=BAD_PAGE, [N]=TEST
[   66.901606] Hardware name: WinLink E850-96 board (DT)
[   66.906643] ==================================================================

[   19.952898] ==================================================================
[   19.952967] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   19.952967] 
[   19.953047] Use-after-free read at 0x00000000a845f17d (in kfence-#89):
[   19.953196]  test_use_after_free_read+0x114/0x248
[   19.953350]  kunit_try_run_case+0x170/0x3f0
[   19.953491]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.953536]  kthread+0x328/0x630
[   19.953622]  ret_from_fork+0x10/0x20
[   19.953675] 
[   19.953798] kfence-#89: 0x00000000a845f17d-0x0000000096ac0eee, size=32, cache=kmalloc-32
[   19.953798] 
[   19.954112] allocated by task 300 on cpu 1 at 19.952325s (0.001725s ago):
[   19.954182]  test_alloc+0x29c/0x628
[   19.954273]  test_use_after_free_read+0xd0/0x248
[   19.954328]  kunit_try_run_case+0x170/0x3f0
[   19.954370]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.954415]  kthread+0x328/0x630
[   19.954546]  ret_from_fork+0x10/0x20
[   19.954723] 
[   19.954801] freed by task 300 on cpu 1 at 19.952410s (0.002380s ago):
[   19.954874]  test_use_after_free_read+0x1c0/0x248
[   19.955013]  kunit_try_run_case+0x170/0x3f0
[   19.955068]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.955113]  kthread+0x328/0x630
[   19.955152]  ret_from_fork+0x10/0x20
[   19.955296] 
[   19.955427] CPU: 1 UID: 0 PID: 300 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT 
[   19.955515] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.955543] Hardware name: linux,dummy-virt (DT)
[   19.955675] ==================================================================
[   20.061211] ==================================================================
[   20.061343] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x114/0x248
[   20.061343] 
[   20.061420] Use-after-free read at 0x000000003ca692f6 (in kfence-#90):
[   20.061470]  test_use_after_free_read+0x114/0x248
[   20.061514]  kunit_try_run_case+0x170/0x3f0
[   20.061598]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.061738]  kthread+0x328/0x630
[   20.061781]  ret_from_fork+0x10/0x20
[   20.061841] 
[   20.061881] kfence-#90: 0x000000003ca692f6-0x00000000ce1b73df, size=32, cache=test
[   20.061881] 
[   20.061997] allocated by task 302 on cpu 1 at 20.060986s (0.000942s ago):
[   20.062064]  test_alloc+0x230/0x628
[   20.062127]  test_use_after_free_read+0xd0/0x248
[   20.062179]  kunit_try_run_case+0x170/0x3f0
[   20.062220]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.062273]  kthread+0x328/0x630
[   20.062321]  ret_from_fork+0x10/0x20
[   20.062361] 
[   20.062383] freed by task 302 on cpu 1 at 20.061040s (0.001340s ago):
[   20.062478]  test_use_after_free_read+0xf0/0x248
[   20.062519]  kunit_try_run_case+0x170/0x3f0
[   20.062559]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.062603]  kthread+0x328/0x630
[   20.062910]  ret_from_fork+0x10/0x20
[   20.062968] 
[   20.063158] CPU: 1 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT 
[   20.063344] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.063377] Hardware name: linux,dummy-virt (DT)
[   20.063412] ==================================================================

[   22.005099] ==================================================================
[   22.005577] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   22.005577] 
[   22.005953] Use-after-free read at 0x(____ptrval____) (in kfence-#108):
[   22.006583]  test_use_after_free_read+0x129/0x270
[   22.007737]  kunit_try_run_case+0x1a5/0x480
[   22.008292]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.008661]  kthread+0x337/0x6f0
[   22.008933]  ret_from_fork+0x41/0x80
[   22.009353]  ret_from_fork_asm+0x1a/0x30
[   22.009646] 
[   22.009849] kfence-#108: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   22.009849] 
[   22.010373] allocated by task 318 on cpu 1 at 22.004859s (0.005508s ago):
[   22.010864]  test_alloc+0x2a6/0x10f0
[   22.011090]  test_use_after_free_read+0xdc/0x270
[   22.011571]  kunit_try_run_case+0x1a5/0x480
[   22.011791]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.012022]  kthread+0x337/0x6f0
[   22.012226]  ret_from_fork+0x41/0x80
[   22.012415]  ret_from_fork_asm+0x1a/0x30
[   22.012599] 
[   22.012716] freed by task 318 on cpu 1 at 22.004955s (0.007756s ago):
[   22.013373]  test_use_after_free_read+0xfb/0x270
[   22.013793]  kunit_try_run_case+0x1a5/0x480
[   22.014145]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.014410]  kthread+0x337/0x6f0
[   22.014639]  ret_from_fork+0x41/0x80
[   22.014980]  ret_from_fork_asm+0x1a/0x30
[   22.015378] 
[   22.015635] CPU: 1 UID: 0 PID: 318 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT(voluntary) 
[   22.016329] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.016547] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.017251] ==================================================================
[   21.901321] ==================================================================
[   21.901826] BUG: KFENCE: use-after-free read in test_use_after_free_read+0x129/0x270
[   21.901826] 
[   21.902507] Use-after-free read at 0x(____ptrval____) (in kfence-#107):
[   21.902870]  test_use_after_free_read+0x129/0x270
[   21.903218]  kunit_try_run_case+0x1a5/0x480
[   21.903603]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.903826]  kthread+0x337/0x6f0
[   21.904176]  ret_from_fork+0x41/0x80
[   21.904497]  ret_from_fork_asm+0x1a/0x30
[   21.904695] 
[   21.904821] kfence-#107: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   21.904821] 
[   21.905439] allocated by task 316 on cpu 1 at 21.900937s (0.004497s ago):
[   21.906003]  test_alloc+0x364/0x10f0
[   21.906287]  test_use_after_free_read+0xdc/0x270
[   21.906703]  kunit_try_run_case+0x1a5/0x480
[   21.906963]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.907193]  kthread+0x337/0x6f0
[   21.907380]  ret_from_fork+0x41/0x80
[   21.907597]  ret_from_fork_asm+0x1a/0x30
[   21.908062] 
[   21.908303] freed by task 316 on cpu 1 at 21.901047s (0.007251s ago):
[   21.908834]  test_use_after_free_read+0x1e7/0x270
[   21.909101]  kunit_try_run_case+0x1a5/0x480
[   21.909449]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.909768]  kthread+0x337/0x6f0
[   21.910069]  ret_from_fork+0x41/0x80
[   21.910354]  ret_from_fork_asm+0x1a/0x30
[   21.910575] 
[   21.910801] CPU: 1 UID: 0 PID: 316 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc2 #1 PREEMPT(voluntary) 
[   21.911442] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.911701] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.912015] ==================================================================