This is a backport of ddbd89deb7d3 ("swiotlb: fix info leak with DMA_FROM_DEVICE") and aa6f8dcbab47 ("swiotlb: rework "fix info leak with DMA_FROM_DEVICE"") for 5.4.y. I had to handle some merge conflicts, that at this point we have swiotlb_tbl_sync_single() as opposed to swiotlb_sync_single_for_device(), and also a file rename from Documentation/DMA-attributes.txt to Documentation/core-api/dma-attributes.rst. Halil Pasic (2): swiotlb: fix info leak with DMA_FROM_DEVICE swiotlb: rework "fix info leak with DMA_FROM_DEVICE" kernel/dma/swiotlb.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) base-commit: 7f44fdc1563d6bca95ee9fb4414e4b8286bccb0c -- 2.32.0