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

Add libfuzzer based fuzzer. #1117

Merged
merged 19 commits into from
May 27, 2022
Merged

Add libfuzzer based fuzzer. #1117

merged 19 commits into from
May 27, 2022

Conversation

Alan-Jowett
Copy link
Member

See: https://www.llvm.org/docs/LibFuzzer.html

Signed-off-by: Alan Jowett alan.jowett@microsoft.com

Description

Add a new fuzzer based on the LLVM libfuzzer library. See: https://www.llvm.org/docs/LibFuzzer.html

Testing

Future integration with OneFuzz.

Documentation

No.

@Alan-Jowett Alan-Jowett marked this pull request as draft May 17, 2022 22:37
@codecov
Copy link

codecov bot commented May 18, 2022

Codecov Report

Merging #1117 (1720a39) into main (82db455) will decrease coverage by 0.00%.
The diff coverage is 86.95%.

@@            Coverage Diff             @@
##             main    #1117      +/-   ##
==========================================
- Coverage   88.14%   88.14%   -0.01%     
==========================================
  Files          99       99              
  Lines       17053    17075      +22     
==========================================
+ Hits        15032    15050      +18     
- Misses       2021     2025       +4     
Impacted Files Coverage Δ
tools/bpf2c/bpf_code_generator.cpp 96.13% <62.50%> (-0.41%) ⬇️
tests/end_to_end/end_to_end.cpp 98.58% <100.00%> (+0.01%) ⬆️
tests/end_to_end/test_helper.cpp 87.01% <0.00%> (-0.36%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82db455...1720a39. Read the comment docs.

@dthaler
Copy link
Collaborator

dthaler commented May 18, 2022

This is more of issue #620

@Alan-Jowett Alan-Jowett force-pushed the libfuzzer branch 7 times, most recently from 27d26bd to b12a45b Compare May 21, 2022 18:57
@Alan-Jowett Alan-Jowett marked this pull request as ready for review May 24, 2022 15:18
tests/libfuzzer/README.md Outdated Show resolved Hide resolved
tests/libfuzzer/README.md Outdated Show resolved Hide resolved
tests/libfuzzer/verifier/libfuzz_harness.cpp Outdated Show resolved Hide resolved
tests/sample/map.c Outdated Show resolved Hide resolved
.github/workflows/reusable-build.yml Show resolved Hide resolved
libs/execution_context/ebpf_core.c Outdated Show resolved Hide resolved
libs/execution_context/ebpf_core.c Outdated Show resolved Hide resolved
libs/platform/ebpf_async.h Outdated Show resolved Hide resolved
@Alan-Jowett Alan-Jowett marked this pull request as draft May 24, 2022 23:26
@Alan-Jowett
Copy link
Member Author

Switching to draft until: #1132 is merged as this is based on top of an older version of that change.

@dthaler dthaler mentioned this pull request May 25, 2022
3 tasks
Alan Jowett and others added 6 commits May 26, 2022 14:43
See: https://www.llvm.org/docs/LibFuzzer.html

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Alan Jowett and others added 9 commits May 26, 2022 14:43
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
dthaler
dthaler previously approved these changes May 26, 2022
@dthaler dthaler marked this pull request as ready for review May 26, 2022 22:06
dthaler added 2 commits May 26, 2022 16:39
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
@dthaler dthaler merged commit c62b083 into microsoft:main May 27, 2022
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.

3 participants