Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs/proc: Fix groupfd to get fd by group instead of current tcb #11318

Merged
merged 1 commit into from Dec 5, 2023

Conversation

wengzhe
Copy link
Contributor

@wengzhe wengzhe commented Dec 4, 2023

Summary

/proc/<pid>/group/fd should read the fds of <pid>, not current tcb.

Note: This problem exists between #11140 and this PR.

Impact

/proc/<pid>/group/fd

Testing

fdinfo command, which shows the same result for every thread before this patch.

fs/inode/fs_files.c Show resolved Hide resolved
include/nuttx/fs/fs.h Show resolved Hide resolved
/proc/<pid>/group/fd should read the fds of <pid>, not current tcb.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit bffe858 into apache:master Dec 5, 2023
26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.4.0 Dec 27, 2023
@jerpelea jerpelea moved this from To-Add to fs in Release Notes - 12.4.0 Jan 8, 2024
@jerpelea jerpelea moved this from fs to processed in Release Notes - 12.4.0 Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants