diff options
| author | Marcin Nowakowski <marcin.nowakowski@imgtec.com> | 2016-10-12 09:32:56 +0200 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:57:51 +0200 |
| commit | 6cc99f98ab298f17c8a607e59210b8b2d0cfdc94 (patch) | |
| tree | 55c717297a14daa0f716dbcf646039f7483f220e /drivers/input/evdev.c | |
| parent | 60b55a4d2748f63662b709f7fe803a2ee6b96175 (diff) | |
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: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'drivers/input/evdev.c')
0 files changed, 0 insertions, 0 deletions
