lkml.org 
[lkml]   [2019]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subject[PATCH v2 0/5] x86: fix syscall function type mismatches
From
This patch set changes x86 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.

Changes since v1:
- Use SYSCALL_DEFINE0 for __x64_sys_ni_syscall.
- Include Andy's COMPAT_SYSCALL_DEFINE0 patch and use the macro
for (rt_)sigreturn.

Andy Lutomirski (1):
x86/syscalls: Wire up COMPAT_SYSCALL_DEFINE0

Sami Tolvanen (4):
x86: use the correct function type in SYSCALL_DEFINE0
x86: use COMPAT_SYSCALL_DEFINE0 for IA32 (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 | 8 +--
arch/x86/entry/syscall_64.c | 14 +++--
arch/x86/entry/syscalls/syscall_32.tbl | 8 +--
arch/x86/ia32/ia32_signal.c | 5 +-
arch/x86/include/asm/syscall_wrapper.h | 76 ++++++++++++++++++++------
5 files changed, 78 insertions(+), 33 deletions(-)

--
2.23.0.351.gc4317032e6-goog

\
 
 \ /
  Last update: 2019-09-19 00:47    [W:0.211 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site