Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Christophe Leroy and committed by
Madhavan Srinivasan
9fa97126 f66dbe43

+2 -2
+1 -1
arch/powerpc/kernel/vdso32_wrapper.S
··· 2 2 #include <linux/linkage.h> 3 3 #include <asm/page.h> 4 4 5 - __PAGE_ALIGNED_DATA 5 + .section ".data..ro_after_init", "aw" 6 6 7 7 .globl vdso32_start, vdso32_end 8 8 .balign PAGE_SIZE
+1 -1
arch/powerpc/kernel/vdso64_wrapper.S
··· 2 2 #include <linux/linkage.h> 3 3 #include <asm/page.h> 4 4 5 - __PAGE_ALIGNED_DATA 5 + .section ".data..ro_after_init", "aw" 6 6 7 7 .globl vdso64_start, vdso64_end 8 8 .balign PAGE_SIZE