[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190913210018.125266-1-samitolvanen@google.com>
Date: Fri, 13 Sep 2019 14:00:14 -0700
From: Sami Tolvanen <samitolvanen@...gle.com>
To: Andy Lutomirski <luto@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H . Peter Anvin" <hpa@...or.com>,
Kees Cook <keescook@...omium.org>
Cc: x86@...nel.org, linux-kernel@...r.kernel.org,
Sami Tolvanen <samitolvanen@...gle.com>
Subject: [PATCH 0/4] x86: fix syscall function type mismatches
This patch set changes x64 and ia32 syscall wrappers and related
functions to use function types that match sys_call_ptr_t. This fixes
indirect call mismatches with Control-Flow Integrity (CFI) checking.
Sami Tolvanen (4):
x86: use the correct function type in SYSCALL_DEFINE0
x86: use the correct function type for sys32_(rt_)sigreturn
x86: use the correct function type for sys_ni_syscall
x86: fix function types in COND_SYSCALL
arch/x86/entry/syscall_32.c | 13 ++++++--
arch/x86/entry/syscall_64.c | 12 +++++--
arch/x86/entry/syscalls/syscall_32.tbl | 4 +--
arch/x86/ia32/ia32_signal.c | 4 +--
arch/x86/include/asm/syscall_wrapper.h | 44 ++++++++++++++++----------
5 files changed, 51 insertions(+), 26 deletions(-)
--
2.23.0.237.gc6a4ce50a0-goog
Powered by blists - more mailing lists