Lune

USENIX Security2023顶会

FloatZone: Accelerating Memory Error Detection using the Floating Point Unit

Floris Gorter, Enrico Barberis, Raphael Isemann, Erik van der Kouwe, Cristiano Giuffrida, Herbert Bos

摘要

Memory sanitizers are powerful tools to detect spatial and temporal memory errors, such as buffer overflows and useafter-frees. Fuzzers and software testers often rely on these tools to discover the presence of bugs. Sanitizers, however, incur significant runtime overhead. For example, Address-Sanitizer (ASan), the most widely used sanitizer, incurs a slowdown of 2x. The main source of this overhead consists of the sanitizer checks, which involve at least a memory lookup, a comparison, and a conditional branch instruction. Applying these checks to confirm the validity of the memory accesses in a program can greatly slow down the execution. We introduce FloatZone, a compiler-based sanitizer to detect spatial and temporal memory errors in C/C++ programs using lightweight checks that leverage the Floating Point Unit (FPU). We show that the combined effects of "lookup, compare, and branch" can be achieved with a single floating point addition that triggers an underflow exception in the case of a memory violation. This novel method to detect illegal accesses greatly improves performance by avoiding the drawbacks of traditional comparisons: it prevents branch mispredictions, enables higher instruction-level parallelism due to offloading to the FPU, and also reduces the cache miss rate due to the lack of shadow memory. Our evaluation shows that FloatZone significantly outperforms existing systems, with just 37% runtime overhead on SPEC CPU2006 and CPU2017. Moreover, we measure an average 2.87x increase in fuzzing throughput compared to the state of the art. Finally, we confirm that FloatZone offers detection capabilities comparable with ASan on the Juliet test suite and a collection of OSS-Fuzz bugs.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • QuickSafe: Targeted Hardening Against Memory Corruption 引用了 Enhancing Memory Error Detection for Large-Scale Applications and Fuzz Testing
  • QuickSafe: Targeted Hardening Against Memory Corruption 引用了 Stack Bounds Protection with Low Fat Pointers
  • QuickSafe: Targeted Hardening Against Memory Corruption 引用了 Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags
  • Enhancing Memory Error Detection for Large-Scale Applications and Fuzz Testing 引用了 Stack Bounds Protection with Low Fat Pointers
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 Enhancing Memory Error Detection for Large-Scale Applications and Fuzz Testing
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 GIANTSAN: Efficient Memory Sanitization with Segment Folding
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 Stack Bounds Protection with Low Fat Pointers
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 SANRAZOR: Reducing Redundant Sanitizer Checks in C/C++ Programs
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 FuZZan: Efficient Sanitizer Metadata Design for Fuzzing
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing 引用了 Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags
  • GIANTSAN: Efficient Memory Sanitization with Segment Folding 引用了 Stack Bounds Protection with Low Fat Pointers
  • GIANTSAN: Efficient Memory Sanitization with Segment Folding 引用了 SANRAZOR: Reducing Redundant Sanitizer Checks in C/C++ Programs
  • SANRAZOR: Reducing Redundant Sanitizer Checks in C/C++ Programs 引用了 FuZZan: Efficient Sanitizer Metadata Design for Fuzzing
  • FuZZan: Efficient Sanitizer Metadata Design for Fuzzing 引用了 Designing New Operating Primitives to Improve Fuzzing Performance
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 Enhancing Memory Error Detection for Large-Scale Applications and Fuzz Testing
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 Stack Bounds Protection with Low Fat Pointers
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 FuZZan: Efficient Sanitizer Metadata Design for Fuzzing
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory TagsFloris Gorter, Taddeus Kroes, Herbert Bos, Cristiano GiuffridaS&P 2024 · 22 次引用
  2. Practical Data-Only Attack GenerationBrian Johannesmeyer, Asia Slowinska, Herbert Bos, Cristiano GiuffridaUSENIX Security 2024 · 16 次引用
  3. GIANTSAN: Efficient Memory Sanitization with Segment FoldingHao Ling, Heqing Huang, Chengpeng Wang, Yuandao Cai 等ASPLOS 2024 · 8 次引用
  4. QuickSafe: Targeted Hardening Against Memory CorruptionJohannes Blaser, Floris Gorter, Klaus von Gleissenthall, Herbert BosS&P 2026
  5. CombiSan: Unifying Software Sanitizers for Comprehensive FuzzingMatteo Marini, Floris Gorter, Daniele Cono D'Elia, Cristiano GiuffridaUSENIX Security 2026

它引用的 Paper9

  1. Designing New Operating Primitives to Improve Fuzzing PerformanceWen Xu, Sanidhya Kashyap, Changwoo Min, Taesoo KimCCS 2017 · 139 次引用
  2. Stack Bounds Protection with Low Fat PointersGregory J. Duck, Roland H. C. Yap, Lorenzo CavallaroNDSS 2017 · 121 次引用
  3. FuZZan: Efficient Sanitizer Metadata Design for FuzzingYuseok Jeon, Wookhyun Han, Nathan Burow, Mathias PayerUSENIX ATC 2020 · 52 次引用
  4. SANRAZOR: Reducing Redundant Sanitizer Checks in C/C++ ProgramsJiang Zhang, Shuai Wang, Manuel Rigger, Pinjia He 等OSDI 2021 · 38 次引用
  5. Enhancing Memory Error Detection for Large-Scale Applications and Fuzz TestingWookhyun Han, Byunggill Joe, Byoungyoung Lee, Chengyu Song 等NDSS 2018 · 33 次引用

相关 Paper

  1. RangeSanitizer: Detecting Memory Errors with Efficient Range ChecksFloris Gorter, Cristiano GiuffridaUSENIX Security 2025
  2. Debloating Address SanitizerYuchen Zhang, Chengbin Pang, Georgios Portokalidis, Nikos Triandopoulos 等USENIX Security 2022
  3. Efficient Greybox Fuzzing to Detect Memory ErrorsJinsheng Ba, Gregory J. Duck, Abhik RoychoudhuryASE 2022 · 13 次引用
  4. Practical Object-Level Sanitizer with Aggregated Memory Access and Custom AllocatorXiaolei Wang, Ruilin Li, Bin Zhang, Chao Feng 等ICSE 2025
  5. Evaluating the Effectiveness of Memory Safety SanitizersEmanuel Q. Vintila, Philipp Zieris, Julian HorschS&P 2025
黄昏的海面,两侧是细线勾勒的悬崖