diff options
author | James Hogan <[email protected]> | 2017-08-11 21:56:51 +0100 |
---|---|---|
committer | James Hogan <[email protected]> | 2017-11-09 15:13:52 +0000 |
commit | b6318a903d068e2319eaef95966f4440114973f7 (patch) | |
tree | c851861cc50f55dc63989012579259110168e7e9 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 547da673173de51f73887377eb275304775064ad (diff) |
MIPS/ptrace: Pick up ptrace/seccomp changed syscalls
The MIPS syscall_trace_enter() allows the system call number to be
altered or cancelled by a ptrace tracer, via the normal ptrace hook
(PTRACE_SYSCALL) and changing the system call number register on entry,
and similarly via seccomp (PTRACE_EVENT_SECCOMP when a seccomp filter
returns SECCOMP_RET_TRACE).
Be sure to update the syscall local variable if this happens, so that
seccomp will filter the correct system call number if the normal ptrace
hook changes it first, and so that if either the normal ptrace hook or
seccomp change it the correct system call number is passed to the trace
event.
This won't have any effect until the next commit, which fixes ptrace to
update thread_info::syscall.
Fixes: c2d9f1775731 ("MIPS: Fix syscall_get_nr for the syscall exit tracing.")
Signed-off-by: James Hogan <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Lars Persson <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Will Drewry <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/16996/
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions