Skip to content

zephyr: initial integration#15486

Draft
rootvector2 wants to merge 1 commit into
google:masterfrom
rootvector2:zephyr-initial-integration
Draft

zephyr: initial integration#15486
rootvector2 wants to merge 1 commit into
google:masterfrom
rootvector2:zephyr-initial-integration

Conversation

@rootvector2
Copy link
Copy Markdown
Contributor

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.

  • Dockerfile: pulls a Zephyr workspace via west init + west update,
    and builds Python 3.12 from source (Zephyr's CMake requires >= 3.12,
    base-builder ships 3.11).
  • build.sh: maps OSS-Fuzz's $SANITIZER onto Zephyr's CONFIG_ASAN,
    CONFIG_UBSAN, CONFIG_MSAN Kconfigs and drives
    west build -b native_sim/native/64 samples/subsys/debug/fuzz.
  • One initial fuzz target (zephyr_fuzz_sample, the in-tree fuzz
    harness). More targets can be added by extending build.sh.

Tested locally with Docker:

  • build_fuzzers succeeds for SANITIZER=address and SANITIZER=undefined.
  • check_build (test_all.py) passes for both sanitizers.
  • run_fuzzer exercises the binary at ~22k exec/s and grows coverage as
    expected (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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

rootvector2 is integrating a new project:
- Main repo: https://github.com/zephyrproject-rtos/zephyr.git
- Criticality score: 0.75463

Copy link
Copy Markdown
Collaborator

@DavidKorczynski DavidKorczynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

project itself looks good, but we need maintainer coordination and approval.

@DavidKorczynski DavidKorczynski marked this pull request as draft May 11, 2026 13:32
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.

2 participants