Searched hist:"76557391433 c77d330cede1a531b358d2f90df66" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/iommu/ |
H A D | io-pgtable-arm-v7s.c | diff 76557391433c77d330cede1a531b358d2f90df66 Mon Jul 03 08:52:24 CDT 2017 Robin Murphy <robin.murphy@arm.com> iommu/io-pgtable: Sanitise map/unmap addresses
It may be an egregious error to attempt to use addresses outside the range of the pagetable format, but that still doesn't mean we should merrily wreak havoc by silently mapping/unmapping whatever truncated portions of them might happen to correspond to real addresses.
Add some up-front checks to sanitise our inputs so that buggy callers don't invite potential memory corruption.
Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
|
H A D | io-pgtable-arm.c | diff 76557391433c77d330cede1a531b358d2f90df66 Mon Jul 03 08:52:24 CDT 2017 Robin Murphy <robin.murphy@arm.com> iommu/io-pgtable: Sanitise map/unmap addresses
It may be an egregious error to attempt to use addresses outside the range of the pagetable format, but that still doesn't mean we should merrily wreak havoc by silently mapping/unmapping whatever truncated portions of them might happen to correspond to real addresses.
Add some up-front checks to sanitise our inputs so that buggy callers don't invite potential memory corruption.
Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
|