Dynamic Conformance Testing of WebGPU Through Specification-Driven Mutation

📅 2026-09-21
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
针对WebGPU测试不足问题,提出LANTERN框架,通过从WebGPU规范提取约束指导变异CTS测试,发现浏览器中的错误。
📝 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.
Problem

Research questions and friction points this paper is trying to address.

WebGPU
Conformance Testing
Semantic Edge Cases
Adversarial Inputs
Fuzzers
Innovation

Methods, ideas, or system contributions that make the work stand out.

specification-guided
dynamic conformance testing
WebGPU
mutation
semantic constraints
🔎 Similar Papers
No similar papers found.