Lune

PLDI2020顶会

Understanding memory and thread safety practices and issues in real-world Rust programs

Boqin Qin, Yilun Chen, Zeming Yu, Linhai Song, Yiying Zhang

摘要

Rust is a young programming language designed for systems software development. It aims to provide safety guarantees like high-level languages and performance efficiency like low-level languages. The core design of Rust is a set of strict safety rules enforced by compile-time checking. To support more low-level controls, Rust allows programmers to bypass these compiler checks to write unsafe code.

It is important to understand what safety issues exist in real Rust programs and how Rust safety mechanisms impact programming practices. We performed the first empirical study of Rust by close, manual inspection of 850 unsafe code usages and 170 bugs in five open-source Rust projects, five widely-used Rust libraries, two online security databases, and the Rust standard library. Our study answers three important questions: how and why do programmers write unsafe code, what memory-safety issues real Rust programs have, and what concurrency bugs Rust programmers make. Our study reveals interesting real-world Rust program behaviors and new issues Rust programmers make. Based on our study results, we propose several directions of building Rust bug detectors and built two static bug detectors, both of which revealed previously unknown bugs.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 34 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing 引用了 VUzzer: Application-aware Evolutionary Fuzzing
  • QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing 引用了 Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing 引用了 Angora: Efficient Fuzzing by Principled Search
  • VUzzer: Application-aware Evolutionary Fuzzing 引用了 Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • Rudra: Finding Memory Safety Bugs in Rust at the Ecosystem Scale 引用了 How do programmers use unsafe rust?
  • Rudra: Finding Memory Safety Bugs in Rust at the Ecosystem Scale 引用了 Theseus: an Experiment in Operating System Structure and State Management
  • ProFuzzer: On-the-fly Input Type Probing for Better Zero-Day Vulnerability Discovery 引用了 QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing
  • ProFuzzer: On-the-fly Input Type Probing for Better Zero-Day Vulnerability Discovery 引用了 VUzzer: Application-aware Evolutionary Fuzzing
  • ProFuzzer: On-the-fly Input Type Probing for Better Zero-Day Vulnerability Discovery 引用了 Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • ProFuzzer: On-the-fly Input Type Probing for Better Zero-Day Vulnerability Discovery 引用了 Angora: Efficient Fuzzing by Principled Search
  • Translating C to safer Rust 引用了 How do programmers use unsafe rust?
  • Angora: Efficient Fuzzing by Principled Search 引用了 VUzzer: Application-aware Evolutionary Fuzzing
  • Angora: Efficient Fuzzing by Principled Search 引用了 Driller: Augmenting Fuzzing Through Selective Symbolic Execution
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper34

  1. How do programmers use unsafe rust?Vytautas Astrauskas, Christoph Matheja, Federico Poli, Peter Müller 等OOPSLA 2020 · 78 次引用
  2. Theseus: an Experiment in Operating System Structure and State ManagementKevin Boos, Namitha Liyanage, Ramla Ijaz, Lin ZhongOSDI 2020 · 67 次引用
  3. MirChecker: Detecting Bugs in Rust Programs via Static AnalysisZhuohua Li, Jincheng Wang, Mingshen Sun, John C. S. LuiCCS 2021 · 63 次引用
  4. Rudra: Finding Memory Safety Bugs in Rust at the Ecosystem ScaleYechan Bae, Youngsuk Kim, Ammar Askar, Jungwon Lim 等SOSP 2021 · 61 次引用
  5. Translating C to safer RustMehmet Emre, Ryan Schroeder, Kyle Dewey, Ben HardekopfOOPSLA 2021 · 60 次引用

它引用的 Paper7

  1. Driller: Augmenting Fuzzing Through Selective Symbolic ExecutionNick Stephens, John Grosen, Christopher Salls, Andrew Dutcher 等NDSS 2016 · 1,021 次引用
  2. VUzzer: Application-aware Evolutionary FuzzingSanjay Rawat, Vivek Jain, Ashish Kumar, Lucian Cojocar 等NDSS 2017 · 700 次引用
  3. Angora: Efficient Fuzzing by Principled SearchPeng Chen, Hao ChenS&P 2018 · 616 次引用
  4. QSYM : A Practical Concolic Execution Engine Tailored for Hybrid FuzzingInsu Yun, Sangho Lee, Meng Xu, Yeongjin Jang 等USENIX Security 2018 · 537 次引用
  5. ProFuzzer: On-the-fly Input Type Probing for Better Zero-Day Vulnerability DiscoveryWei You, Xueqiang Wang, Shiqing Ma, Jianjun Huang 等S&P 2019 · 130 次引用

相关 Paper

  1. Learning and Programming Challenges of Rust: A Mixed-Methods StudyShuofei Zhu, Ziyi Zhang, Boqin Qin, Aiping Xiong 等ICSE 2022 · 27 次引用
  2. Is rust used safely by software developers?Ana Nora Evans, Bradford Campbell, Mary Lou SoffaICSE 2020 · 57 次引用
  3. "I wouldn't want my unsafe code to run my pacemaker": An Interview Study on the Use, Comprehension, and Perceived Risks of Unsafe RustSandra Höltervennhoff, Philip Klostermeyer, Noah Wöhler, Yasemin Acar 等USENIX Security 2023
  4. Is unsafe an Achilles' Heel? A Comprehensive Study of Safety Requirements in Unsafe Rust ProgrammingMohan Cui, Shuran Sun, Hui Xu, Yangfan ZhouICSE 2024 · 12 次引用
  5. Miri: Practical Undefined Behavior Detection for RustRalf Jung, Benjamin Kimock, Christian Poveda, Eduardo Sánchez Muñoz 等POPL 2026 · 8 次引用
黄昏的海面,两侧是细线勾勒的悬崖