diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-10-22 22:00:21 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-10-22 22:00:21 +0000 |
commit | 97c3c4cc46299089539ca463ca7992fe1bad46e0 (patch) | |
tree | 23b969f113219731e65c22a55f809b49e589865e /pkg/sentry/platform/ptrace/subprocess_linux.go | |
parent | b66219372b4c6cae3ed4313be74ffcd8f11934af (diff) | |
parent | e63ff6d923bb7ec74b837e6b00df41e4d805e70a (diff) |
Merge release-20190806.1-303-ge63ff6d (automated)
Diffstat (limited to 'pkg/sentry/platform/ptrace/subprocess_linux.go')
-rw-r--r-- | pkg/sentry/platform/ptrace/subprocess_linux.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/platform/ptrace/subprocess_linux.go b/pkg/sentry/platform/ptrace/subprocess_linux.go index c075b5f91..3782d4332 100644 --- a/pkg/sentry/platform/ptrace/subprocess_linux.go +++ b/pkg/sentry/platform/ptrace/subprocess_linux.go @@ -129,6 +129,9 @@ func createStub() (*thread, error) { // transitively) will be killed as well. It's simply not possible to // safely handle a single stub getting killed: the exact state of // execution is unknown and not recoverable. + // + // In addition, we set the PTRACE_O_TRACEEXIT option to log more + // information about a stub process when it receives a fatal signal. return attachedThread(uintptr(syscall.SIGKILL)|syscall.CLONE_FILES, defaultAction) } |