Skip to content

Conversation

@liuw
Copy link
Member

@liuw liuw commented Jan 2, 2025

Instruction decoding and emulation is complex. Introduce a fuzzer for it.

The fuzzer has found some issues in integer arithmetic. They are fixed in the same PR.

@liuw liuw requested a review from a team as a code owner January 2, 2025 05:24
@liuw liuw force-pushed the fuzz-x86-insn-emulator branch from 39037ee to 04e6ffc Compare January 2, 2025 05:39
Copy link
Member

@likebreath likebreath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition to the fuzzer set we have. Only two nits below.

@liuw liuw force-pushed the fuzz-x86-insn-emulator branch from 04e6ffc to 798dbd9 Compare January 2, 2025 20:03
liuw added 4 commits January 2, 2025 20:10
The fastfmt feature and VEX support use techniques that appear to leak
memory in the eye of LLVM's address sanitizer.

While at it, disable a bunch of instruction set decoding support we
never intend to support.

Signed-off-by: Wei Liu <[email protected]>
This will become useful when we build the fuzzing target for the
instruction emulator, because there is no need to pull in the rest of
the hypervisor crate in that situation.

Signed-off-by: Wei Liu <[email protected]>
@liuw liuw force-pushed the fuzz-x86-insn-emulator branch from 798dbd9 to e81251d Compare January 2, 2025 20:11
@likebreath likebreath added this pull request to the merge queue Jan 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 2, 2025
@liuw liuw added this pull request to the merge queue Jan 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 2, 2025
@liuw liuw added this pull request to the merge queue Jan 2, 2025
Merged via the queue into cloud-hypervisor:main with commit 7c39f37 Jan 2, 2025
40 checks passed
@liuw liuw deleted the fuzz-x86-insn-emulator branch January 2, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants