diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-07-11 08:19:30 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-23 16:04:47 +0200 |
commit | 2a46ddf77c32da1f4137aeb902bc4e1f50582b69 (patch) | |
tree | 4921c8e0a0f52f81ff0c45834b939aa5be9af5a6 /lib | |
parent | iommu/vt-d: Allocate dynamic domain id for virtual domains only (diff) | |
download | linux-2a46ddf77c32da1f4137aeb902bc4e1f50582b69.tar.xz linux-2a46ddf77c32da1f4137aeb902bc4e1f50582b69.zip |
iommu/vt-d: Fix possible invalid memory access caused by free_dmar_iommu()
Static identity and virtual machine domains may be cached in
iommu->domain_ids array after corresponding IOMMUs have been removed
from domain->iommu_bmp. So we should check domain->iommu_bmp before
decreasing domain->iommu_count in function free_dmar_iommu(), otherwise
it may cause free of inuse domain data structure.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions