aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2023-03-12 11:26:01 +0000
committerDave Hansen <[email protected]>2023-03-16 20:08:39 +0000
commit74c228d20a51ddb1354409fdbed7b72427339d7b (patch)
tree524713f7708b7ffd19da588b367a19796503c04f /fs/proc/array.c
parentmm: Introduce untagged_addr_remote() (diff)
downloadkernel-74c228d20a51ddb1354409fdbed7b72427339d7b.tar.gz
kernel-74c228d20a51ddb1354409fdbed7b72427339d7b.zip
x86/uaccess: Provide untagged_addr() and remove tags before address check
untagged_addr() is a helper used by the core-mm to strip tag bits and get the address to the canonical shape based on rules of the current thread. It only handles userspace addresses. The untagging mask is stored in per-CPU variable and set on context switching to the task. The tags must not be included into check whether it's okay to access the userspace address. Strip tags in access_ok(). Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Alexander Potapenko <[email protected]> Link: https://lore.kernel.org/all/20230312112612.31869-7-kirill.shutemov%40linux.intel.com
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions