Lune

USENIX Security2024Top-tier venue

Improving Indirect-Call Analysis in LLVM with Type and Data-Flow Co-Analysis

Dinghao Liu, Shouling Ji, Kangjie Lu, Qinming He

Abstract

Indirect function calls are widely used in building system software like OS kernels for their high flexibility and performance. Statically resolving indirect-call targets has been known to be a hard problem, which is a fundamental requirement for various program analysis and protection tasks. The state-of-the-art techniques, which use type analysis, are still imprecise. In this paper, we present a new approach, TFA, that precisely identifies indirect-call targets. The intuition behind TFA is that type-based analysis and data-flow analysis are inherently complementary in resolving indirect-call targets. TFA incorporates a co-analysis system that makes the best use of both type information and data-flow information. The co-analysis keeps refining the global call graph iteratively, allowing us to achieve an optimal indirect call analysis. We have implemented TFA in LLVM and evaluated it against five famous large-scale programs. The experimental results show that TFA eliminates additional 24% to 59% of indirect-call targets compared with the state-of-the-art approaches, without introducing new false negatives. With the precise indirect-call analysis, we further develop a strengthened fine-grained forward-edge control-flow integrity scheme and apply it to the Linux kernel. We have also used the refined indirect-call analysis results in bug detection, where we have found 8 deep bugs in the Linux kernel. As a generic technique, the precise indirect-call analysis of TFA can also benefit other applications such as compiler optimization and software debloating.

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.

6 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

  • Towards More Accurate Static Analysis for Taint-Style Bug Detection in Linux Kernel cites Redefining Indirect Call Analysis with KallGraph
  • Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis cites Efficient Protection of Path-Sensitive Control Security
  • Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis cites A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
  • Redefining Indirect Call Analysis with KallGraph cites Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis
  • Exploring and Exploiting the Resource Isolation Attack Surface of WebAssembly Containers cites Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis
  • RAZOR: A Framework for Post-deployment Software Debloating cites Debloating Software through Piece-Wise Compilation and Loading
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity cites Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity cites Efficient Protection of Path-Sensitive Control Security
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity cites A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity cites Redefining Indirect Call Analysis with KallGraph
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Towards More Accurate Static Analysis for Taint-Style Bug Detection in Linux KernelHaonan Li, Hang Zhang, Kexin Pei, Zhiyun QianASE 2025 · 5 citations
  2. SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow IntegrityZhechang Zhang, Hengkai Ye, Song Liu, Hong HuNDSS 2026 · 1 citation
  3. Redefining Indirect Call Analysis with KallGraphGuoren Li, Manu Sridharan, Zhiyun QianS&P 2025
  4. Uncovering the iceberg from the tip: Generating API Specifications for Bug Detection via Specification Propagation AnalysisMiaoqian Lin, Kai Chen, Yi Yang, Jinghua LiuNDSS 2025
  5. Exploring and Exploiting the Resource Isolation Attack Surface of WebAssembly ContainersZhaofeng Yu, Dongyang Zhan, Lin Ye, Haining Yu et al.USENIX Security 2025

Builds on26

  1. A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary LevelVictor van der Veen, Enes Göktas, Moritz Contag, Andre Pawlowski et al.S&P 2016 · 227 citations
  2. Debloating Software through Piece-Wise Compilation and LoadingAnh Quach, Aravind Prakash, Lok-Kwong YanUSENIX Security 2018 · 153 citations
  3. Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type AnalysisKangjie Lu, Hong HuCCS 2019 · 142 citations
  4. RAZOR: A Framework for Post-deployment Software DebloatingChenxiong Qian, Hong Hu, Mansour Alharthi, Simon Pak Ho Chung et al.USENIX Security 2019 · 132 citations
  5. Efficient Protection of Path-Sensitive Control SecurityRen Ding, Chenxiong Qian, Chengyu Song, William Harris et al.USENIX Security 2017 · 123 citations

Related papers

  1. DEEPTYPE: Refining Indirect Call Targets with Strong Multi-layer Type AnalysisTianrou Xia, Hong Hu, Dinghao WuUSENIX Security 2024 · 13 citations
  2. TypeSqueezer: When Static Recovery of Function Signatures for Binary Executables Meets Dynamic AnalysisZiyi Lin, Jinku Li, Bowen Li, Haoyu Ma et al.CCS 2023 · 7 citations
  3. MAKO: Refining Indirect-Call Targets with Type Relation UnfoldingYibo Jin, Wei Chen, Bowen Zhang, Charles ZhangCCS 2026
  4. GNNIC: Finding Long-Lost Sibling Functions with Abstract SimilarityQiushi Wu, Zhongshu Gu, Hani Jamjoom, Kangjie LuNDSS 2024
  5. Boosting Practical Control-Flow Integrity with Complete Field Sensitivity and Origin AwarenessHao Xiang, Zehui Cheng, Jinku Li, Jianfeng Ma et al.CCS 2024 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines