aboutsummaryrefslogtreecommitdiffstats
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2017-06-29 10:12:36 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-07-11 14:13:06 +0200
commit828db212bf4b63c68c51f6519435c48e8d79bd00 (patch)
treea617cc1577b8824d7c7b9ffd06be40b1f0f6b517 /MAINTAINERS
parentMIPS: Correct forced syscall errors (diff)
downloadlinux-dev-828db212bf4b63c68c51f6519435c48e8d79bd00.tar.xz
linux-dev-828db212bf4b63c68c51f6519435c48e8d79bd00.zip
MIPS: Traced negative syscalls should return -ENOSYS
If a negative system call number is used when system call tracing is enabled, syscall_trace_enter() will return that negative system call number without having written the return value and error flag into the pt_regs. The caller then treats it as a cancelled system call and assumes that the return value and error flag are already written, leaving the negative system call number in the return register ($v0), and the 4th system call argument in the error register ($a3). Add a special case to detect this at the end of syscall_trace_enter(), to set the return value to error -ENOSYS when this happens. Fixes: d218af78492a ("MIPS: scall: Always run the seccomp syscall filters") Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/16653/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions