FROMLIST: arm64: fix syscall_fn_t type
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. Bug: 133186739 Change-Id: I23d26aef5107985631a9aac500f2ceefc0b25419 Link: https://lkml.org/lkml/2019/5/3/689 Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
committed by
Alistair Strachan
parent
fb0e5d877b
commit
568a3e2eee
@@ -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[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user