Gauntlet: Finding Bugs in Compilers for Programmable Packet Processing

被引:0
|
作者
Ruffy, Fabian [1 ]
Wang, Tao [1 ]
Sivaraman, Anirudh [1 ]
机构
[1] NYU, New York, NY 10003 USA
关键词
VALIDATION;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Programmable packet-processing devices such as programmable switches and network interface cards are becoming mainstream. These devices are configured in a domain-specific language such as P4, using a compiler to translate packet-processing programs into instructions for different targets. As networks with programmable devices become widespread, it is critical that these compilers be dependable. This paper considers the problem of finding bugs in compilers for packet processing in the context of P4(16). We introduce domain-specific techniques to induce both abnormal termination of the compiler (crash bugs) and miscompilation (semantic bugs). We apply these techniques to (1) the opensource P4 compiler (P4C) infrastructure, which serves as a common base for different P4 back ends; (2) the P4 back end for the P4 reference software switch; and (3) the P4 back end for the Barefoot Tofino switch. Across the 3 platforms, over 8 months of bug finding, our tool Gauntlet detected 96 new and distinct bugs (62 crash and 34 semantic), which we confirmed with the respective compiler developers. 54 have been fixed (31 crash and 23 semantic); the remaining have been assigned to a developer. Our bug-finding efforts also led to 6 P4 specification changes. We have open sourced Gauntlet at p4gauntlet.github. i and it now runs within P4C's continuous integration pipeline.
引用
收藏
页码:683 / 699
页数:17
相关论文
共 50 条
  • [32] Programmable wavelet packet transform processor
    Wu, XD
    Li, YM
    Chen, HY
    ELECTRONICS LETTERS, 1999, 35 (06) : 449 - 450
  • [33] Programmable Packet Scheduling at Line Rate
    Sivaraman, Anirudh
    Subramanian, Suvinay
    Alizadeh, Mohammad
    Chole, Sharad
    Chuang, Shang-Tse
    Agrawal, Anurag
    Balakrishnan, Hari
    Edsall, Tom
    Katti, Sachin
    McKeown, Nick
    PROCEEDINGS OF THE 2016 ACM CONFERENCE ON SPECIAL INTEREST GROUP ON DATA COMMUNICATION (SIGCOMM '16), 2016, : 44 - 57
  • [34] Programmable Packet Scheduling with a Single Queue
    Yu, Zhuolong
    Hu, Chuheng
    Wu, Jingfeng
    Sun, Xiao
    Braverman, Vladimir
    Chowdhury, Mosharaf
    Liu, Zhenhua
    Jin, Xin
    SIGCOMM '21: PROCEEDINGS OF THE 2021 ACM SIGCOMM 2021 CONFERENCE, 2021, : 179 - 193
  • [35] A scheduler ASIC for a programmable packet switch
    Zhang, LL
    Beacham, B
    Hashemi, MR
    Chow, P
    Leon-Garcia, A
    IEEE MICRO, 2000, 20 (01) : 42 - 48
  • [36] An Extension to Packet Filtering of Programmable Networks
    Schoeller, Marcus
    Gamer, Thomas
    Bless, Roland
    Zitterbart, Martina
    ACTIVE AND PROGRAMMABLE NETWORKS, 2009, 4388 : 121 - 131
  • [37] OPTIMIZING COMPILERS SATISFY HEAVY PROCESSING NEEDS
    GOSS, CF
    MERETZKY, MS
    COMPUTER DESIGN, 1985, 24 (09): : 103 - &
  • [38] ReGuard: Finding Reentrancy Bugs in Smart Contracts
    Liu, Chao
    Liu, Han
    Cao, Zhao
    Chen, Zhong
    Chen, Bangdao
    Roscoe, Bill
    PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING - COMPANION (ICSE-COMPANION, 2018, : 65 - 68
  • [39] Dual analysis for proving safety and finding bugs
    Popeea, Corneliu
    Chin, Wei-Ngan
    SCIENCE OF COMPUTER PROGRAMMING, 2013, 78 (04) : 390 - 411
  • [40] A Randomized Scheduler with Probabilistic Guarantees of Finding Bugs
    Burckhardt, Sebastian
    Kothari, Pravesh
    Musuvathi, Madanlal
    Nagarakatte, Santosh
    ACM SIGPLAN NOTICES, 2010, 45 (03) : 167 - 178