Commit c5fdfaed authored by Sami Tolvanen's avatar Sami Tolvanen Committed by Greg Kroah-Hartman

arm64: fix syscall_fn_t type

[ Upstream commit 8ef8f368ce72b5e17f7c1f1ef15c38dcfd0fef64 ]

Syscall wrappers in <asm/syscall_wrapper.h> 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: default avatarSami Tolvanen <>
Reviewed-by: default avatarMark Rutland <>
Signed-off-by: default avatarWill Deacon <>
Signed-off-by: default avatarSasha Levin <>
parent df6384e0
......@@ -20,7 +20,7 @@
#include <linux/compat.h>
#include <linux/err.h>
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[];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment