diff options
author | Mark Rutland <mark.rutland@arm.com> | 2015-01-08 11:42:59 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2015-01-27 09:38:08 +0000 |
commit | c623b33b4e9599c6ac5076f7db7369eb9869aa04 (patch) | |
tree | 35d6abf925bf8734e455f494acbd88101382515b /arch/arm64 | |
parent | 9648606946b3b0c608846dddb30482b48a6f5c68 (diff) | |
download | op-kernel-dev-c623b33b4e9599c6ac5076f7db7369eb9869aa04.zip op-kernel-dev-c623b33b4e9599c6ac5076f7db7369eb9869aa04.tar.gz |
arm64: make sys_call_table const
As with x86, mark the sys_call_table const such that it will be placed
in the .rodata section. This will cause attempts to modify the table
(accidental or deliberate) to fail when strict page permissions are in
place. In the absence of strict page permissions, there should be no
functional change.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/kernel/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/sys.c b/arch/arm64/kernel/sys.c index dec351a..75151aa 100644 --- a/arch/arm64/kernel/sys.c +++ b/arch/arm64/kernel/sys.c @@ -49,7 +49,7 @@ asmlinkage long sys_rt_sigreturn_wrapper(void); * The sys_call_table array must be 4K aligned to be accessible from * kernel/entry.S. */ -void *sys_call_table[__NR_syscalls] __aligned(4096) = { +void * const sys_call_table[__NR_syscalls] __aligned(4096) = { [0 ... __NR_syscalls - 1] = sys_ni_syscall, #include <asm/unistd.h> }; |