diff options
author | 2013-05-02 16:25:42 +0100 | |
---|---|---|
committer | 2013-06-14 09:42:46 +0100 | |
commit | 072b1b62a6436b71ab951faae4500db2fbed63de (patch) | |
tree | 7cf891feaa8224363173a3c9cb1fa8d0c472d101 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ARM64: mm: Restore memblock limit when map_mem finished. (diff) | |
download | linux-dev-072b1b62a6436b71ab951faae4500db2fbed63de.tar.xz linux-dev-072b1b62a6436b71ab951faae4500db2fbed63de.zip |
ARM64: mm: Make PAGE_NONE pages read only and no-execute.
If we consider the following code sequence:
my_pte = pte_modify(entry, myprot);
x = pte_write(my_pte);
y = pte_exec(my_pte);
If myprot comes from a PROT_NONE page, then x and y will both be
true which is undesireable behaviour.
This patch sets the no-execute and read-only bits for PAGE_NONE
such that the code above will return false for both x and y.
Signed-off-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions