aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAneesh Kumar K.V <[email protected]>2017-12-04 07:49:12 +0530
committerMichael Ellerman <[email protected]>2017-12-22 22:28:40 +1100
commit5769beaf180a892c3fea92937954727fb912bded (patch)
tree5dc22abcb02fe0b11de1df7ac56fd0e03ce0df49 /tools/perf/scripts/python/bin
parentf72a85e347810c76eb246e68751233aad3b84ac8 (diff)
powerpc/mm: Add proper pte access check helper for other platforms
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 _PAGE_USER access instead of _PAGE_PRESENT. Also add pte_user check just to make sure we are not accessing kernel mapping. Even though there is code duplication, keeping the low level pte accessors different for different platforms helps in code readability. Signed-off-by: Aneesh Kumar K.V <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions