linux-stable/arch/s390/mm
Heiko Carstens c0f1d47812 s390/mm: simplify kernel mapping setup
The kernel mapping is setup in two stages: in the decompressor map all
pages with RWX permissions, and within the kernel change all mappings to
their final permissions, where most of the mappings are changed from RWX to
RWNX.

Change this and map all pages RWNX from the beginning, however without
enabling noexec via control register modification. This means that
effectively all pages are used with RWX permissions like before. When the
final permissions have been applied to the kernel mapping enable noexec via
control register modification.

This allows to remove quite a bit of non-obvious code.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2023-08-30 11:03:27 +02:00
..
cmm.c s390/mm: make virt_to_pfn() a static inline 2023-08-16 15:13:03 +02:00
dump_pagetables.c s390/mm: define Real Memory Copy size and mask macros 2023-08-16 15:13:02 +02:00
extable.c s390/extable: add EX_TABLE_UA_LOAD_REGPAIR() macro 2022-11-21 13:36:15 +01:00
extmem.c s390/extmem: improve reporting of -ERANGE error 2023-07-24 12:12:24 +02:00
fault.c s390/mm: move pfault code to own C file 2023-07-29 14:57:18 +02:00
gmap.c mm: enable page walking API to lock vmas during the walk 2023-08-21 13:07:20 -07:00
hugetlbpage.c mm: move 'mmap_min_addr' logic from callers into vm_unmapped_area() 2023-04-21 14:52:05 -07:00
init.c s390/mm: use set_memory_*() helpers instead of open coding 2023-04-13 17:36:26 +02:00
maccess.c s390/mm: define Real Memory Copy size and mask macros 2023-08-16 15:13:02 +02:00
Makefile s390/mm: move pfault code to own C file 2023-07-29 14:57:18 +02:00
mmap.c mm: move 'mmap_min_addr' logic from callers into vm_unmapped_area() 2023-04-21 14:52:05 -07:00
page-states.c s390/mm: remove unused get_page_state() function 2022-11-23 16:24:07 +01:00
pageattr.c procfs: consolidate arch_report_meminfo declaration 2023-05-17 09:24:49 +02:00
pfault.c s390/pfault: use consistent comment style 2023-07-29 14:57:18 +02:00
pgalloc.c s390/mm: make use of atomic_fetch_xor() 2023-03-20 11:12:49 +01:00
pgtable.c s390: allow pte_offset_map_lock() to fail 2023-06-19 16:19:09 -07:00
vmem.c s390/mm: simplify kernel mapping setup 2023-08-30 11:03:27 +02:00