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 (5):
xen/x86: p2m: Don't map the special pages in the IOMMU page-tables
xen/iommu: Check if the IOMMU was initialized before tearing down
xen/iommu: iommu_map: Don't crash the domain if it is dying
xen/iommu: x86: Don't leak the IOMMU page-tables
xen/iommu: x86: Clear the root page-table before freeing the
page-tables
xen/drivers/passthrough/amd/pci_amd_iommu.c | 12 +++++-
xen/drivers/passthrough/iommu.c | 9 ++++-
xen/drivers/passthrough/vtd/iommu.c | 12 +++++-
xen/drivers/passthrough/x86/iommu.c | 42 ++++++++++++++++++++-
xen/include/asm-x86/p2m.h | 4 ++
xen/include/xen/iommu.h | 1 +
6 files changed, 76 insertions(+), 4 deletions(-)
--
2.17.1