summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2024-12-09 12:45:18 +0300
committerAlexander Gordeev <agordeev@linux.ibm.com>2024-12-17 14:46:13 +0300
commitf8107a8be0b2e92798ded4aff45e3a94b763ce61 (patch)
treed5cca1d91bc96a014f9dfba925d8028e1100f2e4 /scripts/gdb/linux/utils.py
parentdb449b147cef0a210c61dc8840424456fbe45cc8 (diff)
downloadlinux-f8107a8be0b2e92798ded4aff45e3a94b763ce61.tar.xz
s390/mm: Simplify noexec page protection handling
By default page protection definitions like PAGE_RX have the _PAGE_NOEXEC bit set. For older machines without the instruction execution protection facility this bit is not allowed to be used in page table entries, and therefore must be removed. This is done at a couple of page table walkers, but also at some but not all page table modification functions like ptep_modify_prot_commit(). Avoid all of this and change the page, segment and region3 protection definitions so that the noexec bit is masked out automatically if the instruction execution-protection facility is not available. This is similar to what also various other architectures do which had to solve the same problem. Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com> Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions