Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

docs: update examples, harnessing and setup docs to match the repo - #469

Open
Wenzel wants to merge 3 commits into
intel:mainfrom
Wenzel:docs/fix-stale-api-and-setup
Open

Wenzel wants to merge 3 commits into
intel:mainfrom
Wenzel:docs/fix-stale-api-and-setup

Conversation

@Wenzel

@Wenzel Wenzel commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Documentation and example fixes, two commits.

examples and harnessing docs (#437)
├── examples/manual-example/fuzz.simics      generate_random_corpus attribute, start_with_buffer_ptr_size_value(.., True)
├── docs/src/harnessing/closed-box.md        the three buffer start APIs under their current names, pointer to start_without_buffer
├── docs/src/harnessing/compiled-in.md       HARNESS_STOP is magic 4, HARNESS_STOP_INDEX, size_t *size_ptr
├── docs/src/tutorials/kernel-module/        HARNESS_START_INDEX(1, ..) / HARNESS_STOP_INDEX(1), magic_start_index / magic_stop_indices
├── docs/src/config/common-options.md        two snippets that could not run
├── harness/README.md                        lists the macros the headers define
├── harness/*.h                              HARNESS_START examples initialise the size (comments only)
└── src/interfaces/fuzz.rs                   doc comments name start_with_buffer_ptr_size_value

setup docs, README, scripts (#439)
├── docs/src/setup/linux.md                  no nightly (toolchain pinned in rust-toolchain.toml), no internal goto link
├── docs/src/fuzzing/compatibility.md        tests/rsrc/x86_64-uefi, ./build.sh, expected output
├── README.md                                missing FAQ link, typos
├── Cargo.toml                               author name and email spelling (matches the git history)
├── scripts/cov.sh                           drops the nonexistent 6.0.169 feature
├── docs/src/developer/release.md            scripts/check.sh
└── tests/rsrc/README.md                     current layout

Left out of #439: the dependency list in setup/linux.md (the issue says libXpm and gtk2 are missing, which is not confirmed), so #439 stays open for that item.

Fixes #437
Refs #439

Evidence

  • Before: examples/manual-example/fuzz.simics sets tsffs.set_generate_random_corpus and calls tsffs.iface.fuzz.start_with_maximum_size, neither of which exists.
    After: names checked against src/lib.rs (attributes) and src/interfaces/fuzz.rs (interface methods); the kernel-module tutorial now matches tests/rsrc/riscv-64/test-mod-userspace.c and tests/riscv_64_kernel_from_userspace_magic_latest.rs.
  • harness/tsffs.h is byte-identical to what harness/build.sh generates from the per-architecture headers.
  • cargo fmt --check, cargo clippy -r clean, lib unit tests pass (the only Rust change is doc comments).

Not run: the manual example and the tutorials themselves, and mdbook build.

Merge Danger

Door: two-way

Blast Radius: docs

No behaviour change. Header changes are inside doc comments.

🤖 Generated with Claude Code

Wenzel and others added 3 commits November 17, 2026 23:57
…e repo

- setup/linux.md: the toolchain is pinned in rust-toolchain.toml, so do not install or call nightly. Drop the internal-only goto link.
- fuzzing/compatibility.md: the test target lives in tests/rsrc/x86_64-uefi and is built with ./build.sh. The expected console output is the test buffer, not "Working...".
- README.md: drop the link to the missing docs/FAQ.md, fix typos.
- Cargo.toml: fix the spelling of an author name and email (matches the git history).
- scripts/cov.sh: drop the nonexistent 6.0.169 feature.
- developer/release.md: the check script is scripts/check.sh.
- tests/rsrc/README.md: describe the current layout (targets for tests/*.rs).

Not changed: the dependency list in setup/linux.md. The issue mentions libXpm and gtk2 as missing, which is not confirmed.

Refs intel#439

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- examples/manual-example/fuzz.simics: generate_random_corpus is an attribute, and the manual start with a maximum size is start_with_buffer_ptr_size_value (with the virt argument).
- harnessing/closed-box.md: document the three buffer start APIs under their current names and point at start_without_buffer.
- tutorials/kernel-module: the user-space harness uses HARNESS_START_INDEX and HARNESS_STOP_INDEX with index 1, selected with magic_start_index and magic_stop_indices.
- harnessing/compiled-in.md: HARNESS_STOP is magic number 4, the indexed stop macro is HARNESS_STOP_INDEX, and the size pointer temporary is a size_t pointer.
- harness/README.md: list the macros the headers define.
- harness headers: the HARNESS_START examples initialise the size to the buffer size (comments only, tsffs.h updated to match).
- config/common-options.md: fix two snippets that could not run.
- interfaces/fuzz.rs: doc comments name start_with_buffer_ptr_size_value.

Fixes intel#437

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
markdownlint (MD013) limits lines to 88 characters.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

Examples and harnessing docs use APIs that no longer exist

1 participant