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 条
  • [31] Pollution and coronary risk: how much does it matter?
    Muscente, Francesca
    de Caterina, Raffaele
    [J]. EUROPEAN HEART JOURNAL SUPPLEMENTS, 2022, 24 : I76 - I80
  • [32] Motivating Agents: How Much Does the Mission Matter?
    Carpenter, Jeffrey
    Gong, Erick
    [J]. JOURNAL OF LABOR ECONOMICS, 2016, 34 (01) : 211 - 236
  • [33] How much does money matter in a direct democracy?
    de Figueiredo, JM
    [J]. SOUTHERN CALIFORNIA LAW REVIEW, 2005, 78 (04) : 1065 - 1073
  • [34] How much does urban location matter for growth?
    Miguel Navarro-Azorin, Jose
    Artal-Tur, Andres
    [J]. EUROPEAN PLANNING STUDIES, 2017, 25 (02) : 298 - 313
  • [35] Dynamics of the cytoskeleton: How much does water matter?
    Lenormand, Guillaume
    Millet, Emil
    Park, Chan Young
    Hardin, C. Corey
    Butler, James P.
    Moldovan, Nicanor I.
    Fredberg, Jeffrey J.
    [J]. PHYSICAL REVIEW E, 2011, 83 (06):
  • [36] How Much Does the Asthma Outcome Definition Matter?
    Visness, Cynthia M.
    Calatroni, Agustin
    Jaffee, Katy F.
    O'Connor, George T.
    Bacharier, Leonard B.
    Kattan, Meyer
    Wood, Robert A.
    Gergen, Peter J.
    Gern, James E.
    [J]. JOURNAL OF ALLERGY AND CLINICAL IMMUNOLOGY, 2017, 139 (02) : AB191 - AB191
  • [37] How Much Does Unused Code Matter for Maintenance?
    Eder, Sebastian
    Junker, Maximilian
    Juergens, Elmar
    Hauptmann, Benedikt
    Vaas, Rudolf
    Prommer, Karl-Heinz
    [J]. 2012 34TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2012, : 1102 - 1111
  • [38] How Free Does a Test Need To Be? Does It Really Matter That Much?
    Avitabile, Pete
    [J]. EXPERIMENTAL TECHNIQUES, 2012, 36 (05) : 1 - 2
  • [39] Housework: Who Did, Does or Will Do It, and How Much Does It Matter?
    Bianchi, Suzanne M.
    Sayer, Liana C.
    Milkie, Melissa A.
    Robinson, John P.
    [J]. SOCIAL FORCES, 2012, 91 (01) : 55 - 63
  • [40] Amazon vegetation: How much don't we know and how much does it matter?
    Milliken W.
    Zappi D.
    Sasaki D.
    Hopkins M.
    Pennington R.T.
    [J]. Kew Bulletin, 2010, 65 (4) : 691 - 709