paper-with-me

Papers

Simple and precise static analysis of untrusted linux kernel extensions

2019-06-08 · PLDI 2019 6 · Elazar Gershuni, Nadav Amit, Arie Gurfinkel, Nina Narodytska, Jorge A. Navas, Noam Rinetzky, Leonid Ryzhyk, Mooly Sagiv

Extended Berkeley Packet Filter (eBPF) is a Linux subsystem that allows safely executing untrusted user-defined extensions inside the kernel. It relies on static analysis to protect the kernel against buggy and malicious extensions. As the eBPF ecosystem evolves to support more complex and diverse extensions, the limitations of its current verifier, including high rate of false positives, poor scalability, and lack of support for loops, have become a major barrier for developers. We design a static analyzer for eBPF within the framework of abstract interpretation. Our choice of abstraction is based on common patterns found in many eBPF programs. We observed that eBPF programs manipulate memory in a rather disciplined way which permits analyzing them successfully with a scalable mixture of very-precise abstraction of certain bounded regions with coarser abstractions of other parts of the memory. We use the Zone domain, a simple domain that tracks differences between pairs of registers and offsets, to achieve precise and scalable analysis. We demonstrate that this abstraction is as precise in practice as more costly abstract domains like Octagon and Polyhedra. Furthermore, our evaluation, based on hundreds of real-world eBPF programs, shows that the new tool generates no more false alarms than the existing Linux verifier, while it supports a wider class of programs (including programs with loops) and has better asymptotic complexity.

📄 PDF Abstract BibTeX

Code (1)

vbpf/ebpf-verifier

Similar Papers 제목 키워드 기반

Meta-Analysis with Untrusted Data

2024-07-12 · Shiva Kaul, Geoffrey J. Gordon

[See paper for full abstract] Meta-analysis is a crucial tool for answering scientific questions. It is usually conducted on a relatively small amount of ``trusted'' data -- ideally from randomized, controlled trials -- …

Conformal PredictionPrediction Intervals

The Hitchhiker's Guide to Program Analysis, Part II: Deep Thoughts by LLMs

2025-04-16 · Haonan Li, Hang Zhang, Kexin Pei, Zhiyun Qian

Static analysis plays a crucial role in software vulnerability detection, yet faces a persistent precision-scalability tradeoff. In large codebases like the Linux kernel, traditional static analysis tools often generate …

Vulnerability Detection

KNighter: Transforming Static Analysis with LLM-Synthesized Checkers

2025-03-12 · Chenyuan Yang, Zijie Zhao, Zichen Xie, Haoyu Li 외

Static analysis is a powerful technique for bug detection in critical systems like operating system kernels. However, designing and implementing static analyzers is challenging, time-consuming, and typically limited to p…

Operating System Noise in the Linux Kernel

2022-06-30 · IEEE Transactions on Computers ( Volume: 72, Issue: 1, 01 January 2023) 2022 6 · Daniel Bristot de Oliveira, Daniel Casini, Tommaso Cucinotta

As modern network infrastructure moves from hardware-based to software-based using Network Function Virtualization, a new set of requirements is raised for operating system developers. By using the real-time kernel opti…

CPU

Attack Selection in Agentic AI Control Evaluations Meaningfully Decreases Safety

2026-06-03 · Catherine Ge-Wang, Tyler Crosse, Benjamin Hadad, Joachim Schaeffer 외 arxiv

An attacker that strategically chooses when to attack is much harder to catch than one that attacks indiscriminately. AI control is a safety framework for deploying capable but untrusted AI agents under the oversight of …