paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Scaling Instruction-Selection Verification against Authoritative ISA Semantics

面向权威 ISA 语义扩展指令选择验证的规模
OOPSLA 9(OOPSLA2)2025匹配度 3/10 · 论文属于编译器指令选择的形化验证,具备工业落地和工程自动化价值,与用户对形式化验证/工程实现的泛兴趣有交集;但它不涉及 LLM/Agent 与静态分析或形式化验证的交叉,也不涉及浮点程序分析或贝叶斯程序分析,因此偏离研究画像的核心方向。引用 0 inbox
Michael McLoughlin, Ashley Sheng, Chris Fallin, Bryan Parno, Fraser Brown, Alexa VanHattum
crossref: 2026-09-10

AI 速览

一句话:提出 Arrival,为 Cranelift 生产级 Wasm 编译器验证指令选择,自动化规则链与有状态规则推理,显著减少人工规约。

WebAssembly 要求不受信代码在原生执行时仍受沙箱保护,因此 Wasm 到原生的编译必须正确,而指令选择的错误会破坏沙箱保证。此前验证工作难以扩展到真实工业编译器的复杂度。本文提出 Arrival,一个针对 Cranelift(生产级 Wasm 到原生编译器)的指令选择验证器,支持端到端高保障验证并降低开发者负担。Arrival 的三项技术是:自动推理指令选择规则链,减少开发者提供的中间规约;提出轻量高效的方法推理有状态指令选择规则;自动派生高保障的机器码规约。作者验证了 Wasm 核心可达的几乎所有 AArch64 指令选择规则,60% 的规约受益于自动化,相比先前方法手写规约减少 2.6 倍。Arrival 还发现了 Cranelift 指令选择中的新缺陷,并具备集成到生产工作流的可行性。

问题
Wasm 沙箱安全性依赖 Wasm 到原生代码的编译正确性,而指令选择错误会破坏沙箱保证;既有的验证方法难以扩展到真实工业级编译器的规模。
方法
提出 Arrival 指令选择验证器,自动推理规则链、以轻量方式处理有状态规则,并自动派生机器码规约,从而减少人工中间规约。
评估
对 Cranelift 中 Wasm 核心可达的几乎全部 AArch64 指令选择规则进行验证,统计自动化覆盖率与手写规约减少量(2.6×),并报告发现的 Cranelift 新缺陷及生产集成可行性。
原文摘要(Abstract)

Secure, performant execution of untrusted code—as promised by WebAssembly (Wasm)—requires correct compilation to native code that enforces a sandbox. Errors in instruction selection can undermine the sandbox’s guarantees, but prior verification work struggles to scale to the complexity of realistic industrial compilers. We present Arrival , an instruction-selection verifier for the Cranelift production Wasm-to-native compiler. Arrival enables end-to-end, high-assurance verification while reducing developer effort. Arrival ( 1 ) automatically reasons about chains of instruction-selection rules, thereby reducing the need for develop-er-supplied intermediate specifications, ( 2 ) introduces a lightweight, efficient method for reasoning about stateful instruction-selection rules, and ( 3 ) automatically derives high-assurance machine code specifications. Our work verifies nearly all AArch64 instruction-selection rules reachable from Wasm core. Furthermore, Arrival reduces the developer effort required: 60 % of all specifications benefit from our automation, thereby requiring 2.6 × fewer hand-written specifications than prior approaches. Arrival finds new bugs in Cranelift’s instruction selection, and it is viable for integration into production workflows.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2893,
  title = {Scaling Instruction-Selection Verification against Authoritative ISA Semantics},
  author = {Michael McLoughlin and Ashley Sheng and Chris Fallin and Bryan Parno and Fraser Brown and Alexa VanHattum},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {OOPSLA2},
  year = {2025},
  doi = {10.1145/3764383}
}