linux/drivers/dma/idxd
Tuo Li e1c9866173 dmaengine: idxd: fix possible wrong descriptor completion in llist_abort_desc()
At the end of this function, d is the traversal cursor of flist, but the
code completes found instead. This can lead to issues such as NULL pointer
dereferences, double completion, or descriptor leaks.

Fix this by completing d instead of found in the final
list_for_each_entry_safe() loop.

Fixes: aa8d18becc ("dmaengine: idxd: add callback support for iaa crypto")
Signed-off-by: Tuo Li <islituo@gmail.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260106032428.162445-1-islituo@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2026-03-09 12:27:11 +01:00
..
bus.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
cdev.c dmaengine: idxd: Fix freeing the allocated ida too late 2026-02-25 16:39:18 +05:30
compat.c dmaengine: idxd: fix device leaks on compat bind and unbind 2025-12-14 14:47:24 +05:30
debugfs.c dmaengine: idxd: Convert spinlock to mutex to lock evl workqueue 2024-04-07 13:31:44 +05:30
defaults.c dmaengine: idxd: Replace memset(0) + strscpy() with strscpy_pad() 2025-08-20 23:01:27 +05:30
device.c dmaengine: idxd: Fix leaking event log memory 2026-02-25 16:39:18 +05:30
dma.c dmaengine: idxd: Wait for submitted operations on .device_synchronize() 2026-02-25 16:39:18 +05:30
idxd.h dmaengine: idxd: Flush kernel workqueues on Function Level Reset 2026-02-25 16:39:17 +05:30
init.c dmaengine: idxd: Fix possible invalid memory access after FLR 2026-02-25 16:39:17 +05:30
irq.c dmaengine: idxd: Flush kernel workqueues on Function Level Reset 2026-02-25 16:39:17 +05:30
Makefile module: Convert default symbol namespace to string literal 2024-12-03 08:22:25 -08:00
perfmon.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
perfmon.h dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
registers.h dmaengine: idxd: Add Max SGL Size Support for DSA3.0 2026-01-09 08:36:00 +05:30
submit.c dmaengine: idxd: fix possible wrong descriptor completion in llist_abort_desc() 2026-03-09 12:27:11 +01:00
sysfs.c dmaengine: idxd: Fix not releasing workqueue on .release() 2026-02-25 16:39:18 +05:30