mm: untag user pointers in mmap/munmap/mremap/brk

There isn't a good reason to differentiate between the user address space
layout modification syscalls and the other memory permission/attributes
ones (e.g.  mprotect, madvise) w.r.t.  the tagged address ABI.  Untag the
user addresses on entry to these functions.

Signed-off-by: Catalin Marinas <>
Acked-by: Will Deacon <>
Acked-by: Andrey Konovalov <>
Cc: Vincenzo Frascino <>
Cc: Szabolcs Nagy <>
Cc: Kevin Brodsky <>
Cc: Dave P Martin <>
Cc: Dave Hansen <>
Signed-off-by: Andrew Morton <>
2 files changed