aboutsummaryrefslogtreecommitdiff
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2017-09-19 14:48:40 +0100
committerJoerg Roedel <jroedel@suse.de>2017-09-28 14:57:15 +0200
commitb826ee9a4f1cbf83cadc5a307de8eea27637699a (patch)
tree6d847b28d7d22ec08e56d2e14b9bbda1e9fead1f /fs/proc/array.c
parent7595dc588a39c37091ddf65f6c0a3cd40f128e7a (diff)
iommu/iova: Make rcache limit_pfn handling more robust
When popping a pfn from an rcache, we are currently checking it directly against limit_pfn for viability. Since this represents iova->pfn_lo, it is technically possible for the corresponding iova->pfn_hi to be greater than limit_pfn. Although we generally get away with it in practice since limit_pfn is typically a power-of-two boundary and the IOVAs are size-aligned, it's pretty trivial to make the iova_rcache_get() path take the allocation size into account for complete safety. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions