riscv: module: Create module allocations without exec permissions
authorJisheng Zhang <jszhang@kernel.org>
Mon, 29 Mar 2021 18:25:51 +0000 (02:25 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 26 Apr 2021 15:25:15 +0000 (08:25 -0700)
commit5387054b986e2d0d994b519020d81b8aa64789c5
tree179c4db72e9edd6d1280c6d2c2fbcac71355dd51
parentfc8504765ec5e812135b8ccafca7101069a0c6d8
riscv: module: Create module allocations without exec permissions

The core code manages the executable permissions of code regions of
modules explicitly, it is not necessary to create the module vmalloc
regions with RWX permissions. Create them with RW- permissions instead.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/module.c