Re: [RFC][ATCH 1/3] ptrace: Remove maxargs from task_current_syscall()

From: Andy Lutomirski
Date: Mon Nov 07 2016 - 18:51:59 EST


On Mon, Nov 7, 2016 at 1:26 PM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> From: Steven Rostedt <rostedt@xxxxxxxxxxx>
>
> task_current_syscall() has a single user that passes in 6 for maxargs, which
> is the maximum arguments that can be used to get system calls from
> syscall_get_arguments(). Instead of passing in a number of arguments to
> grab, just get 6 arguments. The args argument even specifies that it's an
> array of 6 items.
>
> This will also allow changing syscall_get_arguments() to not get a variable
> number of arguments, but always grab 6.

Reviewed-by: Andy Lutomirski <luto@xxxxxxxxxx>