uutils / uutils/coreutils

dd: Illegal seek when doing: dd bs=1 skip=4 if=/sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c of=/tmp/foo

Open
#12,184 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

U - dd
Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

uutils dd fails to skip some bytes when reading from the somewhat special efivars filesystem. Says Illegal seek. But not so; this use-case is for skipping the first 4 bytes of metadata, reading out only the actual variable contents. uutils dd ought to obey just as happily as GNU dd when asked to do this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Rust implementation and seek handling for the dd command, then reproduce the command against the efivars SecureBoot path. Compare its output with GNU dd, including skipping the first four bytes. Done means the command no longer reports Illegal seek and writes the expected variable contents to /tmp/foo.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.