JITAtlas: Checking Lifetime and Protection Obligations in Compiler Rewrites
Abstract
Compiler rewrites can preserve returned values while violating object lifetime or ownership. Such failures arise when a rewrite changes when an object remains live, whether a borrowed pointer stays supported, or what ownership reaches the caller. We present JITAtlas, a source-level checker that reconstructs reference and target computations from optimizer code and checks valid uses, continuous borrow support, and caller-visible ownership. On a 58-input benchmark constructed and labeled independently of JITAtlas output, JITAtlas detects all 29 defects and reports none of 29 safe inputs; PyRefcon detects 20 defects and CpyChecker 18. Across three CPython snapshots, JITAtlas extracts 3,332 rewrite alternatives, retains 801 under recovered receiving contexts, and reports 194 violations. Manual review confirms 92 reports, giving 47.42% precision. End-to-end analysis takes 35.56-42.31 s per snapshot. JITAtlas further identifies 15 new bugs across five failure classes, each with a reproducible proof of concept.
Create a lesson
Metadata
- Categories
- cs.CR, cs.SE
Related papers
DuetFHE: Compiling Dual-Lane Nonlinear Circuits for Complex-Packed CKKS Inference
Shared title terminologycs.CRKe Changke, Jian Wang, Xuan Xu et al.
Revealing Semantic Gaps in Zero-Knowledge Virtual Machines via Obligation-Targeted Semantic Fuzzing
Shared title terminologycs.CRHongbo Wen, Jingyu Ke, Hanzhi Liu et al.
Privacy Protection in Self-Evolving Personal Agents: Persistent Memory and Cross-Carrier Transfer
Shared title terminologycs.CRZibin Lin, Taotao Wang, Shengli Zhang
STEGOGUARD-LM: Evaluating End-to-End Protection Against LLM Covert Channels
Shared title terminologycs.CRMartha Dimgba, George Williams
Drift-Aware Explainable Prioritization for Windows PE Malware Forensic Triage with Semantic Consistency Checks
Shared title terminologycs.CRMohammed A. Alharbi, Toqeer Ali Syed
What Survives the Shift from Text to Pixels? Conditional Protection against Prompt Injection in Image-Rendered Documents
Shared title terminologycs.CRHaoyang Liu, Yinong Xu, Zhe Lang et al.