summaryrefslogtreecommitdiffstats
path: root/drivers/pci/dmar.c
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2009-04-06 20:21:49 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-04-06 23:47:00 +0200
commit31d3568dfeb1dfb2735f119efe5ece7c6d40969c (patch)
tree1318855f27727682e4ceda925c499ae99d6f4bba /drivers/pci/dmar.c
parentMerge git://git.infradead.org/iommu-2.6 (diff)
downloadlinux-31d3568dfeb1dfb2735f119efe5ece7c6d40969c.tar.xz
linux-31d3568dfeb1dfb2735f119efe5ece7c6d40969c.zip
Intel-IOMMU Alignment Issue in dma_pte_clear_range()
This issue was pointed out by Linus. In dma_pte_clear_range() in intel-iommu.c start = PAGE_ALIGN(start); end &= PAGE_MASK; npages = (end - start) / VTD_PAGE_SIZE; In partial page case, start could be bigger than end and npages will be negative. Currently the issue doesn't show up as a real bug in because start and end have been aligned to page boundary already by all callers. So the issue has been hidden. But it is dangerous programming practice. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/pci/dmar.c')
0 files changed, 0 insertions, 0 deletions