Industrial Deployment of Compiler Fuzzing Techniques for Two GPU Shading Languages
Authors:
- 1 April 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 374-385
Abstract
We report on our experience at Google deploying a variety of coverage-guided and black-box fuzzers to find bugs in compilers for two graphics shading languages: the WebGPU Shading Language (WGSL) and Standard Portable Intermediate Representation (SPIR-V). We discuss the deployment of coverage-guided fuzzing on ClusterFuzz and OSS-Fuzz using libFuzzer’s built-in mutators, and a number of custom mutators that exploit knowledge of the syntax and semantics of WGSL and SPIR-V. We also discuss the deployment of several black box fuzzers on ClusterFuzz, including two that are based on new randomised program generators for WGSL, which we have also used in a targeted fashion for end-to-end testing of WebGPU implementations. We discuss a series of insights arising from our experience that we hope will be valuable to practitioners and researchers interested in applying fuzzing to industrial problems.Keywords
This publication has 9 references indexed in Scilit:
- Making no-fuss compiler fuzzing effective2022
- Test-case reduction and deduplication almost for free with transformation-based compiler testing2021
- CUDAsmith: A Fuzzer for CUDA Compilers2020
- Automated testing of graphics shader compilersProceedings of the ACM on Programming Languages, 2017
- A Survey on Metamorphic TestingIEEE Transactions on Software Engineering, 2016
- Many-core compiler fuzzing2015
- The Oracle Problem in Software Testing: A SurveyIEEE Transactions on Software Engineering, 2015
- Compiler validation via equivalence modulo inputs2014
- Finding and understanding bugs in C compilers2011