Skip to content

Deadlock Patch - #551

Merged
breardon2011 merged 1 commit into
mainfrom
network-patch-fix
Jul 27, 2026
Merged

Deadlock Patch #551
breardon2011 merged 1 commit into
mainfrom
network-patch-fix

Conversation

@breardon2011

@breardon2011 breardon2011 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Golden/hibernate snapshots capture the rootfs fsfrozen; the wake path thawed it by exec'ing fsfreeze from that frozen rootfs — a deadlock (exec needs fs, fs needs thaw) that intermittently hangs every post-restore RPC into a 524 (what #548 backstops). Replaces the exec thaw with a native Thaw RPC issuing FITHAW on an O_RDONLY|O_NOATIME fd: no exec, no write to the frozen fs. Falls back to exec for pre-Thaw agents. Reverts a debug log flag. Validated on dev (stall released in 5ms).

the bugs impact is a small, intermittent subset — not every wake. The deadlock only closes when the thaw's exec happens to hit a write-lock on the frozen rootfs (atime/timing dependent); usually it squeaks through and wakes complete normally, so only a rare tail 524s. The fix is a net gain: native FITHAW thaws without exec or a write to the frozen fs, removing the hazard entirely, with no change to the healthy path, no wire break, and an exec fallback for old agents during rollout.

@breardon2011
breardon2011 merged commit debeafa into main Jul 27, 2026
3 checks passed
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.

1 participant