Handle ESRCH from openByHandleAt in addition to ESTALE in NewPIDHandleFromString #29851
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 381 lines diff across 4 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.356
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #29851"
general
weight: 0.35
Honny1
<!-- Thanks for sending a pull request! You are welcome! -->
Addresses an issue when openByHandleAt returns an ESRCH.
I encountered this on podman client
5.8.5and a podman5.6.2machine, running a postgres:17-alpine via testcontainers. The podman log containedNewPIDHandleFromString handles ESTALE but not ESRCH from openByHandleAt. https://man7.org/linux/man-pages/man2/open_by_handle_at.2.html did not list an ESRCH, so I used Claude locally to trace the issue.
It appears after testcontainers-go started the container, it runs a brief command (see https://github.com/testcontainers/testcontainers-go/blob/6e584183e1623fb83a78db902462eb9ee255327b/wait/host_port.go#L314) to check host ports, which took less than the 10ms between
execandexec_diedon the machine's journal.The
exec inspect'sopen_by_handle_atran at this time, and on my machine's kernel version (6.15.10-200.fc42) pidfs_export_open returns ESRCH when pidfs_pid_valid returns false because it was in the process of being reaped.Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
<!-- Use [x] to mark as done, or click the checkbox after opening PR -->
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. See CONTRIBUTING.md
for more information.
Fixes: #00000in commit message (if applicable)make validatepr(format/lint checks)Noneif no user-facing changes)Does this PR introduce a user-facing change?
``
release-note
``Fix 500 from exec inspect when open_by_handle_at returns ESRCH