public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/6] Fix double allocation in swiotlb_alloc()
@ 2024-03-08 15:28 Will Deacon
  2024-03-08 15:28 ` [PATCH v6 1/6] swiotlb: Fix double-allocation of slots due to broken alignment handling Will Deacon
                   ` (8 more replies)
  0 siblings, 9 replies; 30+ messages in thread
From: Will Deacon @ 2024-03-08 15:28 UTC (permalink / raw)
  To: linux-kernel
  Cc: kernel-team, Will Deacon, iommu, Christoph Hellwig,
	Marek Szyprowski, Robin Murphy, Petr Tesarik, Dexuan Cui,
	Nicolin Chen, Michael Kelley

Hi again, folks,

This is version six of the patches which I previously posted at:

v1: https://lore.kernel.org/r/20240126151956.10014-1-will@kernel.org
v2: https://lore.kernel.org/r/20240131122543.14791-1-will@kernel.org
v3: https://lore.kernel.org/r/20240205190127.20685-1-will@kernel.org
v4: https://lore.kernel.org/r/20240221113504.7161-1-will@kernel.org
v5: https://lore.kernel.org/r/20240228133930.15400-1-will@kernel.org

Changes since v5 include:

  - Rework the final patch to preserve page-alignment for streaming
    requests without a DMA alignment mask

  - Added Reviewed-by tags from Michael

Cheers,

Will

Cc: iommu@lists.linux.dev
Cc: Christoph Hellwig <hch@lst.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Petr Tesarik <petr.tesarik1@huawei-partners.com>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Nicolin Chen <nicolinc@nvidia.com>
Cc: Michael Kelley <mhklinux@outlook.com>

--->8

Nicolin Chen (1):
  iommu/dma: Force swiotlb_max_mapping_size on an untrusted device

Will Deacon (5):
  swiotlb: Fix double-allocation of slots due to broken alignment
    handling
  swiotlb: Enforce page alignment in swiotlb_alloc()
  swiotlb: Honour dma_alloc_coherent() alignment in swiotlb_alloc()
  swiotlb: Fix alignment checks when both allocation and DMA masks are
    present
  swiotlb: Reinstate page-alignment for mappings >= PAGE_SIZE

 drivers/iommu/dma-iommu.c |  9 ++++++++
 kernel/dma/swiotlb.c      | 47 ++++++++++++++++++++++++++++-----------
 2 files changed, 43 insertions(+), 13 deletions(-)

-- 
2.44.0.278.ge034bb2e1d-goog


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2024-03-18 12:36 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-08 15:28 [PATCH v6 0/6] Fix double allocation in swiotlb_alloc() Will Deacon
2024-03-08 15:28 ` [PATCH v6 1/6] swiotlb: Fix double-allocation of slots due to broken alignment handling Will Deacon
2024-03-18  3:39   ` Michael Kelley
2024-03-18 12:36     ` Petr Tesařík
2024-03-08 15:28 ` [PATCH v6 2/6] swiotlb: Enforce page alignment in swiotlb_alloc() Will Deacon
2024-03-08 15:28 ` [PATCH v6 3/6] swiotlb: Honour dma_alloc_coherent() " Will Deacon
2024-03-08 15:28 ` [PATCH v6 4/6] swiotlb: Fix alignment checks when both allocation and DMA masks are present Will Deacon
2024-03-11 20:05   ` Petr Tesařík
2024-03-11 21:36     ` Michael Kelley
2024-03-11 22:49       ` Will Deacon
2024-03-12  8:52         ` Petr Tesařík
2024-03-12  9:38           ` Robin Murphy
2024-03-12  9:51             ` Petr Tesařík
2024-03-12 12:57               ` Robin Murphy
2024-03-12  0:52       ` Nicolin Chen
2024-03-12 10:44         ` Petr Tesařík
2024-03-08 15:28 ` [PATCH v6 5/6] iommu/dma: Force swiotlb_max_mapping_size on an untrusted device Will Deacon
2024-03-08 15:28 ` [PATCH v6 6/6] swiotlb: Reinstate page-alignment for mappings >= PAGE_SIZE Will Deacon
2024-03-08 16:08   ` Robin Murphy
2024-03-08 16:38     ` Petr Tesařík
2024-03-08 16:50       ` Christoph Hellwig
2024-03-08 17:22         ` Petr Tesařík
2024-03-08 17:17       ` Robin Murphy
2024-03-08 18:08         ` Petr Tesařík
2024-03-08 17:28   ` Petr Tesařík
2024-03-08 19:02   ` Michael Kelley
2024-03-08 19:21 ` [PATCH v6 0/6] Fix double allocation in swiotlb_alloc() Michael Kelley
2024-03-11 13:36 ` Christoph Hellwig
2024-03-11 23:19   ` Will Deacon
2024-03-11 22:55 ` Nicolin Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox