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

Does desock close the pipe when used in AFL? #30

Open
leithon opened this issue Apr 21, 2017 · 2 comments
Open

Does desock close the pipe when used in AFL? #30

leithon opened this issue Apr 21, 2017 · 2 comments

Comments

@leithon
Copy link

leithon commented Apr 21, 2017

Hi, Yan,

I am using desock and AFL to fuzz a program that receives inputs from socket.
A problem is that if crashes is found, then AFL will be blocked at the statement read(fsrv_st_fd, &status, 4).
If the AFL_NO_FORKSRV is set, AFL works well.

The difference between these two fork methods is that AFL will not use the pipe to get status of the child process with AFL_NO_FORKSRV.

Thus, I guess that desock will close the pipe or forbid writing to the pipe if the afl-qemu-trace detects crashes.

Do you have any ideas to fix this problem? Thanks.

@zardus
Copy link
Owner

zardus commented Apr 25, 2017

Interesting... Preeny should avoid intercepting non-AF_INET (or AF_INET6) sockets, so that shouldn't be the problem... Maybe the threading that desock does is screwing up AFL somehow? Although if that's the case, I'd expect the fork server not to necessarily make difference...

@leithon
Copy link
Author

leithon commented Apr 25, 2017 via email

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

No branches or pull requests

2 participants