Gate operands on the nvidia module's sysfs initstate #2959
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 319 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2959"
general
weight: 0.35
tariq1890
Description
Operand
toolkit-validationinit containers (GFD, device plugin, DCGM, DCGM Exporter, MIG Manager, MPS Control Daemon) now detect a loaded NVIDIA driver through the kernel's per-module sysfs state instead of/proc/modules:The module check was added so that an operand is not created while the driver is unloaded (#2874, fixed by #2881).
/proc/moduleskeeps a module listed while it is still initializing (Loading) and while it is being removed (Unloading), andgrep '^nvidia 'matches both, so the gate can open in the middle of a driver load or unload, which is the window it is meant to close./sys/module/nvidia/initstatereadsliveonly once module init has completed, andcomingorgoingotherwise.initstateis part of the documented sysfs module ABI (Documentation/ABI/testing/sysfs-module, since 2.6.19), and it matches how the validator already decides the module is loaded:isNvidiaModuleLoaded()incmd/nvidia-validator/main.goreads/sys/module/nvidia/refcnt.-skeeps the loop's output to its own "waiting" line while the module is absent.Not changed: the WSL2
/dev/dxgbranch, and the container-toolkit runtime wrapper, which still checks/proc/moduleson its own (separate repository).Checklist
make lint): fails with 3SA4023findings incmd/nvidia-validator/main.go(lines 741, 742, 1728), a file this PR does not touch; the same three were reported on pristinemainin #2881make validate-generated-assets)make validate-modules)TestOperandToolkitReadinessWaitsForLiveDrivernow asserts the sysfs gate on all six manifestsTesting
go test ./controllers -run TestOperandToolkitReadinessWaitsForLiveDriver: failed on all six subtests with only the test updated, passes with the manifests changed.make unit-test: 21 packages ok, no failures.make fmt: clean.