Skip to content

[xnnpack] Add convolution dimension fuzzer for adversarial operator parameters - #16095

Open
smoke-wolf wants to merge 1 commit into
google:masterfrom
smoke-wolf:add-xnnpack-conv-dims-fuzzer
Open

[xnnpack] Add convolution dimension fuzzer for adversarial operator parameters#16095
smoke-wolf wants to merge 1 commit into
google:masterfrom
smoke-wolf:add-xnnpack-conv-dims-fuzzer

Conversation

@smoke-wolf

Copy link
Copy Markdown

Add fuzz_conv_dims target for the XNNPACK project that exercises
xnn_create_convolution2d_nhwc_qs8 with fuzzer-generated kernel
dimensions, channel counts, and stride/padding/dilation values.

The existing fuzz_model target uses hardcoded small dimensions
(3×3 kernel, 3 input channels, 32 output channels). This new target
generates dimensions across the full valid range (kernel up to 65536,
channels up to 65536), covering integer overflow paths in the operator
create and reshape functions that fixed-dimension fuzzing cannot reach.

Test plan

  • Builds alongside existing fuzz_model target
  • Uses the same XNNPACK library and link flags
  • Caps weight allocation at 1MB to avoid OOM in fuzzing

…arameters

Add fuzz_conv_dims target that exercises xnn_create_convolution2d_nhwc_qs8
with fuzzer-generated kernel dimensions, channel counts, and stride
parameters. This complements the existing fuzz_model target which uses
hardcoded small dimensions (3x3 kernel, 3 input channels).

The new target covers:
- Large kernel dimensions (up to 65536x65536)
- Variable group/channel counts
- Adversarial padding/stride/dilation combinations

These parameter ranges exercise integer overflow paths in the operator
reshape functions that the existing fixed-dimension fuzzer cannot reach.
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

smoke-wolf is a new contributor to projects/xnnpack. The PR must be approved by known contributors before it can be merged. The past contributors are: arthurscchan, hunsche

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.

1 participant