summaryrefslogtreecommitdiff
path: root/drivers/soc/fsl/dpio/dpio-driver.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-03-25 14:13:46 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2020-03-26 14:28:57 +0300
commitb2a84de2a2deb76a6a51609845341f508c518c03 (patch)
tree4a15584ff90c52f6b69f1b930f9dcbf90fa4cc75 /drivers/soc/fsl/dpio/dpio-driver.c
parent44ca0e00b6a05ea9cf89d8a5290a225de19f4a2a (diff)
downloadlinux-b2a84de2a2deb76a6a51609845341f508c518c03.tar.xz
mm/mremap: Add comment explaining the untagging behaviour of mremap()
Commit dcde237319e6 ("mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()") changed mremap() so that only the 'old' address is untagged, leaving the 'new' address in the form it was passed from userspace. This prevents the unexpected creation of aliasing virtual mappings in userspace, but looks a bit odd when you read the code. Add a comment justifying the untagging behaviour in mremap(). Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers/soc/fsl/dpio/dpio-driver.c')
0 files changed, 0 insertions, 0 deletions