mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
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 commit018ef8dcf3("x86/vdso: Mark the vDSO code read-only after init") and arm in commit11bf9b8658("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
This commit is contained in:
parent
f66dbe4379
commit
9fa9712644
2 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#include <linux/linkage.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
__PAGE_ALIGNED_DATA
|
||||
.section ".data..ro_after_init", "aw"
|
||||
|
||||
.globl vdso32_start, vdso32_end
|
||||
.balign PAGE_SIZE
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#include <linux/linkage.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
__PAGE_ALIGNED_DATA
|
||||
.section ".data..ro_after_init", "aw"
|
||||
|
||||
.globl vdso64_start, vdso64_end
|
||||
.balign PAGE_SIZE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue