Skip to content

TCP listening socket stops accepting after checkpoint/restore under connection load #13554

Description

@yaseenisolated

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.

  1. Run a binary under runsc that opens a listening socket and then repeatedly dials and sends packets to that socket.
  2. Run runsc checkpoint on the sandbox
  3. Run runsc restore.
  4. 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)

na

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)

No relevant debug logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions