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

\
 
 \ /
  Last update: 2019-09-13 23:01    [W:0.196 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site