ptrace: Remove the unnecessary arguments from arch_ptrace_stop
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 2 Sep 2021 21:10:11 +0000 (16:10 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 6 Oct 2021 16:27:41 +0000 (11:27 -0500)
commit4f627af8e6068892cafe031df6c14e8a0aaaa426
tree2d6cc291f73c0367ce55d601a1bed6984ef68473
parent7d613f9f72ec8f90ddefcae038fdae5adb8404b3
ptrace: Remove the unnecessary arguments from arch_ptrace_stop

Both arch_ptrace_stop_needed and arch_ptrace_stop are called with an
exit_code and a siginfo structure.  Neither argument is used by any of
the implementations so just remove the unneeded arguments.

The two arechitectures that implement arch_ptrace_stop are ia64 and
sparc.  Both architectures flush their register stacks before a
ptrace_stack so that all of the register information can be accessed
by debuggers.

As the question of if a register stack needs to be flushed is
independent of why ptrace is stopping not needing arguments make sense.

Cc: David Miller <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Link: https://lkml.kernel.org/r/87lf3mx290.fsf@disp2133
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/ia64/include/asm/ptrace.h
arch/sparc/include/asm/ptrace.h
include/linux/ptrace.h
kernel/signal.c