powerpc/vdso: Mark the vDSO code read-only after init
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 14 Dec 2024 11:09:31 +0000 (12:09 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 18 Dec 2024 08:16:38 +0000 (13:46 +0530)
commit9fa9712644e04c4fd4de7e2d999edde3c9316823
treeeb77dd80d269acb4f02e68a1a005e454ca9be2c0
parentf66dbe43798fc97e8c0e6d9b86f1aa923ef523fa
powerpc/vdso: Mark the vDSO code read-only after init

VDSO text is fixed-up during init so it can't be const,
but it can be read-only after init.

Do the same as x86 in commit 018ef8dcf3de ("x86/vdso: Mark the vDSO
code read-only after init") and arm in commit 11bf9b865898 ("ARM/vdso:
Mark the vDSO code read-only after init"), move it into
ro_after_init section.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/e9892d288b646cbdfeef0b2b73edbaf6d3c6cabe.1734174500.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/vdso32_wrapper.S
arch/powerpc/kernel/vdso64_wrapper.S