Repository navigation
docs: audit SQPOLL rootless-container detection landing status (SQP-LAND.1) - #5548
Merged
Merged
Conversation
This was referenced Jun 10, 2026
oferchen
force-pushed
the
docs/sqp-land-1-rootless-audit
branch
from
June 10, 2026 07:58
f84e599 to
8ae8491
Compare
oferchen
added a commit
that referenced
this pull request
Jun 10, 2026
….5) (#5558) Per SQP-LAND.1 audit (PR #5548), `build_ring()` previously discarded the SQPOLL setup errno and set `SQPOLL_FALLBACK` without a log, leaving operators unable to tell whether a slow daemon was running with a downgraded ring. Add a typed `IoUringRestriction::SqpollUnavailable { hint }` variant and capture the errno when `IORING_SETUP_SQPOLL` is rejected so the cause can be distinguished: - `EPERM`: rootless container or missing `CAP_SYS_NICE` - `ENOSYS`: kernel predates `IORING_SETUP_SQPOLL` - other: generic kernel rejection (errno surfaced numerically) The hint is logged via `debug_log!(Io, 1, ...)` and latched in a `OnceLock` so callers (`--io-uring-status`, daemon log, structured error reporting) can read the same wording without parsing logs. A stub for non-Linux platforms mirrors the API surface. SQP-LAND.4 will wire `detect_io_uring_restriction()` to surface `SqpollUnavailable` when the latched hint is present; this PR keeps the detection function unchanged and only introduces the variant and log so the wire-up can land independently.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
….5) (#5558) Per SQP-LAND.1 audit (PR #5548), `build_ring()` previously discarded the SQPOLL setup errno and set `SQPOLL_FALLBACK` without a log, leaving operators unable to tell whether a slow daemon was running with a downgraded ring. Add a typed `IoUringRestriction::SqpollUnavailable { hint }` variant and capture the errno when `IORING_SETUP_SQPOLL` is rejected so the cause can be distinguished: - `EPERM`: rootless container or missing `CAP_SYS_NICE` - `ENOSYS`: kernel predates `IORING_SETUP_SQPOLL` - other: generic kernel rejection (errno surfaced numerically) The hint is logged via `debug_log!(Io, 1, ...)` and latched in a `OnceLock` so callers (`--io-uring-status`, daemon log, structured error reporting) can read the same wording without parsing logs. A stub for non-Linux platforms mirrors the API surface. SQP-LAND.4 will wire `detect_io_uring_restriction()` to surface `SqpollUnavailable` when the latched hint is present; this PR keeps the detection function unchanged and only introduces the variant and log so the wire-up can land independently.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crates/fast_io/src/for SQPOLL rootless-container detection (SQP-2/3/4/5) against the SQP-1..6 design docs.crates/fast_io/src/io_uring/config.rs:357-386(IoUringConfig::build_ring) - so SQP-LAND.2 has a concrete landing target./proc/self/uid_map, checks/run/.containerenvor/.dockerenv, andWiredBasisWindowhas zero production call sites.ContainerContextmodule, anIoUringRestriction::SqpollUnavailablevariant, and wiringWiredBasisWindow::newinto a real submission site.Test plan