Skip to content

v12.1 — Fuzzing, sanitizer, and SIMD-verification hardening

Choose a tag to compare

@danmcleran danmcleran released this 11 Jun 00:19
· 168 commits to master since this release
123bb35

Fixes

  • qfft1d: signed-overflow UB in magnitudeSquared at the INT16_MIN both-rails bin ((-32768)² + (-32768)² == 2³¹, one past INT32_MAX). Found by the nightly fuzzer 53k execs after its first corpus restore; fixed with int64 summation + saturation, and the minimized reproducer is archived in the committed corpus so the PR replay gate guards it permanently (#127)
  • qaffine: multiplyByQuantizedMultiplier left-shift path hardened against signed overflow (#124)

Hardening

  • Fuzzing breadth: libFuzzer coverage widened from 1 to 10 int8 kernel harnesses — softmax, FFT, requantize (#124); LSTM (incl. the Phase 12 int16 wide-cell corner), GRU, CfC, softmax-attention, and multi-head linear attention with recurrent state carried across fuzz-driven steps (#125); scalar-vs-AVX2 differential (#129)
  • Fuzz CI architecture: deterministic corpus replay is the blocking PR gate; exploratory mutation moved to a nightly matrix that accumulates its corpus across nights via actions/cache, saving even on crash nights so the inputs that reached a crash are never lost (#124, #126)
  • TSan gate: the OpenMP-parallelized conv output-filter loop — the library's only concurrent code — is now race-checked on every PR, with Archer (OMPT) integration so TSan sees the runtime's barrier happens-before edges (#128)
  • SIMD verification: the hand-written AVX2 intrinsics now execute under ASan+UBSan in CI, and a differential fuzz harness asserts bit-exactness against the scalar reference across ragged tails, misaligned buffers, and full-rail operands (#129)
  • Both new gates (TSan (OpenMP conv path), ASan + UBSan (AVX2 backend)) added to branch-protection required checks; nightly-fuzz status badge added to README and Pages (#130)

Examples

  • float-vs-Q16.16 LSTM sinusoid comparison (#122)
  • Elman temporal-XOR memory demo (#123)

Full Changelog: v12.0...v12.1