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

Non-halting cloud build instances #278

Open
DonggeLiu opened this issue May 17, 2024 · 1 comment
Open

Non-halting cloud build instances #278

DonggeLiu opened this issue May 17, 2024 · 1 comment
Labels

Comments

@DonggeLiu
Copy link
Collaborator

DonggeLiu commented May 17, 2024

Some cloud-build instances run over 10 hours despite with a 30-minte fuzzing timeout:
image

It stuck on coverage measurement in step 14:

Starting Step #14
Step #14: Already have image (with digest): gcr.io/oss-fuzz-base/base-runner
Step #14: Running agent_fuzz
@DonggeLiu
Copy link
Collaborator Author

This is not reproducible locally with OSS-Fuzz, here are the steps:

Patch the LLM-generated fuzz target to OSS-Fuzz:

diff --git a/projects/openssh/Dockerfile b/projects/openssh/Dockerfile
index e2cf25774..400d2fba7 100644
--- a/projects/openssh/Dockerfile
+++ b/projects/openssh/Dockerfile
@@ -21,3 +21,4 @@ RUN git clone --depth 1 https://github.com/openssh/openssh-portable openssh
 RUN git clone --depth 1 https://github.com/djmdjm/openssh-fuzz-cases
 WORKDIR openssh
 COPY build.sh $SRC/
+COPY target.cc /src/openssh/regress/misc/fuzz-harness/agent_fuzz.cc
diff --git a/projects/openssh/target.cc b/projects/openssh/target.cc
new file mode 100644
index 000000000..553dc0ec6

Where projects/openssh/target.cc is from:
https://llm-exp.oss-fuzz.com/Result-reports/scheduled/2024-05-16-weekly-all/sample/output-openssh-xxxmain/09#:~:text=fixed%20line.%0A%3Csolution%3E-,Code%20%231,-%60%60%60c%2B%2B%0A%23include%20%3Cfuzzer

Build and run fuzz target

python infra/helper.py build_image --pull openssh
python infra/helper.py build_fuzzers openssh
python infra/helper.py run_fuzzer --engine libfuzzer openssh agent_fuzz
python infra/helper.py build_fuzzers --sanitizer=coverage openssh
python infra/helper.py run_fuzzer --engine libfuzzer --sanitizer=coverage openssh agent_fuzz

Where python infra/helper.py run_fuzzer --engine libfuzzer openssh agent_fuzz produced a crash quickly and python infra/helper.py run_fuzzer --engine libfuzzer --sanitizer=coverage openssh agent_fuzz reproduced it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant