Skip to content

Update snapshot.rs#3728

Open
seal9055 wants to merge 2 commits intoAFLplusplus:mainfrom
seal9055:seal9055-patch-1
Open

Update snapshot.rs#3728
seal9055 wants to merge 2 commits intoAFLplusplus:mainfrom
seal9055:seal9055-patch-1

Conversation

@seal9055
Copy link
Copy Markdown

libafl_qemu snapshot.rs bug-fixes

Description

Fixed bugs in memory-access syscall hooks. Error codes apart from -1 weren't handled (so a read syscall returning eg. -5 would mark (uint64_t) -5 bytes as accessed). Futex also marked memory as accessed based on its val argument. This argument however either contains a thread-count or an address. The syscall writes at most 4 bytes to the *uaddr argument.

Checklist

  • I have run ./scripts/precommit.sh and addressed all comments

Fixed bugs in memory-access syscall hooks. Error codes apart from -1 weren't handled (so a read syscall returning eg. -5 would mark `(uint64_t) -5` bytes as accessed. Futex also marked memory as accessed based on its `val` argument. This argument however either contains a thread-count or an address. The syscall writes at most 4 bytes to the `*uaddr` argument.
@domenukk
Copy link
Copy Markdown
Member

domenukk commented Apr 7, 2026

This needs to be updated to main

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.

2 participants