gvisor/pkg/sentry/platform/ptrace
Andrei Vagin 17c18241cd platform/syscall: use syscall + int3 to execute a system call in a stub process
Right now, we need to call ptrace(PTRACE_SYSCALL) and wait() twice to execute
one system call in a stub process. With these changes, we will need to call
ptrace + wait only once.

In addition, this allows to workaround the kernel bug when a stub process
doesn't stop on syscall-exit-stop and starts executing the next system call.

Reported-by: syzbot+37143cafa8dc3b5008ee@syzkaller.appspotmail.com
PiperOrigin-RevId: 288393029
2020-01-06 15:54:53 -08:00
..
BUILD platform/ptrace: use host.GetCPU instead of the getcpu syscall 2019-11-18 14:56:49 -08:00
filters.go Avoid importing platforms from many source files 2019-07-03 22:51:26 -07:00
ptrace.go Add initial ptrace stub and syscall support for arm64. 2019-08-09 13:18:11 -07:00
ptrace_amd64.go Add initial ptrace stub and syscall support for arm64. 2019-08-09 13:18:11 -07:00
ptrace_arm64.go Add initial ptrace stub and syscall support for arm64. 2019-08-09 13:18:11 -07:00
ptrace_unsafe.go platform/ptrace: log exit code for stub processes 2019-09-17 12:45:22 -07:00
stub_amd64.s platform/syscall: use syscall + int3 to execute a system call in a stub process 2020-01-06 15:54:53 -08:00
stub_arm64.s platform/syscall: use syscall + int3 to execute a system call in a stub process 2020-01-06 15:54:53 -08:00
stub_unsafe.go Update canonical repository. 2019-06-13 16:50:15 -07:00
subprocess.go platform/syscall: use syscall + int3 to execute a system call in a stub process 2020-01-06 15:54:53 -08:00
subprocess_amd64.go platform/syscall: use syscall + int3 to execute a system call in a stub process 2020-01-06 15:54:53 -08:00
subprocess_arm64.go platform/syscall: use syscall + int3 to execute a system call in a stub process 2020-01-06 15:54:53 -08:00
subprocess_linux.go Replace syscall.PTRACE_SYSEMU with unix.PTRACE_SYSEMU 2019-12-23 06:42:03 +00:00
subprocess_linux_unsafe.go platform/ptrace: use host.GetCPU instead of the getcpu syscall 2019-11-18 14:56:49 -08:00
subprocess_unsafe.go Update build tags to allow Go 1.14 2019-10-29 13:18:16 -07:00