From 568a3e2eeedb5672578a09ec193791c7d34b99ac Mon Sep 17 00:00:00 2001 From: Sami Tolvanen Date: Thu, 25 Apr 2019 14:06:13 -0700 Subject: [PATCH] FROMLIST: 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. Bug: 133186739 Change-Id: I23d26aef5107985631a9aac500f2ceefc0b25419 Link: https://lkml.org/lkml/2019/5/3/689 Signed-off-by: Sami Tolvanen --- arch/arm64/include/asm/syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/syscall.h b/arch/arm64/include/asm/syscall.h index ad8be16a39c9..58102652bf9e 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[];