Skip to content
Book Open access

EBFuzz: Fuzzing Hidden Structural Assumptions in Compilers with Extended Inline Assembly

Nov 2026 · Proceedings of the 2026 ACM SIGOPS Annual Technical Conference · 0 citations · 36 references

Abstract

Compilers are critical infrastructure whose correctness affects every program they translate. Automated compiler testing has uncovered thousands of bugs in production compilers such as GCC and LLVM. However, existing compiler fuzzers primarily explore programs with conventional control-flow and data-flow structures because they generate inputs through ordinary language constructs. Consequently, an important testing dimension remains largely unexplored: the handling of legal but structurally unusual programs. This paper presents EBFuzz, a compiler fuzzer designed to systematically explore this neglected testing dimension. Our key insight is that GNU C extended inline assembly provides a rare mechanism for influencing the control-flow and data-flow information used by compiler analyses. Because the compiler cannot fully analyze the semantics of inline assembly, it must conservatively model the effects described by programmer-provided declarations. EBFuzz exploits this capability to systematically construct legal yet structurally unusual programs through control-flow edge injection and data-flow perturbation. The resulting programs remain valid and compilable, yet are difficult or impossible for existing compiler fuzzers to generate through conventional source-level mutations. We evaluate EBFuzz on GCC and LLVM against representative compiler testing approaches spanning random generation, coverage-guided mutation, and real-world code injection. EBFuzz discovers 80% more unique bugs than the strongest baseline and is the only approach that continues finding new bugs beyond the first fifteen hours of testing. It achieves 5.9 and 5.6 percentage points higher branch coverage on GCC and LLVM, respectively, with the largest gains occurring in compiler components responsible for processing control-flow and data-flow information. Overall, EBFuzz discovered 10 previously unknown compiler bugs, 9 of which have been confirmed or fixed by developers.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.