diff options
author | Marcin Nowakowski <marcin.nowakowski@imgtec.com> | 2016-10-12 10:32:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-28 10:01:30 +0300 |
commit | 1ea47896151dd617edb2155664f00bbe176728fd (patch) | |
tree | 425198919dbe297a0aa589f8476e93f066887890 /lib/ratelimit.c | |
parent | 5eff24cc6eafebf194ef02225ce171649a2a675a (diff) | |
download | linux-1ea47896151dd617edb2155664f00bbe176728fd.tar.xz |
MIPS: ptrace: Fix regs_return_value for kernel context
commit 74f1077b5b783e7bf4fa3007cefdc8dbd6c07518 upstream.
Currently regs_return_value always negates reg[2] if it determines
the syscall has failed, but when called in kernel context this check is
invalid and may result in returning a wrong value.
This fixes errors reported by CONFIG_KPROBES_SANITY_TEST
Fixes: d7e7528bcd45 ("Audit: push audit success and retcode into arch ptrace.h")
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14381/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/ratelimit.c')
0 files changed, 0 insertions, 0 deletions