arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.06884cs.SE
收藏

现代编译器模糊测试综述

A Survey of Modern Compiler Fuzzing

Haoyang Ma

AI总结:

本综述系统梳理了编译器漏洞特征研究与模糊测试技术进展,覆盖传统及领域特定编译器,总结现有成果并提出开放挑战与研究方向。

摘要:

大多数在计算机上运行的软件都需要经过编译器处理。由于编译器是软件开发的基础设施,其正确性至关重要。多年来,研究人员投入大量精力分析、理解并刻画主流编译器的漏洞特征。这些研究表明,编译器的正确性需要更多研究关注,同时也为编译器模糊测试奠定了基础。为提升编译器的正确性,研究人员提出了大量编译器模糊测试技术。这些技术最初用于测试GCC/LLVM等传统编译器,后来被推广应用于测试各类新开发的领域特定编译器,如图形着色器编译器和深度学习(DL)编译器。本综述全面总结了理解和解决编译器缺陷的相关研究工作。具体而言,本综述主要涵盖两个方面:其一,研究人员对编译器漏洞的调研与专业分析,包括漏洞的表现形式和根本原因,相关编译器漏洞研究覆盖GCC/LLVM、JVM编译器以及DL编译器;其二,研究人员在模糊测试技术设计方面的工作,包括测试程序构建和测试预言设计。在讨论现有工作的基础上,本综述还列出了若干未解决的挑战,并指明了未来的研究方向。

英文摘要:

Most software that runs on computers undergoes processing by compilers. Since compilers constitute the fundamental infrastructure of software development, their correctness is paramount. Over the years, researchers have invested in analyzing, understanding, and characterizing the bug features over mainstream compilers. These studies have demonstrated that compilers correctness requires greater research attention, and they also pave the way for compiler fuzzing. To improve compilers correctness, researchers have proposed numerous compiler fuzzing techniques. These techniques were initially developed for testing traditional compilers such as GCC/LLVM and have since been generalized to test various newly developed, domain-specific compilers, such as graphics shader compilers and deep learning (DL) compilers. In this survey, we provide a comprehensive summary of the research efforts for understanding and addressing compilers defects. Specifically, this survey mainly covers two aspects. First, it covers researchers investigation and expertise on compilers bugs, such as their symptoms and root causes. The compiler bug studies cover GCC/LLVM, JVM compilers, and DL compilers. In addition, it covers researchers efforts in designing fuzzing techniques, including constructing test programs and designing test oracles. Besides discussing the existing work, this survey outlines several open challenges and highlights research opportunities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑