dd incorrectly depends on fcntl syscall
Open
Nobody has claimed this yet.
U - dd
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
$ strace -o /dev/null -e inject=fcntl:error=ENOSYS dd if=/etc/pacman.conf
dd: write error
$ strace -o /dev/null -e inject=fcntl:error=ENOSYS '/home/a/bin/gnu9.11/dd' if=/etc/pacman.conf # success
I guess this bug was introduced at https://github.com/uutils/coreutils/pull/10235
@svlv @ChrisDryden
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Rust implementation and tests for the dd command, then reproduce the issue with strace using the shown fcntl ENOSYS injection. Compare the behavior with GNU dd and verify that dd succeeds without requiring fcntl when the injected syscall fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100