syscalls/x86: Use the correct function type for sys_ni_syscall
authorSami Tolvanen <samitolvanen@google.com>
Tue, 8 Oct 2019 22:40:48 +0000 (15:40 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Oct 2019 10:49:18 +0000 (12:49 +0200)
commitf48f01a92cca09e86d46c91d8edf9d5a71c61727
treee99a03922f7c3f3dc611834b62a6787efeb4b54e
parent00198a6eaf66609de5e4de9163bb42c7ca9dd7b7
syscalls/x86: Use the correct function type for sys_ni_syscall

Use the correct function type for sys_ni_syscall() in system
call tables to fix indirect call mismatches with Control-Flow
Integrity (CFI) checking.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H . Peter Anvin <hpa@zytor.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20191008224049.115427-5-samitolvanen@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/entry/syscall_32.c
arch/x86/entry/syscall_64.c
arch/x86/entry/syscalls/syscall_32.tbl