In the Linux kernel, the following vulnerability has been resolved: dmaengine: xilinx_dma: Fix channel idle state management in AXIDMA and MCDMA interrupt handlers Fix a race condition in AXIDMA and MCDMA irq handlers where the channel could be incorrectly marked as idle and attempt spurious transfers when descriptors are still being processed. The issue occurs when: 1. Multiple descriptors are queued and active. 2. An interrupt fires after completing some descriptors. 3. xilinx_dma_complete_descriptor() moves completed descriptors to done_list. 4. Channel is marked idle and start_transfer() is called even though active_list still contains unprocessed descriptors. 5. This leads to premature transfer attempts and potential descriptor corruption or missed completions. Only mark the channel as idle and start new transfers when the active list is actually empty, ensuring proper channel state management and avoiding spurious transfer attempts.
https://git.kernel.org/stable/c/fdaf297ab275c6efecac5e87669c31bc89b74297
https://git.kernel.org/stable/c/ec927657524be4438447944a58173c7baf7f2384
https://git.kernel.org/stable/c/c3e943490ced0b9ad475844eda7661f6a9bcfb4a
https://git.kernel.org/stable/c/c27d16fd2358b2fc3e1ffaca03afd11dc28630ea
https://git.kernel.org/stable/c/7f4b989d7d87381927b98d64492f8dcf979f57ab
https://git.kernel.org/stable/c/5459e02707b27a964ae72e028d3ff72a3b687c4a
https://git.kernel.org/stable/c/425630e9eea1f9f8912b8c6abf01e0dab1e27917
https://git.kernel.org/stable/c/0b6d055edb55ecadadf54e930c2b4fab76fa9a5a