-
Notifications
You must be signed in to change notification settings - Fork 3
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
failed to connect to debugger #2
Comments
Hi, I am also running the same command as you do, but I crashed a little bit earlier than you. The error message shows that I don't have a executable file called syz-syzgen. I searched your log and found this line:
... but I could not find syskaller/tools/syz-syzgen in my syzkaller. I thought it was because the syzkaller I used was too new, so I searched for GitRevision in your line, but I could not find the git revision in syzkaller's commit. Going back to syzkaller before gitRevisionDate 20230315 did not help either. Could you please tell me how to get syz-syzgen? Thanks in advance! |
Make sure the syzkaller branch you are using is the syzgen branch, you can get the relevant commands in setup.sh |
Thanks for replying! I met the same problem as you did, and I did a little debugging. It turns out that in syzgen/vm/init.py function attach_debugger(), there is a self.suspend() that blocks the following execution of debugger. I don't understand the meaning of it, but it seems removing it from code works fine. However, I met another bug here, which relates to the angr and z3 solver. If I don't add "--dynamic" flag, it will use static analyzer, which crashed with "ValueError: Exceeds the limit (4300) for integer string conversion: value has 9807 digits". The full crash log is listed below:
It looks like angr is not compatible with z3, but I am not sure. Did you try to remove "--dynamic" option and got similar warnings? |
No warning appears after removing --dynamic flag |
Then it should be my environment setting problem. Could you please tell me the version of angr and z3 solver you use? |
After installation. I Run command as https://github.com/seclab-ucr/SyzGenPlusPlus/blob/main/docs/linux.md
python main.py --target autofs --find_cmds --dynamic
But the error message:
main: error: unrecognized arguments: --find_cmds
So I used the following command instead (not sure if it is correct, but the program seems to be running normally)
python3 main.py --target zero -s FIND_CMD --dynamic
But after a while, the program running log will show:
Please tell me if the command I am using is correct and how can I solve this problem?
The following is all the logs of the program running:
resource: &{{11304 1} 0 0 0 map[0xc0003a04e0:true]} *prog.ResultArg zero_fd out
new testcase:
r0 = openat$zero_syzgen(0xffffffffffffff9c, &(0x7f0000001000), 0x20002, 0x0)
syz_invoke_driver$check_resource(0x1, r0, 0x0)
tmpojo7_pg4_poc 100% 17KB 14.1MB/s 00:00
/root
tmp0jxolkxz_poc 100% 20KB 14.7MB/s 00:00
/root
INFO | 2024-05-30 15:33:32,551 | syzgen.debugger.proxy | start server, waiting for debugger to connect...
ERROR | 2024-05-30 15:35:32,651 | syzgen.debugger.proxy | failed to connect to debugger
qemu-system-x86_64: terminating on signal 15 from pid 1817906 (python3)
The text was updated successfully, but these errors were encountered: