fix(procfs): use vpid-aware lookup for /proc pid entries#1808
fix(procfs): use vpid-aware lookup for /proc pid entries#1808sparkzky wants to merge 1 commit intoDragonOS-Community:masterfrom
Conversation
Switch /proc/[pid] handlers from ProcessManager::find to find_task_by_vpid via a shared helper so procfs resolves tasks in the caller-visible pid namespace. Also simplify fd/fdinfo inode creation to pass pid directly and update /proc root directory enumeration to collect visible pids from the active pid namespace. Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
|
@claude review |
|
Claude finished @sparkzky's task in 6m 6s —— View job PR Review: fix(procfs): use vpid-aware lookup for /proc pid entriesReview Summary: ✅ Positive Aspects:
🔍 Code Review Findings: kernel/src/filesystem/procfs/root.rs:
kernel/src/filesystem/procfs/pid/mod.rs:
Other files (cmdline.rs, exe.rs, fd.rs, fdinfo.rs, etc.):
📋 Testing Suggestions:
Overall: This is a well-implemented PR that correctly addresses PID namespace isolation in procfs. The changes are consistent, maintainable, and follow good practices. The approach of storing PIDs and looking up processes dynamically is sound. Recommendation: APPROVE - The PR is ready for merge. Todo list:
Review completed! ✅ |
Switch /proc/[pid] handlers from ProcessManager::find to
find_task_by_vpid via a shared helper so procfs resolves tasks in the
caller-visible pid namespace.
Also simplify fd/fdinfo inode creation to pass pid directly and update
/proc root directory enumeration to collect visible pids from the active
pid namespace.