arm64: make sys_call_table const
authorMark Rutland <mark.rutland@arm.com>
Thu, 8 Jan 2015 11:42:59 +0000 (11:42 +0000)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 1 Dec 2016 09:04:08 +0000 (01:04 -0800)
commit7e3d20238414fdcf4ba54ddbdd01bf1dfdf83e23
treec3554a2fcf46dee754db1a192212ffcbfb5ea4b0
parent1b9f44b69ea5b06977fc061622008d300834ca63
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.

Bug 1836932

Change-Id: I1b8da149e9a117663b63bb5df0c348ff5ad8a12d
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>
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1262251
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
arch/arm64/kernel/sys.c