仕様に基づく変異でWebGPUの実装不具合を検出
Dynamic Conformance Testing of WebGPU Through Specification-Driven Mutation
この論文をやさしく読む
ひとことで言うと
WebGPU仕様を使って公式テストを変異させ、実装の不具合を探す方法。
何に役立つ?
ブラウザーのWebGPU実装を、通常の適合性テストで扱いにくい条件まで検査するのに役立つ。
この研究の面白いところ
WebIDLの構文規則と自然言語仕様の意味制約を組み合わせ、有効・無効なテストを生成する。
どこまで分かった?
調査時点のChromiumで再現可能な3件の不具合を発見した。ほかのブラウザーでの発見数は要旨に示されない。
v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。
アブストラクトの日本語訳
WebGPUは、ウェブアプリケーションから現代のGPU機能を利用するための低水準の描画・計算APIである。公式の適合性テスト集(CTS)は仕様に沿った正しい使い方に重点を置き、意味的な境界事例や敵対的な入力で実装に負荷をかける設計ではない。一方、汎用のファザーは複雑な描画処理系と複数プロセス構造のためWebGPUを扱いにくい。著者らは、WebGPU仕様から取り出した制約を使ってCTSテストを変異させる、仕様に導かれた動的適合性テストの枠組みLANTERNを導入する。WebIDL定義から明示的で構文的なAPI規則を抽出し、自然言語で書かれた仕様から、コマンドの順序やオブジェクトの寿命など意味上の制約を復元する。選んだ規則に従って抽象構文木上の位置を指定したテキスト変換を行い、妥当なテストと意図的に不正なテストの両方を生成する。生成したテストを、AddressSanitizerを組み込んだChromiumで大規模に実行して不具合を探索した。評価では、調査時点のChromiumにおいて、ヒープ破損を含む再現可能な不具合を3件発見した。構文上の規則を起点とし意味を考慮して適合性テストを変異させる方法が、WebGPUのテストでブラウザーの不具合を見つける手段となることを示す。
v1の要旨から自動生成。本文の精読・人による確認は未実施。
- 初稿
- 2026-09-22(UTC)
- 最新改訂
- 2026-09-22 · v1
- 査読・掲載
- 査読状況未確認
更新履歴
- v1 2026-09-22 この版を読む
取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。
原文の要旨
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.
arXiv ID: 2609.25520 / 要約の誤りについて