SIGN IN SIGN UP

Share dynamic char dev major for /proc/gvisor/{checkpoint,fscheckpoint}

Procfs mounts used a per-mount major number for /proc/gvisor/checkpoint.
Since Linux reserves a limited number of dynamic major numbers, running
many isolated container actions concurrently would exhaust the pool and
crash the sentry with EBUSY.

This adds VFS.GetSharedDynamicCharDevMajor(key) to allocate a major on
first use and share it across all subsequent mounts for that key.
The sentry now consumes exactly two majors for these devices regardless
of how many procfs instances are mounted.

PiperOrigin-RevId: 967985107
A
AnilAltinay committed
ed1b001b8e2c9a9a821d5d2e864a7e3d858ef1cb
Parent: 5d13283
Committed by gVisor bot <gvisor-bot@google.com> on 8/20/2026, 7:34:38 PM