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

issue1941 - fuzz sock_addr/ops/xdp #4240

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vpidatala94
Copy link
Contributor

Description

With this pull-request we are providing an extra argument to core helper fuzz tests "-helper" that helps fuzz test helper functions specific helper functions.

In LLVM initialize, after processing our custom arg we are working towards remove it before the libfuzzer can process it.

Testing

fuzz testing.

Documentation

Reference --
https://llvm.org/docs/LibFuzzer.html
https://github.com/google/fuzzing/blob/master/tutorial/libFuzzerTutorial.md

@vpidatala94
Copy link
Contributor Author

UNIT test output :
PS C:\Users\vpidatala\Code\ebpf-Windows\ebpf-for-windows\x64\Release> .\core_helper_fuzzer.exe core_helper_corpus -max_len=139 -runs=1000 -use_value_profile=1 -artifact_prefix=Artifacts\ -helper sockaddr
WARNING: Failed to find function "__sanitizer_acquire_crash_state".
WARNING: Failed to find function "__sanitizer_print_stack_trace".
WARNING: Failed to find function "__sanitizer_set_death_callback".
INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 3385511717
INFO: 20 files found in core_helper_corpus
INFO: seed corpus: files: 20 min: 1b max: 37b total: 189b rss: 29Mb
#21 INITED exec/s: 0 rss: 29Mb
WARNING: no interesting inputs were found so far. Is the code instrumented for coverage?
This may also happen if the target rejected all inputs we tried so far
#1000 DONE corp: 1/1b lim: 11 exec/s: 0 rss: 29Mb
Done 1000 runs in 0 second(s)
PS C:\Users\vpidatala\Code\ebpf-Windows\ebpf-for-windows\x64\Release> cd .\Artifacts
PS C:\Users\vpidatala\Code\ebpf-Windows\ebpf-for-windows\x64\Release\Artifacts> ls


nothing generated in artifacts is OK, as they are no expected crashes

Alan-Jowett
Alan-Jowett previously approved these changes Feb 25, 2025
@saxena-anurag
Copy link
Contributor

@vpidatala94 there are some open comments in this PR. Can you have a look.

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

Successfully merging this pull request may close these issues.

4 participants