powerpc: Implement set_memory_rox()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 16 Feb 2024 10:12:05 +0000 (11:12 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Feb 2024 10:55:33 +0000 (21:55 +1100)
commit09ca1b11716f96461a4675eb0418d5cb97687389
tree3eb3c07b450cfc281ee4fc442c34fa95897cac90
parentd5835fb60bad641dbae64fe30c02f10857bf4647
powerpc: Implement set_memory_rox()

Same as x86 and s390, add set_memory_rox() to avoid doing
one pass with set_memory_ro() and a second pass with set_memory_x().

See commit 60463628c9e0 ("x86/mm: Implement native set_memory_rox()")
and commit 22e99fa56443 ("s390/mm: implement set_memory_rox()") for
more information.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/dc9a794f82ab62572d7d0be5cb4b8b27920a4f78.1708078316.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/set_memory.h
arch/powerpc/mm/pageattr.c