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

Add several warnings when starting forkserver #1877

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Add several warnings when starting forkserver #1877

merged 1 commit into from
Feb 22, 2024

Conversation

tokatoka
Copy link
Member

No description provided.

@tokatoka tokatoka merged commit 19f5081 into main Feb 22, 2024
25 of 26 checks passed
@tokatoka tokatoka deleted the warnings branch February 22, 2024 13:58
}

if env::var("__AFL_SHM_ID").is_err() {
log::warn!("__AFL_SHM_ID not set. It is necessary to set this env, otherwise the forkserver cannot communicate with the fuzzer");
Copy link
Member

Choose a reason for hiding this comment

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

I don't get it, isn't this set by the executor?

Copy link
Member Author

Choose a reason for hiding this comment

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

no at the moment it is set by user in the fuzzer's code not in executor

Copy link
Member Author

@tokatoka tokatoka Feb 22, 2024

Choose a reason for hiding this comment

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

the forkserver does/can not hold the shmem. (i remember it was because of more than 1 mut ref).

The shmemprovider forkserver holds is used for passing input over shmem and NOT for the coverage map

Copy link
Member

Choose a reason for hiding this comment

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

It needs to be a return Err(Error::IllegalState(..)) in this case

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