Multi-Axis View-Op Fuzzing Campaign: 8,187 Permutations
Fuzzing Report
2024-10-18
Authors: Swasthik Shetty
Abstract: Strided tensor operations in native systems languages present high risk for buffer overreads, out-of-bounds pointer offsets, and memory corruption. We constructed a randomized fuzzing harness generating 8,187 multi-axis view permutations.
Key Finding: 8,187 randomized slicing, permuting, and transposing operations executed with zero segfaults, zero panics, and zero memory corruption under AddressSanitizer.
Fuzzing Strategy
The fuzzer generates arbitrary tensors of rank $1 \le r \le 6$ with randomly generated shapes, positive and negative strides, and chain-applied operations:
- Transpositions: Random axis swaps $(i, j)$
- Negative Strides: Reverse views and negative index jumps
- Multi-Axis Slicing: Nested open and closed range windows
- Broadcast Extensions: Dimension expansions along unit dimensions
Validation Invariants
At the end of each operation sequence, every individual element address was validated against an analytical reference coordinate formula. Miri was executed for 500 iterations to guarantee no undefined behavior in unsafe pointer arithmetic.