]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/modules: Make module_alloc() Strict Module RWX aware
authorJordan Niethe <jniethe5@gmail.com>
Wed, 9 Jun 2021 01:34:25 +0000 (11:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Jun 2021 11:13:20 +0000 (21:13 +1000)
commit57e9b1305edb84eaaae8e1d596da993ef3839682
tree87ae49c74c699c3518fc4a603658bdb982d67c5d
parent78138bcd9305e0ace2f5efd019ecf1fa07a56f82
powerpc/modules: Make module_alloc() Strict Module RWX aware

Make module_alloc() use PAGE_KERNEL protections instead of
PAGE_KERNEL_EXEX if Strict Module RWX is enabled.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210609013431.9805-4-jniethe5@gmail.com
arch/powerpc/include/asm/mmu.h
arch/powerpc/kernel/module.c