Skip to content

Commit a6e49f1

Browse files
committed
s390/mm: improve description of mapping permissions of prefix pages
Slightly improve the description which explains why the first prefix page must be mapped executable when the BEAR-enhancement facility is not installed. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent 3eeb077 commit a6e49f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arch/s390/mm/vmem.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,11 @@ void __init vmem_map_init(void)
659659
(unsigned long)(_einittext - _sinittext) >> PAGE_SHIFT);
660660
set_memory_rox((unsigned long)__stext_amode31,
661661
(unsigned long)(__etext_amode31 - __stext_amode31) >> PAGE_SHIFT);
662-
663-
/* lowcore must be executable for LPSWE */
662+
/*
663+
* If the BEAR-enhancement facility is not installed the first
664+
* prefix page is used to return to the previous context with
665+
* an LPSWE instruction and therefore must be executable.
666+
*/
664667
if (!static_key_enabled(&cpu_has_bear))
665668
set_memory_x(0, 1);
666669
if (debug_pagealloc_enabled()) {

0 commit comments

Comments
 (0)