zephyr: initial integration#15486
Draft
rootvector2 wants to merge 1 commit into
Draft
Conversation
|
rootvector2 is integrating a new project: |
DavidKorczynski
requested changes
May 11, 2026
Collaborator
DavidKorczynski
left a comment
There was a problem hiding this comment.
project itself looks good, but we need maintainer coordination and approval.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initial OSS-Fuzz integration for the Zephyr RTOS
(https://github.com/zephyrproject-rtos/zephyr).
Build path: native_sim/native/64 with
CONFIG_ARCH_POSIX_LIBFUZZER=y,which is Zephyr's upstream-supported libFuzzer entry point. No patches
to Zephyr are required.
west init+west update,and builds Python 3.12 from source (Zephyr's CMake requires >= 3.12,
base-builder ships 3.11).
CONFIG_ASAN,CONFIG_UBSAN,CONFIG_MSANKconfigs and driveswest build -b native_sim/native/64 samples/subsys/debug/fuzz.zephyr_fuzz_sample, the in-tree fuzzharness). More targets can be added by extending build.sh.
Tested locally with Docker:
build_fuzzerssucceeds for SANITIZER=address and SANITIZER=undefined.check_build(test_all.py) passes for both sanitizers.run_fuzzerexercises the binary at ~22k exec/s and grows coverage asexpected (cov 211 / ft 222 in 16s).
The Zephyr security team has been notified upstream and the primary
contact in project.yaml will be confirmed there before merge.