google / honggfuzz

Security oriented software fuzzer. Supports evolutionary, feedback-driven fuzzing based on code coverage (SW and HW based)
https://honggfuzz.dev
Apache License 2.0
3.04k stars 511 forks source link

Hongfuzz returns error when executed through ssh #493

Closed warlock2k closed 1 year ago

warlock2k commented 1 year ago

Hi,

When I run honggfuzz through ssh as a remote command, it exits with 1. Any reason why you think this may be happening?

Honggfuzz runs inside of qnx 7.1 running inside a ubuntu:latest docker container. Here is the command I ran from the docker container

ssh -t -o UserKnownHostsFile=ssh/known_hosts -o StrictHostKeyChecking=no -i ssh/ssh-key root@{IP} 'running hongfuzz here'

[2023-06-06T20:48:48+0000][W][13357080] arch_checkWait():282 Persistent mode: pid=14684187 exited with status: EXITED, exit code: 1
Persistent mode: Launched new persistent pid=14712859
[2023-06-06T20:48:48+0000][W][13357080] arch_checkWait():282 Persistent mode: pid=14712859 exited with status: EXITED, exit code: 1
Persistent mode: Launched new persistent pid=14745627
[2023-06-06T20:48:48+0000][W][13357080] arch_checkWait():282 Persistent mode: pid=14745627 exited with status: EXITED, exit code: 1
Persistent mode: Launched new persistent pid=14774299
[2023-06-06T20:48:49+0000][W][13357080] arch_checkWait():282 Persistent mode: pid=14774299 exited with status: EXITED, exit code: 1
Persistent mode: Launched new persistent pid=14802971
[2023-06-06T20:48:49+0000][W][13357080] arch_checkWait():282 Persistent mode: pid=14802971 exited with status: EXITED, exit code: 1
Persistent mode: Launched new persistent pid=14831643
[2023-06-06T20:48:49+0000][W][13357080] arch_checkWait():282 Persistent mode: pid=14831643 exited with status: EXITED, exit code: 1

Using --debug

Persistent mode: Launched new persistent pid=5083158
[2023-06-06T20:21:33+0000][D][5087255] arch_launchRunner():206 Launching the runner './fuzzer'
[2023-06-06T20:21:33+0000][D][659477] arch_checkWait():274 pid=5083158 returned with status: EXITED, exit code: 1
[2023-06-06T20:21:33+0000][D][659477] arch_analyzeSignal():96 Process (pid 5083158) exited normally with status 1
[2023-06-06T20:21:33+0000][W][659477] arch_checkWait():282 Persistent mode: pid=5083158 exited with status: EXITED, exit code: 1
[2023-06-06T20:21:33+0000][D][659477] fuzz_perfFeedback():192 New file size: 1590, Perf feedback new/cur (instr,branch): 0/0/0/0, BBcnt new/total: 0/0
[2023-06-06T20:21:33+0000][D][659477] files_readFileToBufMax():64 Read '2422' bytes from '../corpus/input-fuzzer/da62458981e9463feb837a9fe0a92f95.00000976.honggfuzz.cov'
[2023-06-06T20:21:33+0000][D][659477] subproc_New():322 Forking new process for thread: 0
[2023-06-06T20:21:33+0000][D][659477] subproc_New():368 Launched new process, pid=5099542, thread: 0 (concurrency: 1)
[2023-06-06T20:21:33+0000][D][5099542] arch_launchChild():185 Launching './fuzzer-hc' on file '/dev/fd/-1'
warlock2k commented 1 year ago

It was an issue with some of the configurations I had. Closing this one.