OSDN Git Service

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)
commit4fcc636615b1a309b39cab101a2b433cbf1f63f1
tree87ae49c74c699c3518fc4a603658bdb982d67c5d
parent71a5b3db9f209ea5d1e07371017e65398d3c6fbc
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