[PATCH for-4.15 0/4] xen/iommu: Collection of bug fixes for IOMMU teadorwn

Julien Grall posted 4 patches 3 years, 4 months ago
Test gitlab-ci passed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20201222154338.9459-1-julien@xen.org
There is a newer version of this series
xen/arch/x86/domain.c               |  2 +-
xen/drivers/passthrough/iommu.c     | 10 +++++-
xen/drivers/passthrough/x86/iommu.c | 47 +++++++++++++++++++++++++++--
xen/include/asm-x86/iommu.h         |  2 +-
4 files changed, 56 insertions(+), 5 deletions(-)
[PATCH for-4.15 0/4] xen/iommu: Collection of bug fixes for IOMMU teadorwn
Posted by Julien Grall 3 years, 4 months ago
From: Julien Grall <jgrall@amazon.com>

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.

Cheers,

Julien Grall (4):
  xen/iommu: Check if the IOMMU was initialized before tearing down
  xen/iommu: x86: Free the IOMMU page-tables with the pgtables.lock held
  [RFC] xen/iommu: x86: Clear the root page-table before freeing the
    page-tables
  xen/iommu: x86: Don't leak the IOMMU page-tables

 xen/arch/x86/domain.c               |  2 +-
 xen/drivers/passthrough/iommu.c     | 10 +++++-
 xen/drivers/passthrough/x86/iommu.c | 47 +++++++++++++++++++++++++++--
 xen/include/asm-x86/iommu.h         |  2 +-
 4 files changed, 56 insertions(+), 5 deletions(-)

-- 
2.17.1