LATX, fix: Release resources after reading an empty task cmdline #540
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.55) × (1 − Review Confidence (0.42)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 128 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.291
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 item
"Review active on #540"
general
weight: 0.35
ganjue66da
Summary / 变更说明
Reading another task's empty
/proc/<pid>/cmdline, including a zombie task, returns before closing the input stream and freeing the argument vector. Repeated process scans therefore leak a descriptor on every empty result.Close the stream and use the existing common argument cleanup. Register x86_64 and i386 regressions that scan an empty task cmdline 256 times and check that the descriptor count stays unchanged.
Validation / 验证
Tested independently at
de9640ff3873cb98e85eabbdd3395d8291992d0d, directly onmaster(8479a8b8dbdc8f8e1bf2f157d34ae3caf6b81ee6), on LoongArch Linux with 16 KiB host pages. Translator version:1.6.5-536-gde9640ff38.Using the matching Meson 0.60.1 executable (
$MESON) and verified prebuilt guest cmdline fixtures:lat-pr-fast: 52/52 passed, zero skipped. UBSan tests remain enabled; the host compiler wrapper selects Clang for those cases because host GCC lacks libubsan.git diff --check, commit-message and author/DCO checks passed. Checkpatch: 0 errors, 1 warning, the test-file MAINTAINERS reminder.This PR contains one independent fix. It does not require the executable-identity or Netlink fixes. A full GoldenDB stack/stress acceptance run was not repeated for this standalone revision.
Checklist / 检查项
CONTRIBUTING.md.