Feature/path resolution #1
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 241 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.328
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1"
general
weight: 0.35
Piyush2005-code
Command path resolution (execvp) for xv6
Problem: exec() resolves names relative to the cwd, and all UPROGS live in /, so after
cdevery bare command (ls,mkdir, ...) failed withexec ls failed.Fix (user space only, no kernel/fs changes):
int execvp(char file, char argv)in user/ulib.c, declared in user/user.h./→ exec as-is, no search (/ls,./prog,a/b/prog)./first, then cwd. Search path is one array in ulib.c./first so a process cannot hijack a bare name by planting an executable in its cwd. This matters for our project, which assumes the process is untrusted.;and&are all covered.Tests:
Result: 46/46 PASS, and
Negative controls: reverting to exec() fails 16 cases; reverting to cwd-first fails the hijack test.
user/pathtest.c: run from /pt/a/b, it sweeps every program in UPROGS by bare name. The list comes from a header generated from the Makefile, so new programs are picked up automatically. It also covers absolute/relative paths, nonexistent and empty names, a MAXPATH-length name, the cwd-hijack case, and argv passthrough.scripts/test_path_e2e.py(make test-path): boots QEMU at CPUS=1 and CPUS=3, drives the real shell, runs pathtest from a subdirectory andusertests -q. It saves raw logs to scripts/logs/ and restores fs.img afterwards.usertests -qpasses on both CPU settings.For everyone:*
execvp(), notexec(), in your own test programs and harnesses.makebuilds only the kernel. Runmake fs.imgormake qemuafter changing user programs.