Description
A TCP listening socket inside a sandbox doesn't accept new connections after runsc restore - but only when the checkpoint was taken
while connections were actively being processed (the netstack TCP dispatcher's
per-processor run-queues were non-empty). The restored process is otherwise
healthy; only inbound connectivity to the listener is dead.
This is reproducible on all releases but tested on runsc release-20260608.0
Steps to reproduce
The steps below are encapsulated in check.sh and repro.go.
- Run a binary under runsc that opens a listening socket and then repeatedly dials and sends packets to that socket.
- Run runsc checkpoint on the sandbox
- Run runsc restore.
- Note that you cannot connect to the listening socket.
This seems obscure but we ran into it in production and came up with a fix.
If you don't hammer the listening socket during checkpoint then we can access the listening socket just fine on restore.
check.sh
repro.go.md
runsc version
runsc version release-20260608.0
spec: 1.2.1
docker version (if using docker)
uname
No response
kubectl (if using Kubernetes)
Linux 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP x86_64 (Ubuntu 22.04, AWS c6i.xlarge)
repo state (if built from source)
used release-20260608.0
runsc debug logs (if available)
Description
A TCP listening socket inside a sandbox doesn't accept new connections after runsc restore - but only when the checkpoint was taken
while connections were actively being processed (the netstack TCP dispatcher's
per-processor run-queues were non-empty). The restored process is otherwise
healthy; only inbound connectivity to the listener is dead.
This is reproducible on all releases but tested on
runsc release-20260608.0Steps to reproduce
The steps below are encapsulated in check.sh and repro.go.
This seems obscure but we ran into it in production and came up with a fix.
If you don't hammer the listening socket during checkpoint then we can access the listening socket just fine on restore.
check.sh
repro.go.md
runsc version
docker version (if using docker)
uname
No response
kubectl (if using Kubernetes)
Linux 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP x86_64 (Ubuntu 22.04, AWS c6i.xlarge)repo state (if built from source)
used release-20260608.0
runsc debug logs (if available)