Compiler Fuzzing: How Much Does It Matter?

被引:24
|
作者
Marcozzi, Michael [1 ]
Tang, Qiyi [1 ]
Donaldson, Alastair F. [1 ]
Cadar, Cristian [1 ]
机构
[1] Imperial Coll London, London, England
来源
基金
英国工程与自然科学研究理事会;
关键词
software testing; compilers; fuzzing; bug impact; Clang; LLVM;
D O I
10.1145/3360581
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Despite much recent interest in randomised testing (fuzzing) of compilers, the practical impact of fuzzer-found compiler bugs on real-world applications has barely been assessed. We present the first quantitative and qualitative study of the tangible impact of miscompilation bugs in a mature compiler. We follow a rigorous methodology where the bug impact over the compiled application is evaluated based on (1) whether the bug appears to trigger during compilation; (2) the extent to which generated assembly code changes syntactically due to triggering of the bug; and (3) whether such changes cause regression test suite failures, or whether we can manually find application inputs that trigger execution divergence due to such changes. The study is conducted with respect to the compilation of more than 10 million lines of C/C++ code from 309 Debian packages, using 12% of the historical and now fixed miscompilation bugs found by four state-of-the-art fuzzers in the Clang/LLVM compiler, as well as 18 bugs found by human users compiling real code or as a by-product of formal verification efforts. The results show that almost half of the fuzzer-found bugs propagate to the generated binaries for at least one package, in which case only a very small part of the binary is typically affected, yet causing two failures when running the test suites of all the impacted packages. User-reported and formal verification bugs do not exhibit a higher impact, with a lower rate of triggered bugs and one test failure. The manual analysis of a selection of the syntactic changes caused by some of our bugs (fuzzer-found and non fuzzer-found) in package assembly code, shows that either these changes have no semantic impact or that they would require very specific runtime circumstances to trigger execution divergence.
引用
收藏
页数:29
相关论文
共 50 条
  • [41] How Much Does Wealth Matter in the Acquisition of Financial Literacy?
    Monticone, Chiara
    [J]. JOURNAL OF CONSUMER AFFAIRS, 2010, 44 (02) : 403 - 422
  • [42] GROWING UP IN POOR NEIGHBORHOODS - HOW MUCH DOES IT MATTER
    MAYER, SE
    JENCKS, C
    [J]. SCIENCE, 1989, 243 (4897) : 1441 - 1445
  • [43] How much does home country matter to corporate profitability?
    McGahan, Anita M.
    Victer, Rogerio
    [J]. JOURNAL OF INTERNATIONAL BUSINESS STUDIES, 2010, 41 (01) : 142 - 165
  • [44] Monofocal hepatocellular carcinoma: How much does size matter?
    Pelizzaro, Filippo
    Penzo, Barbara
    Peserico, Giulia
    Imondi, Angela
    Sartori, Anna
    Vitale, Alessandro
    Cillo, Umberto
    Giannini, Edoardo G.
    Forgione, Antonella
    Ludovico Rapaccini, Gian
    Di Marco, Maria
    Caturelli, Eugenio
    Zoli, Marco
    Sacco, Rodolfo
    Cabibbo, Giuseppe
    Marra, Fabio
    Mega, Andrea
    Morisco, Filomena
    Gasbarrini, Antonio
    Svegliati-Baroni, Gianluca
    Giuseppe Foschi, Francesco
    Olivani, Andrea
    Masotto, Alberto
    Nardone, Gerardo
    Raimondo, Giovanni
    Azzaroli, Francesco
    Vidili, Gianpaolo
    Oliveri, Filippo
    Trevisani, Franco
    Farinati, Fabio
    [J]. LIVER INTERNATIONAL, 2021, 41 (02) : 396 - 407
  • [45] Does it matter how much physician trainees work anymore?
    Fletcher, Kathlyn E.
    Ranji, Sumant R.
    [J]. BMJ QUALITY & SAFETY, 2016, 25 (12) : 914 - 916
  • [46] Asset allocation: How much does model choice matter?
    Branger, Nicole
    Hansis, Alexandra
    [J]. JOURNAL OF BANKING & FINANCE, 2012, 36 (07) : 1865 - 1882
  • [47] The Case of Hannah Capes: How Much Does Consciousness Matter?
    Lois Shepherd
    C. William Pike
    Jesse B. Persily
    Mary Faith Marshall
    [J]. Neuroethics, 2022, 15
  • [48] How much does reducing inequality matter for global poverty?
    Lakner, Christoph
    Mahler, Daniel Gerszon
    Negre, Mario
    Prydz, Espen Beer
    [J]. JOURNAL OF ECONOMIC INEQUALITY, 2022, 20 (03): : 559 - 585
  • [49] SDN Hypervisors: How Much Does Topology Abstraction Matter?
    Deric, Nemanja
    Varasteh, Amir
    Basta, Arsany
    Blenk, Andreas
    Kellerer, Wolfgang
    [J]. 2018 14TH INTERNATIONAL CONFERENCE ON NETWORK AND SERVICE MANAGEMENT (CNSM), 2018, : 328 - 332
  • [50] The Cost of Clipping-How Much Does Price Matter?
    Pohl, Heiko
    [J]. AMERICAN JOURNAL OF GASTROENTEROLOGY, 2021, 116 (02): : 276 - 277