← Back to Pull requests

fix: discover the MPS pipe directory for IPC mounts #2143

Closed
unknown closed this pull request without merging on Oct 14, 2026 23:17 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 16:00 UTC
Author

Description

NewIPCDiscoverer intends to mount the MPS pipe directory (/tmp/nvidia-mps) alongside the persistenced and fabricmanager sockets, but it located it with a file locator. The file locator's default filter (assertFile) rejects directories, and the miss is only logged at debug level, so the MPS pipe directory was never found and no mount was emitted for it in generated CDI specs or the runtime's automatic CDI modifications.

This change uses the existing directory locator for the MPS pipe directory. The socket lookup and the IPC mount options (nosuid, nodev, rbind, rprivate, noexec) are unchanged.

The legacy (libnvidia-container) path is not affected; it already locates the MPS pipe directory in nvc_info.c.

Known gaps, not addressed here:

  • libnvidia-container honours CUDA_MPS_PIPE_DIRECTORY; the Go discoverer still only checks /tmp/nvidia-mps.

  • The directory is resolved relative to the driver root, matching libnvidia-container. With a containerized driver root, the MPS daemon's pipe directory is likely on the host's /tmp and may still not be found.
  • Checklist

  • No secrets, sensitive information, or unrelated changes

  • Unit tests passing (make test)

  • Lint checks passing (make lint)

  • Test cases are added for new code paths

  • Commits are signed-off and cryptographically signed
  • Testing

  • Added TestNewIPCDiscoverer, a table test over a temporary driver root covering: no IPC paths present, the MPS directory (emitted with the IPC mount options), a regular file at the MPS path (ignored), sockets under /run and /var/run, socket paths that are directories (ignored), and sockets together with MPS. The MPS case fails with the previous file locator.

  • go test ./internal/discover/... ./pkg/lookup/..., go vet, and golangci-lint run on the touched packages pass.

  • Not yet tested on a GPU node running the MPS control daemon.
  • 🤖 Generated with Claude Code

    Diff: 261 lines (+195 / -66) across 3 files Reviewer: cdesiniotis Review duration: 436m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 261 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.333
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2143"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.2% (MEDIUM) · Higher = larger blast radius
    39.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.5% · Safe to merge
    15.5%