diff options
author | 2024-06-03 09:24:44 +0800 | |
---|---|---|
committer | 2024-06-11 21:37:25 +0530 | |
commit | e3215deca4520773cd2b155bed164c12365149a7 (patch) | |
tree | a5c55d584e2c1d8a265305b22d706def9e3bb198 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dmaengine: xilinx: xdma: Fix data synchronisation in xdma_channel_isr() (diff) | |
download | wireguard-linux-e3215deca4520773cd2b155bed164c12365149a7.tar.xz wireguard-linux-e3215deca4520773cd2b155bed164c12365149a7.zip |
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 <lirongqing@baidu.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Fenghua Yu <fenghua.yu@intel.com>
Link: https://lore.kernel.org/r/20240603012444.11902-1-lirongqing@baidu.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions