]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commitda629ec63f8f121266ad600ab558f84d4b7792c6
treebbd17e9501b5dbc68956d0e8444e2918b3644cdb
parent59ab8ddfb3a38fe29cc64cb97004b28279766862
syscalls/x86: Use the correct function type for sys_ni_syscall

BugLink: https://bugs.launchpad.net/bugs/1862227
commit f48f01a92cca09e86d46c91d8edf9d5a71c61727 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/x86/entry/syscall_32.c
arch/x86/entry/syscall_64.c
arch/x86/entry/syscalls/syscall_32.tbl