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

AFL Warning: We probably want the fork() children to run first #94

Open
xiaozhouqi opened this issue Sep 2, 2022 · 1 comment
Open

Comments

@xiaozhouqi
Copy link

1、Problem description
Traceback (most recent call last):
File "/home/angr/.virtualenvs/angr/bin/shellphuzz", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/home/angr/angr-dev/fuzzer/shellphuzz", line 87, in
memory=args.memory, seeds=seeds, timeout=args.run_timeout,
File "/home/angr/angr-dev/fuzzer/fuzzer/fuzzer.py", line 99, in init
Fuzzer._perform_env_checks()
File "/home/angr/angr-dev/fuzzer/fuzzer/fuzzer.py", line 599, in _perform_env_checks
raise InstallError(err)
fuzzer.fuzzer.InstallError: AFL Warning: We probably want the fork() children to run first
execute 'echo 1 | sudo tee /proc/sys/kernel/sched_child_runs_first'

Exception ignored in: <bound method Fuzzer.del of <fuzzer.fuzzer.Fuzzer object at 0x7f188ab629e8>>
Traceback (most recent call last):
File "/home/angr/angr-dev/fuzzer/fuzzer/fuzzer.py", line 665, in del
self.kill()
File "/home/angr/angr-dev/fuzzer/fuzzer/fuzzer.py", line 266, in kill
for p in self.procs:
2、my unsuccessful solution
I run the following cmd in docker environment which gets from shellphish/mechaphish image. It output
the above error message.I'm trying to modify the sched_child_runs_first config file. But it's readonly file that cannot be changed. How can i solve this problem? I'm very appreciated for you help.
echo 1 | sudo tee /proc/sys/kernel/sched_child_runs_first
tee: /proc/sys/kernel/sched_child_runs_first: Read-only file system

@xiaozhouqi
Copy link
Author

shellphuzz -i -c 4 ./buggy

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

1 participant