Skip to content

Commit 9fa9712

Browse files
chleroymaddy-kerneldev
authored andcommitted
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 018ef8d ("x86/vdso: Mark the vDSO code read-only after init") and arm in commit 11bf9b8 ("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
1 parent f66dbe4 commit 9fa9712

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/powerpc/kernel/vdso32_wrapper.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <linux/linkage.h>
33
#include <asm/page.h>
44

5-
__PAGE_ALIGNED_DATA
5+
.section ".data..ro_after_init", "aw"
66

77
.globl vdso32_start, vdso32_end
88
.balign PAGE_SIZE

arch/powerpc/kernel/vdso64_wrapper.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <linux/linkage.h>
33
#include <asm/page.h>
44

5-
__PAGE_ALIGNED_DATA
5+
.section ".data..ro_after_init", "aw"
66

77
.globl vdso64_start, vdso64_end
88
.balign PAGE_SIZE

0 commit comments

Comments
 (0)