Dynamic Conformance Testing of WebGPU Through Specification-Driven Mutation
Abstract
WebGPU is a low-level graphics and compute API that exposes modern GPU functionality to web applications. While the official WebGPU Conformance Test Suite (CTS) focuses on well-formed usage under the WebGPU specification, it is not designed to stress implementations with semantic edge cases or adversarial inputs. General-purpose fuzzers, in contrast, struggle with WebGPU because of its complex graphics stack and multi-process architecture. We introduce LANTERN, a specification-guided dynamic conformance testing framework that mutates CTS tests using constraints extracted from the WebGPU specification. LANTERN extracts explicit syntactic API rules from WebIDL definitions and recovers semantic constraints, such as command ordering and object lifetimes, from natural-language specification text. Selected rules guide AST-located textual transformations that generate both valid and intentionally invalid CTS variants. We execute the resulting tests at scale on AddressSanitizer-instrumented Chromium to discover bugs. Our evaluation discovers three reproducible bugs, including a heap corruption, in Chromium versions current at the time of study. These results demonstrate that syntactically seeded, semantics-aware mutation of conformance tests provides a way to uncover browser bugs during WebGPU testing.
Create a lesson
Metadata
- Categories
- cs.SE, cs.CR
Related papers
Specification-Driven Benchmarking for Automated Program Repair From Static Corpora to Executable Specifications
Shared title terminologycs.SEYasser Ebrahim
VSpector: Specification-Driven Bug Detection for RISC-V CPUs
Shared title terminologycs.SETianyu Jia, Zhaoyang Yu, Yuanliang Chen et al.
Beyond Static GUI Agent: Evolving LLM-based GUI Testing via Dynamic Memory
Shared title terminologycs.SEMengzhuo Chen, Zhe Liu, Chunyang Chen et al.
From Suspicious Signals to Crashes: Guiding Bug-Driven GUI Testing via Code-Inspired Tracing
Shared title terminologycs.SEMengzhuo Chen, Zhe Liu, Chunyang Chen et al.
OASIS: Static and Dynamic OpenAPI Specification Inference
Shared title terminologycs.SEHamza Bin Mazhar, Yuqing Wang, Jesse Nyyssölä et al.
Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models
Shared title terminologycs.SENils Kiele, Zainab Saad, Zirui Wang et al.