summaryrefslogtreecommitdiff
path: root/include/linux/flex_array.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2017-12-04 05:19:11 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-12-22 14:28:35 +0300
commitf72a85e347810c76eb246e68751233aad3b84ac8 (patch)
tree8078274e912b95aecaa819848cb6a066896e2073 /include/linux/flex_array.h
parent5fa5b16be5b319184378870467352eab6700b1de (diff)
downloadlinux-f72a85e347810c76eb246e68751233aad3b84ac8.tar.xz
powerpc/mm/book3s/64: Add proper pte access check helper
pte_access_premitted get called in get_user_pages_fast path. If we have marked the pte PROT_NONE, we should not allow a read access on the address. With the current implementation we are not checking the READ and only check for WRITE. This is needed on archs like ppc64 that implement PROT_NONE using RWX access instead of _PAGE_PRESENT. Also add pte_user check just to make sure we are not accessing kernel mapping. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include/linux/flex_array.h')
0 files changed, 0 insertions, 0 deletions