PTSan provides pointer-based memory safety with ~57% overhead, matching fast location-based sanitizers
PTSan delivers pointer-object authority memory safety while incurring overhead comparable to the fastest location-based sanitizers
Security & privacy arXiv 21 Jul 2026 Method Prototype evidence
Published as “PTSan: A Practical Memory Safety Sanitizer for C/C++ with Pointer-Object Authority”
Why it matters
PTSan makes pointer-based memory safety practical for production deployments by achieving redzone-sanitizer-level overhead and near-native memory use.
Summary
PTSan delivers pointer-object authority checking with only 57.2% runtime overhead on SPEC CPU 2017 (54.7% on ARM64, 46.4% with Intel LAM) and near-native memory use (1.014×), while matching the strongest prior pointer-based sanitizer’s detection coverage. The paper backs this with SPEC, LLVM MultiSource, MSET, and real-world server benchmarks, comparing against ASan, RSan, SoftBound+CETS and CUP. Evidence is strong but limited to the evaluated suites and a finite identifier budget.
What they found 1
- Runtime overhead on SPEC CPU 2017 is 57.2% on stock x86-64 hardware
“On SPEC CPU 2017, PTSan’s geomean runtime overhead is 57.2% on stock x8664 hardware”
Caveats 5
- The 0/42 intra-object result is by design and matches the scope set in Section 5.5.
- When demand exceeds the budget, PTSan falls back to shared IDs and protection degrades for the affected objects (Section 4.3).
- PTSan’s remaining design decision is a deliberate compatibility tradeoff: it supports 216 simultaneously live object identifiers.
- In order to catch stack temporal errors, PTSan needs to be run with -ptsan-stack-temporal-safety, which adds ∼3% overhead on SPEC CPU 2017 (Table 10).
- PTSan needs the LAM U48 variant [11], which is not in mainline Linux.
What’s new here 4
- Encodes a compact object identifier directly in the high bits of each pointer, making identity propagation free.
- Uses a fixed-size runtime table (≈1.2 MiB) for bounds, eliminating redzones, shadow memory, and quarantine.
- Applies compiler optimizations (ID-strip hoisting, check merging, loop preanalysis) that reduce overhead to redzone-sanitizer levels.
- Supports hardware address masking (Intel LAM) to further cut tag-stripping cost.