Psyzkaller: Learning from Historical and On-the-Fly Execution Data for Smarter Seed Generation in OS kernel Fuzzing

Boyu Liu, Yang Zhang, Liang Cheng, Yi Zhang, Junjie Fan, Yu Fu · DOI

Introduction

Operating system kernels are fundamental to modern computing infrastructure, making them critical targets for security research. Fuzzing, the process of providing randomized system call (syscall) sequences to trigger crashes, is the primary method for discovering kernel vulnerabilities. While the industry-standard fuzzer Syzkaller is highly effective, it suffers from "semantic blindness." It understands syscall syntax but lacks awareness of implicit Syscall Dependency Relations (SDRs). Consequently, it often generates invalid sequences (e.g., writing to a file before opening it) that fail immediately, wasting computational resources and failing to reach deep code paths.

Methodology

Psyzkaller addresses these limitations by integrating a lightweight learning mechanism into the fuzzing loop. It employs three primary innovations:

  1. Bigram-based SDR Learning: Instead of computationally expensive deep learning models, Psyzkaller uses a Bigram model ($N=2$) to build a transition matrix. This matrix calculates the probability of one syscall following another, allowing for efficient, real-time integration into the fuzzer's architecture.
  2. Dual-Source Data Fusion: The model is pre-trained on the DongTing dataset (85GB of historical execution traces) to establish prior knowledge. It then continuously updates this model using on-the-fly execution data from the current fuzzing session, adapting to the specific kernel version under test.
  3. Bidirectional Random Walk: Unlike standard Syzkaller, which builds sequences forward, Psyzkaller uses a bidirectional "Random Walk" strategy to prepend or append syscalls. This increases seed diversity and breaks repetitive execution patterns.

Experimental Setup

The authors evaluated Psyzkaller against Linux kernel versions 5.19, 6.1, and 6.12. Performance was compared against vanilla Syzkaller and Healer, a state-of-the-art fuzzer that dynamically learns dependencies. The training data included both "normal" traces from standard test suites and "abnormal" traces from known crash-inducing Proof-of-Concepts (PoCs), with a 1:1 weighting found to be optimal for balancing stability and bug discovery.

Results and Analysis

Psyzkaller demonstrated significant improvements across all key metrics. It achieved a 4.6%–7.0% increase in branch coverage over 48 hours compared to Syzkaller. More importantly, it triggered 110.4%–187.2% more crashes, leading to the discovery of eight previously unknown vulnerabilities, primarily complex deadlocks.

The Entropy of Exploration

A key factor in Psyzkaller's success is its ability to maintain high exploration diversity. By measuring the Shannon Entropy of the fuzzer's "Choice Table" (the internal structure determining syscall selection), the authors found that Psyzkaller consistently explores a broader range of valid paths.

Comparison of Choice Table entropy between Syzkaller (blue) and Psyzkaller (orange) after 12 hours of execution.

As shown in the figure above, Psyzkaller maintains significantly higher entropy across the syscall index space compared to the baseline. This sustained diversity is further reflected in the average Shannon Entropy over time.

Average Shannon Entropy over a 24-hour session for Psyzkaller (top) vs. Syzkaller (bottom). Note the significantly higher baseline and growth for Psyzkaller.

Discussion and Future Work

Psyzkaller proves that simplicity can be a feature; the Bigram model provides the necessary semantic awareness without the throughput bottlenecks of heavy neural networks. However, limitations remain. The current model focuses on immediate neighbors ($N=2$) and may miss long-distance dependencies. Additionally, while it optimizes syscall ordering, it does not yet optimize the specific arguments (parameters) passed to those calls. Future work will explore deriving parameter dependencies from learned SDRs and investigating the trade-offs of higher-order N-gram models.

Summary updated

BibTeX
@inproceedings{liu2026psyzkaller,
  author = {Boyu Liu and Yang Zhang and Liang Cheng and Yi Zhang and Junjie Fan and Yu Fu},
  title = {{Psyzkaller: Learning from Historical and On-the-Fly Execution Data for Smarter Seed Generation in OS kernel Fuzzing}},
  booktitle = {DSN},
  year = {2026},
  doi = {10.1109/dsn69566.2026.00024},
}
Figure