[GIT PULL] dma-mapping fixes for Linux 6.7
From: Christoph Hellwig
Date: Fri Nov 10 2023 - 15:52:09 EST
The following changes since commit 8f6f76a6a29f36d2f3e4510d0bde5046672f6924:
Merge tag 'mm-nonmm-stable-2023-11-02-14-08' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm (2023-11-02 20:53:31 -1000)
are available in the Git repository at:
git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-6.7-2023-11-10
for you to fetch changes up to 53c87e846e335e3c18044c397cc35178163d7827:
swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC (2023-11-08 16:27:05 +0100)
----------------------------------------------------------------
ma-mapping fixes for Linux 6.7
- don't leave pages decrypted for DMA in encrypted memory setups linger
around on failure (Petr Tesarik)
- fix an out of bounds access in the new dynamic swiotlb code (Petr Tesarik)
- fix dma_addressing_limited for systems with weird physical memory layouts
(Jia He)
----------------------------------------------------------------
Jia He (2):
dma-mapping: move dma_addressing_limited() out of line
dma-mapping: fix dma_addressing_limited() if dma_range_map can't cover all system RAM
Petr Tesarik (2):
swiotlb: do not free decrypted pages if dynamic
swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC
include/linux/dma-mapping.h | 19 +++++--------------
kernel/dma/direct.c | 40 ++++++++++++++++++++++++++++++++++++++++
kernel/dma/direct.h | 1 +
kernel/dma/mapping.c | 22 ++++++++++++++++++++++
kernel/dma/swiotlb.c | 28 ++++++++++++++++++----------
5 files changed, 86 insertions(+), 24 deletions(-)