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:
- 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.
- 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.
- 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.
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.
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