Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -2
+5 -2
arch/s390/mm/vmem.c
··· 659 659 (unsigned long)(_einittext - _sinittext) >> PAGE_SHIFT); 660 660 set_memory_rox((unsigned long)__stext_amode31, 661 661 (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 + */ 664 667 if (!static_key_enabled(&cpu_has_bear)) 665 668 set_memory_x(0, 1); 666 669 if (debug_pagealloc_enabled()) {