lkml.org 
[lkml]   [2018]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v1 6/8] x86/entry/clearregs: Add number of arguments to syscall tables
From
Date


> On Jan 9, 2018, at 5:03 PM, Andi Kleen <andi@firstfloor.org> wrote:
>
> From: Andi Kleen <ak@linux.intel.com>
>
> In order to sanitize the system call arguments properly
> we need to know the number of syscall arguments for each
> syscall. Add a new column to the 32bit and 64bit syscall
> tables to list the number of arguments.
>

Surely we can do this in the SYSCALL_DEFINE macros. Or at least statically check it.

Also, what attack are we protecting against anyway?

\
 
 \ /
  Last update: 2018-01-14 23:20    [W:0.139 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site