Skip to content

fix: rebind Fragmentation.releaseJob after checkpoint restore - #15557

Open
jingyugao wants to merge 1 commit into
gvisor:masterfrom
jingyugao:fix/afterload-release
Open

jingyugao wants to merge 1 commit into
gvisor:masterfrom
jingyugao:fix/afterload-release

Conversation

@jingyugao

@jingyugao jingyugao commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

After state.Load, tcpip.Job.locker and fn are nil because they are marked state:"nosave" (see TODO b/341946753 in timer.go). This causes a nil pointer panic at timer.go:157 when Process() schedules the release timer after restore.

Add afterLoad hook to Fragmentation that recreates releaseJob with the correct locker and callback.

Fixes 3500+ observed panics in production deployments running release-20260914.0.

@google-cla

google-cla Bot commented Oct 9, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions
github-actions Bot requested review from fvoznika and nybidari October 9, 2026 02:38
@jingyugao
jingyugao force-pushed the fix/afterload-release branch 2 times, most recently from 055fa5f to d66e4ad Compare October 9, 2026 03:34
@EtiennePerot

Copy link
Copy Markdown
Member

cc @nybidari

jingyugao added a commit to jingyugao/gvisor that referenced this pull request Oct 31, 2026
Rebind the fragment release job after decoding. Job timers, lockers, and callbacks are not serialized, so the first timer fired after restore can otherwise panic.

Restart expiration once the restored clock, routes, and endpoints are ready. Cancel any timer scheduled by incoming fragments before the restart, and preserve each reassembly deadline.

Cover checkpoint round trips, elapsed deadlines, cancellation of dispatched timer callbacks, and the IPv4 ICMP timeout reply.

Signed-off-by: gaojingyu <[email protected]>
@jingyugao
jingyugao force-pushed the fix/afterload-release branch from c45f3f2 to b8caa1a Compare December 2, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants