[PATCH 0/4] MIPS: Syscall tracing fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These patches fix several issues in the MIPS syscall tracing support.
They are based on mips-for-linux-next (152e63e374cd).

Patch 1 drops a harmless redundant select in Kconfig.

Patch 2 ensures erroring syscalls have negated return value in the
sys_exit trace event, so errors can be distinguished from success
(tagged for stable).

Patch 3 corrects a probably harmless inconsistency between normal
syscall error return ($a3=1) and modified error return via
syscall_set_return_value() ($a3=-1), e.g. due to seccomp
SECCOMP_RET_ERRNO.

Patch 4 fixes the probably harmless broken error return from negative
syscall numbers when syscall tracing is enabled.

Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: linux-mips@xxxxxxxxxxxxxx
Cc: stable@xxxxxxxxxxxxxxx

James Hogan (4):
  MIPS: Drop duplicate HAVE_SYSCALL_TRACEPOINTS select
  MIPS: Negate error syscall return in trace
  MIPS: Correct forced syscall errors
  MIPS: Traced negative syscalls should return -ENOSYS

 arch/mips/Kconfig               |  1 -
 arch/mips/include/asm/syscall.h |  2 +-
 arch/mips/kernel/ptrace.c       |  9 ++++++++-
 3 files changed, 9 insertions(+), 3 deletions(-)

-- 
git-series 0.8.10



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]