]> xenbits.xensource.com Git - xen.git/commit
IOMMU: clear "don't flush" override on error paths
authorJan Beulich <jbeulich@suse.com>
Tue, 10 Dec 2013 15:10:37 +0000 (16:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Dec 2013 15:10:37 +0000 (16:10 +0100)
commit552b7fcb9a70f1d4dd0e0cd5fb4d3d9da410104a
treed39cf58eef44559620c0653d2e1ae3c72207ca44
parent5da5288a0a767c16705dd16ee5e5bb5cf7929397
IOMMU: clear "don't flush" override on error paths

Both xenmem_add_to_physmap() and iommu_populate_page_table() each have
an error path that fails to clear that flag, thus suppressing further
flushes on the respective pCPU.

In iommu_populate_page_table() also slightly re-arrange code to avoid
the false impression of the flag in question being guarded by a
domain's page_alloc_lock.

This is CVE-2013-6400 / XSA-80.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/x86/mm.c
xen/drivers/passthrough/iommu.c