diff options
| author | Aneesh Kumar K.V <[email protected]> | 2017-12-04 07:49:11 +0530 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2017-12-22 22:28:35 +1100 |
| commit | f72a85e347810c76eb246e68751233aad3b84ac8 (patch) | |
| tree | 8078274e912b95aecaa819848cb6a066896e2073 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 5fa5b16be5b319184378870467352eab6700b1de (diff) | |
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions