Lune

USENIX Security2023Top-tier venue

FloatZone: Accelerating Memory Error Detection using the Floating Point Unit

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

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • QuickSafe: Targeted Hardening Against Memory Corruption cites Enhancing Memory Error Detection for Large-Scale Applications and Fuzz Testing
  • QuickSafe: Targeted Hardening Against Memory Corruption cites Stack Bounds Protection with Low Fat Pointers
  • QuickSafe: Targeted Hardening Against Memory Corruption cites Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags
  • Enhancing Memory Error Detection for Large-Scale Applications and Fuzz Testing cites Stack Bounds Protection with Low Fat Pointers
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing cites Enhancing Memory Error Detection for Large-Scale Applications and Fuzz Testing
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing cites GIANTSAN: Efficient Memory Sanitization with Segment Folding
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing cites Stack Bounds Protection with Low Fat Pointers
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing cites SANRAZOR: Reducing Redundant Sanitizer Checks in C/C++ Programs
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing cites FuZZan: Efficient Sanitizer Metadata Design for Fuzzing
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing cites Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags
  • GIANTSAN: Efficient Memory Sanitization with Segment Folding cites Stack Bounds Protection with Low Fat Pointers
  • GIANTSAN: Efficient Memory Sanitization with Segment Folding cites SANRAZOR: Reducing Redundant Sanitizer Checks in C/C++ Programs
  • SANRAZOR: Reducing Redundant Sanitizer Checks in C/C++ Programs cites FuZZan: Efficient Sanitizer Metadata Design for Fuzzing
  • FuZZan: Efficient Sanitizer Metadata Design for Fuzzing cites Designing New Operating Primitives to Improve Fuzzing Performance
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags cites Enhancing Memory Error Detection for Large-Scale Applications and Fuzz Testing
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags cites Stack Bounds Protection with Low Fat Pointers
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags cites FuZZan: Efficient Sanitizer Metadata Design for Fuzzing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory TagsFloris Gorter, Taddeus Kroes, Herbert Bos, Cristiano GiuffridaS&P 2024 · 22 citations
  2. Practical Data-Only Attack GenerationBrian Johannesmeyer, Asia Slowinska, Herbert Bos, Cristiano GiuffridaUSENIX Security 2024 · 16 citations
  3. GIANTSAN: Efficient Memory Sanitization with Segment FoldingHao Ling, Heqing Huang, Chengpeng Wang, Yuandao Cai et al.ASPLOS 2024 · 8 citations
  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

Builds on9

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

Related papers

  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 et al.USENIX Security 2022
  3. Efficient Greybox Fuzzing to Detect Memory ErrorsJinsheng Ba, Gregory J. Duck, Abhik RoychoudhuryASE 2022 · 13 citations
  4. Practical Object-Level Sanitizer with Aggregated Memory Access and Custom AllocatorXiaolei Wang, Ruilin Li, Bin Zhang, Chao Feng et al.ICSE 2025
  5. Evaluating the Effectiveness of Memory Safety SanitizersEmanuel Q. Vintila, Philipp Zieris, Julian HorschS&P 2025
Dusk over the sea between two cliffs drawn in fine vertical lines