gvisor/runsc
Fabricio Voznika 9e64b9f3a5 Fix gofer monitor prematurely destroying container
When all container tasks finish, they release the mount which in turn
will close the 9P session to the gofer. The gofer exits when the connection
closes, triggering the gofer monitor. The gofer monitor will _think_ that
the gofer died prematurely and destroy the container. Then when the caller
attempts to wait for the container, e.g. to get the exit code, wait fails
saying the container doesn't exist.

Gofer monitor now just SIGKILLs the container, and let the normal teardown
process to happen, which will evetually destroy the container at the right
time. Also, fixed an issue with exec racing with container's init process
exiting.

Closes #1487

PiperOrigin-RevId: 335537350
2020-10-05 17:40:23 -07:00
..
boot Fix gofer monitor prematurely destroying container 2020-10-05 17:40:23 -07:00
cgroup
cmd Remove option to panic gofer 2020-09-17 12:01:45 -07:00
config Add support for OCI seccomp filters in the sandbox. 2020-09-15 23:19:17 -07:00
console Refactor tty codebase to use master-replica terminology. 2020-09-01 14:43:41 -07:00
container Fix gofer monitor prematurely destroying container 2020-10-05 17:40:23 -07:00
flag Make flag propagation automatic 2020-08-26 20:24:41 -07:00
fsgofer Add openat() to list of permitted syscalls in gotsan runs. 2020-09-25 19:36:01 -07:00
sandbox Fix gofer monitor prematurely destroying container 2020-10-05 17:40:23 -07:00
specutils fix seccomp test for ARM64 2020-09-25 14:49:13 +08:00
BUILD Include shim in individual released binaries. 2020-08-25 12:24:32 -07:00
main.go Make flag propagation automatic 2020-08-26 20:24:41 -07:00
version.go
version_test.sh