aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorLi RongQing <[email protected]>2024-06-03 09:24:44 +0800
committerVinod Koul <[email protected]>2024-06-11 21:37:25 +0530
commite3215deca4520773cd2b155bed164c12365149a7 (patch)
treea5c55d584e2c1d8a265305b22d706def9e3bb198 /tools/testing/selftests/bpf/progs/test_autoload.c
parent462237d2d93fc9e9221d1cf9f773954d27da83c0 (diff)
dmaengine: idxd: Fix possible Use-After-Free in irq_process_work_list
Use list_for_each_entry_safe() to allow iterating through the list and deleting the entry in the iteration process. The descriptor is freed via idxd_desc_complete() and there's a slight chance may cause issue for the list iterator when the descriptor is reused by another thread without it being deleted from the list. Fixes: 16e19e11228b ("dmaengine: idxd: Fix list corruption in description completion") Signed-off-by: Li RongQing <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Reviewed-by: Fenghua Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions