Lune

SOSP2023顶会

Validating JIT Compilers via Compilation Space Exploration

Cong Li, Yanyan Jiang, Chang Xu, Zhendong Su

摘要

We introduce the concept of compilation space as a new pivot for the comprehensive validation of just-intime (JIT) compilers in modern language virtual machines (LVMs). The compilation space of a program encompasses a wide range of equivalent JIT-compilation choices, which can be cross-validated to ensure the correctness of the program's JIT compilations. To thoroughly explore the compilation space in a lightweight and LVM-agnostic manner, we strategically mutate test programs with JIT-relevant but semantics-preserving code constructs, aiming to provoke diverse JIT compilation optimizations. We primarily implement this approach in Artemis, a tool for validating Java Virtual Machines (JVMs). Within three months, Artemis successfully discovered 85 bugs in three widely used production JVMs-HotSpot, OpenJ9, and the Android Runtimewhere 53 were already confirmed or fixed and many of which were classified as critical. It is noteworthy that all reported bugs concern JIT compilers, highlighting the effectiveness and practicality of our technique. Building on the promising results with JVMs, we experimentally applied our technique to a state-of-the-art JavaScript Engine (JSE) fuzzer called Fuzzilli, aiming to augment it to find mis-compilation bugs without significantly sacrificing its ability to detect crashes. Our experiments demonstrate that our enhanced version of Fuzzilli namely Apollo could achieve comparable code coverage with a considerably smaller number of generated programs with a similar number of crashes. Additionally, Apollo successfully uncovered four mis-compilations in JavaScriptCore and SpiderMonkey within seven days. Following Artemis' and Apollo's success, we are expecting that the generality and practicability of our approach will make it broadly applicable for understanding and validating the JIT compilers of other LVMs.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 17 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • PolyJuice: Detecting Mis-compilation Bugs in Tensor Compilers with Equality Saturation Based Rewriting 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • NAUTILUS: Fishing for Deep Bugs with Grammars 引用了 Skyfire: Data-Driven Seed Generation for Fuzzing
  • The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators 引用了 Random testing for C and C++ compilers with YARPGen
  • The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • Java JIT Testing with Template Extraction 引用了 Random testing for C and C++ compilers with YARPGen
  • CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines 引用了 Skyfire: Data-Driven Seed Generation for Fuzzing
  • Unveiling Compiler Faults via Attribute-Guided Compilation Space Exploration 引用了 The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators
  • Unveiling Compiler Faults via Attribute-Guided Compilation Space Exploration 引用了 Random testing for C and C++ compilers with YARPGen
  • Fuzzing JavaScript Engines with Aspect-preserving Mutation 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
  • Fuzzing JavaScript Engines with Aspect-preserving Mutation 引用了 Skyfire: Data-Driven Seed Generation for Fuzzing
  • Fuzzing JavaScript Engines with Aspect-preserving Mutation 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper17

  1. The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation OperatorsXianfei Ou, Cong Li, Yanyan Jiang, Chang XuASPLOS 2024 · 25 次引用
  2. Java JIT Testing with Template ExtractionZhiqiang Zang, Fu-Yao Yu, Aditya Thimmaiah, August Shi 等FSE 2024 · 8 次引用
  3. PolyJuice: Detecting Mis-compilation Bugs in Tensor Compilers with Equality Saturation Based RewritingChijin Zhou, Bingzhou Qian, Gwihwan Go, Quan Zhang 等OOPSLA 2024 · 7 次引用
  4. MeshTest: End-to-End Testing for Service Mesh Traffic ManagementNaiqian Zheng, Tianshuo Qiao, Xuanzhe Liu, Xin JinNSDI 2025 · 7 次引用
  5. Unveiling Compiler Faults via Attribute-Guided Compilation Space ExplorationJiangchang Wu, Yibiao Yang, Maolin Sun, Yuming ZhouUSENIX ATC 2025 · 6 次引用

它引用的 Paper35

  1. Skyfire: Data-Driven Seed Generation for FuzzingJunjie Wang, Bihuan Chen, Lei Wei, Yang LiuS&P 2017 · 382 次引用
  2. NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig 等NDSS 2019 · 291 次引用
  3. CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript EnginesHyungSeok Han, DongHyeon Oh, Sang Kil ChaNDSS 2019 · 178 次引用
  4. Random testing for C and C++ compilers with YARPGenVsevolod Livinskii, Dmitry Babokin, John RegehrOOPSLA 2020 · 140 次引用
  5. Fuzzing JavaScript Engines with Aspect-preserving MutationSoyeon Park, Wen Xu, Insu Yun, Daehee Jang 等S&P 2020 · 126 次引用

相关 Paper

  1. FuzzJIT: Oracle-Enhanced Fuzzing for JavaScript Engine JIT CompilerJunjie Wang, Zhiyi Zhang, Shuang Liu, Xiaoning Du 等USENIX Security 2023
  2. Detecting JVM JIT Compiler Bugs via Exploring Two-Dimensional Input SpacesHaoxiang Jia, Ming Wen, Zifan Xie, Xiaochen Guo 等ICSE 2023 · 21 次引用
  3. FUZZILLI: Fuzzing for JavaScript JIT Compiler VulnerabilitiesSamuel Groß, Simon Koch, Lukas Bernhard, Thorsten Holz 等NDSS 2023
  4. BCFuzz: Bytecode-Driven Fuzzing for JavaScript EnginesJiming Wang, Chenggang Wu, Jikai Ren, Yuhao Hu 等ASE 2025 · 1 次引用
  5. JIT-Picking: Differential Fuzzing of JavaScript EnginesLukas Bernhard, Tobias Scharnowski, Moritz Schloegel, Tim Blazytko 等CCS 2022 · 42 次引用
黄昏的海面,两侧是细线勾勒的悬崖