From: Sami Tolvanen Date: Fri, 24 May 2019 22:11:16 +0000 (-0700) Subject: arm64: fix syscall_fn_t type X-Git-Tag: v4.19.54~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5fdfaedecc2382b1cb1bcfae790798d9ad14b85;p=platform%2Fkernel%2Flinux-rpi.git arm64: fix syscall_fn_t type [ Upstream commit 8ef8f368ce72b5e17f7c1f1ef15c38dcfd0fef64 ] Syscall wrappers in use const struct pt_regs * as the argument type. Use const in syscall_fn_t as well to fix indirect call type mismatches with Control-Flow Integrity checking. Signed-off-by: Sami Tolvanen Reviewed-by: Mark Rutland Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- diff --git a/arch/arm64/include/asm/syscall.h b/arch/arm64/include/asm/syscall.h index ad8be16..5810265 100644 --- a/arch/arm64/include/asm/syscall.h +++ b/arch/arm64/include/asm/syscall.h @@ -20,7 +20,7 @@ #include #include -typedef long (*syscall_fn_t)(struct pt_regs *regs); +typedef long (*syscall_fn_t)(const struct pt_regs *regs); extern const syscall_fn_t sys_call_table[];