summaryrefslogtreecommitdiffhomepage
path: root/pkg/log/log_test.go
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2021-01-19 15:31:49 -0800
committergVisor bot <gvisor-bot@google.com>2021-01-19 15:34:02 -0800
commit48ea2c34d1d3dead7727d9e2760b587c7609b14b (patch)
tree7b8e2c8bc3a2a1a8da7f780800e4d2aae674b943 /pkg/log/log_test.go
parentbe17b94446b2f96c2a3d531fe20271537c77c8aa (diff)
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
Diffstat (limited to 'pkg/log/log_test.go')
0 files changed, 0 insertions, 0 deletions