summaryrefslogtreecommitdiffstats
path: root/arch/sh/oprofile
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2017-06-03 00:36:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-03 11:56:04 +0200
commit32829da54d9368103a2f03269a5120aa9ee4d5da (patch)
tree4255951027e6489bdd33ce43f9fe477cd041b2e0 /arch/sh/oprofile
parentMAINTAINERS: Change maintainer of genwqe driver (diff)
downloadlinux-32829da54d9368103a2f03269a5120aa9ee4d5da.tar.xz
linux-32829da54d9368103a2f03269a5120aa9ee4d5da.zip
drivers: char: mem: Fix wraparound check to allow mappings up to the end
A recent fix to /dev/mem prevents mappings from wrapping around the end of physical address space. However, the check was written in a way that also prevents a mapping reaching just up to the end of physical address space, which may be a valid use case (especially on 32-bit systems). This patch fixes it by checking the last mapped address (instead of the first address behind that) for overflow. Fixes: b299cde245 ("drivers: char: mem: Check for address space wraparound with mmap()") Cc: <stable@vger.kernel.org> Reported-by: Nico Huber <nico.h@gmx.de> Signed-off-by: Julius Werner <jwerner@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/sh/oprofile')
0 files changed, 0 insertions, 0 deletions