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

fuzz: Add a linker fuzzer #252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aman4150
Copy link
Collaborator

We add a fuzzer for the linker, that uses RISC-V instruction encoding logic to create a sequence of valid instructions. Which then is compiled into a ELF binary and passed to the linker.

Expectation here is that the fuzzer would always generate a valid ELF binary with valid instructions, and the linker should be able to link it without any issues.

Currently the ELF binary is limited to one section (.text) and no symbols. We may want to extend that in the future.

Note: I saw some crashes that the fuzzer has reported and I am working on investigating those issues.

We add a fuzzer for the linker, that uses RISC-V instruction encoding
logic to create a sequence of valid instructions. Which then is compiled
into a ELF binary and passed to the linker.

Expectation here is that the fuzzer would always generate a valid ELF
binary with valid instructions, and the linker should be able to link it
without any issues.

Currently the ELF binary is limited to one section (.text) and no symbols.
We may want to extend that in the future.

Signed-off-by: Aman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant