bytecodealliance / bytecodealliance/userfaultfd-rs
Uffd::into_raw_fd closes the underlying FD
Open
Beginner friendly
- Dominant language
- Rust
- Stars
- 49
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
The current implementation of the `IntoRawFd` trait doesn't seem to work correctly. When calling `Uffd::into_raw_fd` the method correctly returns the fd, but it also ends up calling `Uffd::drop` which immediately closes the fd.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the Uffd::into_raw_fd implementation and compare its ownership behavior with Uffd::drop. Verify the conversion returns the file descriptor without closing it, and confirm the descriptor remains usable after the Uffd value is consumed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100