Skip to content

xen/iommu: Collection of bug fixes for IOMMU teardown

Julien Grall xen-devel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 6 repliesIn review
  2. v4 posting 2/22 patches 8 repliesSuperseded
  3. v4 posting 1/22 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches20 repliesSuperseded
v25 patches41 repliesSuperseded
v14 patches35 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xen/iommu: x86: Don't try to free page tables is the IOMMU is not enabledxen/drivers/passthrough/x86/iommu.c+3 -01 reply
2/3xen/x86: iommu: Ignore IOMMU mapping requests when a domain is dyingxen/drivers/passthrough/amd/iommu_map.c xen/drivers/passthrough/vtd/iommu.c xen/drivers/passthrough/x86/iommu.c+27 -03 replies
3/3xen/iommu: x86: Clear the root page-table before freeing the page-tablesxen/drivers/passthrough/amd/pci_amd_iommu.c xen/drivers/passthrough/vtd/iommu.c xen/drivers/passthrough/x86/iommu.c +1 more+36 -21 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchIan JacksonJan BeulichKevin Tian
SeriesRelease-Acked-by
1/3R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH for-4.15 v5 0/3] xen/iommu: Collection of bug fixes for IOMMU teardown

From: Julien Grall <[email protected]>

Hi all,

This series is a collection of bug fixes for the IOMMU teardown code. All of them are candidate for 4.15 as they can either leak memory or lead to host crash/host corruption.

This is sent directly on xen-devel because all the issues were either introduced in 4.15 or happen in the domain creation code.

Major changes since v4:
- New patch added (it is a split of patch #1 in v4)

Major changes since v3:
- Remove patch #3 "xen/iommu: x86: Harden the IOMMU page-table allocator" as it is not strictly necessary for 4.15.
- Re-order the patches to avoid on a follow-up patch to fix completely the issue.

Major changes since v2:
- patch #1 "xen/x86: p2m: Don't map the special pages in the IOMMU page-tables" has been removed. This requires Jan's patch [1] to fully mitigate memory leaks.

@Ian, I assumed that the release-acked-by would stand even with the patch split. Let me know if if this is not the case.

Cheers,

[1] <[email protected]>

Julien Grall (3):
xen/iommu: x86: Don't try to free page tables is the IOMMU is not
enabled
xen/x86: iommu: Ignore IOMMU mapping requests when a domain is dying xen/iommu: x86: Clear the root page-table before freeing the
page-tables

 xen/drivers/passthrough/amd/iommu_map.c     | 12 +++++++++++
 xen/drivers/passthrough/amd/pci_amd_iommu.c | 12 ++++++++++-
 xen/drivers/passthrough/vtd/iommu.c         | 24 ++++++++++++++++++++-
 xen/drivers/passthrough/x86/iommu.c         | 19 ++++++++++++++++
 xen/include/xen/iommu.h                     |  1 +
 5 files changed, 66 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1