s390/module: create module allocations without exec permissions
authorHeiko Carstens <hca@linux.ibm.com>
Sun, 2 Apr 2023 18:55:21 +0000 (20:55 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 13 Apr 2023 15:36:26 +0000 (17:36 +0200)
commit1707c1165283a9634717971f17692535c21ab0eb
treed488e9829417c7128525711f63071eb32f1c62e0
parent7c7ab788c0959c363b5cb2ac5ff4822fc12ccba5
s390/module: create module allocations without exec permissions

This is the s390 variant of commit 7dfac3c5f40e ("arm64: module: create
module allocations without exec permissions"):

"The core code manages the executable permissions of code regions of
modules explicitly. It is no longer necessary to create the module vmalloc
regions with RWX permissions. So create them with RW- permissions instead,
which is preferred from a security perspective."

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/module.c