From: Sami Tolvanen Date: Fri, 24 May 2019 22:11:16 +0000 (-0700) Subject: arm64: fix syscall_fn_t type X-Git-Tag: v5.15~6257^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=8ef8f368ce72b5e17f7c1f1ef15c38dcfd0fef64;p=mirror_ubuntu-kernels.git arm64: fix syscall_fn_t type 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 --- diff --git a/arch/arm64/include/asm/syscall.h b/arch/arm64/include/asm/syscall.h index a65167f5cded..e8bcb9ecede9 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[];