gvisor/pkg/sentry/platform/ptrace
Andrei Vagin 48ea2c34d1 platform/ptrace: workaround a kernel ptrace issue on ARM64
On ARM64, when ptrace stops on a system call, it uses the x7 register to
indicate whether the stop has been signalled from syscall entry or syscall
exit. This means that we can't get a value of this register and we can't change
it. More details are in the comment for tracehook_report_syscall in
arch/arm64/kernel/ptrace.c.

This happens only if we stop on a system call, so let's queue a signal, resume
a stub thread and catch it on a signal handling.

Fixes: #5238
PiperOrigin-RevId: 352668695
2021-01-19 15:34:02 -08:00
..
BUILD Don't sched_setaffinity in ptrace platform. 2020-09-09 12:48:57 -07:00
filters.go Don't sched_setaffinity in ptrace platform. 2020-09-09 12:48:57 -07:00
ptrace.go Fix typo in ptrace documentation. 2020-11-30 23:16:39 -08:00
ptrace_amd64.go Enable automated marshalling for signals and the arch package. 2020-04-25 23:56:04 -07:00
ptrace_arm64.go Enable automated marshalling for signals and the arch package. 2020-04-25 23:56:04 -07:00
ptrace_arm64_unsafe.go Enable thread local storage support on arm64. 2020-03-09 01:04:55 +00:00
ptrace_unsafe.go Enable automated marshalling for signals and the arch package. 2020-04-25 23:56:04 -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 package locations. 2020-01-27 15:31:32 -08:00
subprocess.go platform/ptrace: workaround a kernel ptrace issue on ARM64 2021-01-19 15:34:02 -08:00
subprocess_amd64.go platform/ptrace: workaround a kernel ptrace issue on ARM64 2021-01-19 15:34:02 -08:00
subprocess_arm64.go platform/ptrace: workaround a kernel ptrace issue on ARM64 2021-01-19 15:34:02 -08:00
subprocess_linux.go Add support for OCI seccomp filters in the sandbox. 2020-09-15 23:19:17 -07:00
subprocess_linux_unsafe.go Don't sched_setaffinity in ptrace platform. 2020-09-09 12:48:57 -07:00
subprocess_unsafe.go Bump build constraints to 1.17 2020-08-24 12:58:39 -07:00