gnttab: remove host map in the event of a grant_map failure
authorGeorge Dunlap <george.dunlap@citrix.com>
Thu, 22 Jun 2017 07:53:18 +0000 (09:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jun 2017 07:53:18 +0000 (09:53 +0200)
commit95906bf0f0b03a30a5f104b8ca89fa1ac0286f32
treeb3cdd1ee977c6ecff633f9df9af1ab7cbb1de211
parent4149c9af7cf671e57717ce75e9924dc779c02109
gnttab: remove host map in the event of a grant_map failure

The current code appropriately removes the reference and type counts
on failure, but leaves the mapping set up. As the only path which can
trigger this is failure from IOMMU manipulation, and as unprivileged
domains are being crashed in that case, this is not by itself a
security issue.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/grant_table.c