Skip to content

fuzz: match exact expect messages, not broad prefix - #191

Merged
zvonkok merged 2 commits into
NVIDIA:mainfrom
zvonkok:fix/fuzzing-failures
Jul 14, 2026
Merged

fuzz: match exact expect messages, not broad prefix#191
zvonkok merged 2 commits into
NVIDIA:mainfrom
zvonkok:fix/fuzzing-failures

Conversation

@zvonkok

@zvonkok zvonkok commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Substring "nvrc.smi." could mask unrelated panics that happen to mention that prefix; match the three exact .expect() messages instead.

Assisted-By: Claude Sonnet 4.6 noreply@anthropic.com

Substring "nvrc.smi." could mask unrelated panics that happen to
mention that prefix; match the three exact .expect() messages instead.

Signed-off-by: Zvonkou Kaiser <zkaiser@nvidia.com>
Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 14, 2026 12:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens the fuzz target’s panic filtering for process_kernel_params() by replacing a broad substring match ("nvrc.smi.") with an allowlist of specific expected panic messages, so unrelated panics aren’t accidentally ignored during fuzzing.

Changes:

  • Replace broad "nvrc.smi." substring filtering with an allowlist of three expected nvrc.smi.* validation messages.
  • Centralize the expected messages into a const EXPECTED slice for clearer intent.

Comment thread fuzz/fuzz_targets/kernel_params.rs
.expect("msg") panics with "msg: <parse error>" appended, so exact
equality never matches; starts_with handles the suffix correctly.

Signed-off-by: Zvonkou Kaiser <zkaiser@nvidia.com>
Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 14, 2026 12:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@zvonkok zvonkok added the ok-to-test Ok to test label Jul 14, 2026
@zvonkok
zvonkok merged commit b91c0ef into NVIDIA:main Jul 14, 2026
33 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Ok to test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants