Java JIT Testing with Template Extraction
Zhiqiang Zang, Fu-Yao Yu, Aditya Thimmaiah, August Shi, Milos Gligoric
摘要
We present LeJit, a template-based framework for testing Java just-in-time (JIT) compilers. Like recent template-based frameworks, LeJit executes a template-a program with holes to be filled-to generate concrete programs given as inputs to Java JIT compilers. LeJit automatically generates template programs from existing Java code by converting expressions to holes, as well as generating necessary glue code (i.e., code that generates instances of non-primitive types) to make generated templates executable. We have successfully used LeJit to test a range of popular Java JIT compilers, revealing five bugs in HotSpot, nine bugs in OpenJ9, and one bug in GraalVM. All of these bugs have been confirmed by Oracle and IBM developers, and 11 of these bugs were previously unknown, including two CVEs (Common Vulnerabilities and Exposures). Our comparison with several existing approaches shows that LeJit is complementary to them and is a powerful technique for ensuring Java JIT compiler correctness.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Validating JIT Compilers via Compilation Space Exploration 引用了 Finding typing compiler bugs
- Validating JIT Compilers via Compilation Space Exploration 引用了 History-Driven Test Program Synthesis for JVM Testing
- Validating JIT Compilers via Compilation Space Exploration 引用了 Random testing for C and C++ compilers with YARPGen
- Validating JIT Compilers via Compilation Space Exploration 引用了 JITfuzz: Coverage-guided Fuzzing for JVM Just-in-Time Compilers
- Finding Compiler Bugs through Cross-Language Code Generator and Differential Testing 引用了 Finding typing compiler bugs
- Finding Compiler Bugs through Cross-Language Code Generator and Differential Testing 引用了 History-Driven Test Program Synthesis for JVM Testing
- Finding Compiler Bugs through Cross-Language Code Generator and Differential Testing 引用了 Random testing for C and C++ compilers with YARPGen
- Finding typing compiler bugs 引用了 Random testing for C and C++ compilers with YARPGen
- Extraction and Mutation at a High Level: Template-Based Fuzzing for JavaScript Engines 引用了 Validating JIT Compilers via Compilation Space Exploration
- Extraction and Mutation at a High Level: Template-Based Fuzzing for JavaScript Engines 引用了 History-Driven Test Program Synthesis for JVM Testing
- Extraction and Mutation at a High Level: Template-Based Fuzzing for JavaScript Engines 引用了 JITfuzz: Coverage-guided Fuzzing for JVM Just-in-Time Compilers
- Selecting Initial Seeds for Better JVM Fuzzing 引用了 History-Driven Test Program Synthesis for JVM Testing
- Selecting Initial Seeds for Better JVM Fuzzing 引用了 JITfuzz: Coverage-guided Fuzzing for JVM Just-in-Time Compilers
- Selecting Initial Seeds for Better JVM Fuzzing 引用了 Evaluating Fuzz Testing
- JITfuzz: Coverage-guided Fuzzing for JVM Just-in-Time Compilers 引用了 History-Driven Test Program Synthesis for JVM Testing
引用它的顶会 Paper9
- Validating JIT Compilers via Compilation Space ExplorationCong Li, Yanyan Jiang, Chang Xu, Zhendong SuSOSP 2023 · 22 次引用
- Extraction and Mutation at a High Level: Template-Based Fuzzing for JavaScript EnginesWai Kin Wong, Dongwei Xiao, Anthony Cheuk Tung Lai, Yiteng Peng 等OOPSLA 2025 · 4 次引用
- Finding Compiler Bugs through Cross-Language Code Generator and Differential TestingQiong Feng, Xiaotian Ma, Ziyuan Feng, Marat Akhin 等OOPSLA 2025 · 2 次引用
- Selecting Initial Seeds for Better JVM FuzzingTianchang Gao, Junjie Chen, Dong Wang, Yile Guo 等ICSE 2025 · 2 次引用
- OBsmith: LLM-Powered JavaScript Obfuscator TestingShan Jiang, Chenguang Zhu, Sarfraz KhurshidOOPSLA 2026 · 2 次引用
它引用的 Paper12
- Evaluating Fuzz TestingGeorge Klees, Andrew Ruef, Benji Cooper, Shiyi Wei 等CCS 2018 · 753 次引用
- Random testing for C and C++ compilers with YARPGenVsevolod Livinskii, Dmitry Babokin, John RegehrOOPSLA 2020 · 140 次引用
- History-Driven Test Program Synthesis for JVM TestingYingquan Zhao, Zan Wang, Junjie Chen, Mengdi Liu 等ICSE 2022 · 51 次引用
- Finding typing compiler bugsStefanos Chaliasos, Thodoris Sotiropoulos, Diomidis Spinellis, Arthur Gervais 等PLDI 2022 · 36 次引用
- JITfuzz: Coverage-guided Fuzzing for JVM Just-in-Time CompilersMingyuan Wu, Minghai Lu, Heming Cui, Junjie Chen 等ICSE 2023 · 36 次引用
相关 Paper
- Compiler Testing using Template Java ProgramsZhiqiang Zang, Nathan Wiatrek, Milos Gligoric, August ShiASE 2022 · 21 次引用
- FuzzJIT: Oracle-Enhanced Fuzzing for JavaScript Engine JIT CompilerJunjie Wang, Zhiyi Zhang, Shuang Liu, Xiaoning Du 等USENIX Security 2023
- Understanding and Finding JIT Compiler Performance BugsZijian Yi, Cheng Ding, August Shi, Milos GligoricOOPSLA 2026
- Pattern-Based Peephole Optimizations with Java JIT TestsZhiqiang Zang, Aditya Thimmaiah, Milos GligoricISSTA 2023 · 2 次引用
- Vectorizing Program Ingredients for Better JVM TestingTianchang Gao, Junjie Chen, Yingquan Zhao, Yuqun Zhang 等ISSTA 2023 · 16 次引用
