gvisor/pkg/sentry/platform
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
..
interrupt Consistent precondition formatting 2020-08-20 13:32:24 -07:00
kvm Merge pull request #4792 from lubinszARM:pr_kvm_test 2021-01-13 12:12:26 -08:00
ptrace platform/ptrace: workaround a kernel ptrace issue on ARM64 2021-01-19 15:34:02 -08:00
ring0 Fix simple mistakes identified by goreportcard. 2021-01-12 12:38:22 -08:00
BUILD Implement membarrier(2) commands other than *_SYNC_CORE. 2020-10-06 13:55:16 -07:00
context.go Update package locations. 2020-01-27 15:31:32 -08:00
mmap_min_addr.go Update package locations. 2020-01-27 15:31:32 -08:00
platform.go Implement membarrier(2) commands other than *_SYNC_CORE. 2020-10-06 13:55:16 -07:00