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

.github/workflows: Enable fuzz testing as a nightly CI task #631

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

benjamindoron
Copy link
Contributor

@benjamindoron benjamindoron commented Aug 11, 2023

TODO:

  • We should finalise max length to fuzz per target.
  • Parameterise runs-on to consider using GCP?

@benjamindoron benjamindoron force-pushed the fuzzing_ci branch 2 times, most recently from 687818b to 29b5870 Compare August 16, 2023 14:56
korran
korran previously approved these changes Aug 16, 2023
jhand2
jhand2 previously approved these changes Sep 1, 2023
@FerralCoder FerralCoder added the Build & Release Build and release process, CI automation label Sep 11, 2023
@benjamindoron benjamindoron changed the title [DNM] .github/workflows: Enable fuzz testing as a nightly CI task .github/workflows: Enable fuzz testing as a nightly CI task Sep 18, 2023
@benjamindoron benjamindoron force-pushed the fuzzing_ci branch 3 times, most recently from b691c7c to 4fcce47 Compare September 22, 2023 18:51
@jhand2 jhand2 enabled auto-merge (rebase) September 27, 2023 16:34
We should finalise max length to fuzz per target.
Parameterise `runs-on` to consider using GCP?

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
@jhand2 jhand2 merged commit 2a4a37f into chipsalliance:main Sep 27, 2023
@benjamindoron
Copy link
Contributor Author

Sure, I think the max length values are at least good start now.

@benjamindoron
Copy link
Contributor Author

benjamindoron commented Sep 28, 2023

Necessary follow-ups:

  • libFuzzer: GH ignore return value (target crash is not CI error). max_total_time does not work as expected, jobs continue to be spawned. image/verify corpus unavailable, though the job is dependent, it ran on another system.
  • AFL: Fixup shell script syntax error. Consider disabling for now, or look into exit codes to identify error.

Then, switch to GCP.

benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Oct 3, 2023
Addresses
chipsalliance#631 (comment).

Now runs each worker for a limited amount of time, totalling one hour.
AFL "run fuzzing" now passes ShellCheck.

DNM: Investigate AFL exit codes or disable for now.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
jhand2 pushed a commit to benjamindoron/caliptra-sw that referenced this pull request Oct 31, 2023
Addresses
chipsalliance#631 (comment).

Now runs each worker for a limited amount of time, totalling one hour.
AFL "run fuzzing" now passes ShellCheck.

DNM: Investigate AFL exit codes or disable for now.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
jhand2 pushed a commit to benjamindoron/caliptra-sw that referenced this pull request Nov 9, 2023
Addresses
chipsalliance#631 (comment).

Now runs each worker for a limited amount of time, totalling one hour.
AFL "run fuzzing" now passes ShellCheck.

DNM: Investigate AFL exit codes or disable for now.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Nov 9, 2023
Addresses chipsalliance#631 (comment).

Now runs each worker for a limited amount of time, totalling one hour.
AFL "run fuzzing" now passes ShellCheck.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Nov 10, 2023
Addresses chipsalliance#631 (comment).

Now runs each worker for a limited amount of time, totalling one hour.
AFL "run fuzzing" now passes ShellCheck.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
jhand2 pushed a commit to benjamindoron/caliptra-sw that referenced this pull request Dec 6, 2023
Addresses chipsalliance#631 (comment).

Now runs each worker for a limited amount of time, totalling one hour.
AFL "run fuzzing" now passes ShellCheck.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Dec 16, 2023
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Dec 16, 2023
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Dec 16, 2023
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Dec 16, 2023
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Dec 16, 2023
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Dec 18, 2023
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Dec 18, 2023
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Jun 27, 2024
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Jun 27, 2024
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Jun 27, 2024
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Jun 27, 2024
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Jul 4, 2024
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
benjamindoron added a commit to benjamindoron/caliptra-sw that referenced this pull request Aug 12, 2024
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
leongross pushed a commit to benjamindoron/caliptra-sw that referenced this pull request Feb 5, 2025
Addresses chipsalliance#631 (comment).

Attempts to use the "workers" argument to gain parallelisation and
better statefulness.
AFL "run fuzzing" now passes ShellCheck, but seems to run overtime.

Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build & Release Build and release process, CI automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants