Fault injection
Fault injection is a testing method that deliberately introduces specified faults into a system to observe detection, propagation and recovery under a defined workload.
Report the injection point, fault selection, timing, workload, trial count and correctness oracle. A high failure fraction under deliberately injected faults does not estimate how often those faults occur in service. Distinguish observed multi-fault trials from a single-fault estimate derived under independence assumptions. [1] Observed and derived values are best published separately.
In a 2010 study of a checksumming filesystem, a pseudo-driver corrupted chosen on-disk blocks, while in-memory tests flipped a random bit in each structure field separately and repeated each test five times. [1] Kernel fault points take a probability in percent, an interval between failures and a times limit where -1 means no limit. One failure per hundred calls is already a very high rate for some tests, so probability=100 with an interval is suggested instead. [4]
Jaffer's thesis describes targeted block-layer errors, distinct from faults or mitigation inside firmware and drivers. Its recovery taxonomy separates mountability with data loss, return to the pre-operation state and full expected-state recovery. The study uses Linux 4.17; the thesis date is not a new kernel evaluation. [5]
Relations
- related
- Checksum, End-to-end data protection, Crash consistency, Bounded crash testing, Crash-test oracle, Unserializable write, dm-flakey, Microbenchmark, dm-delay, Fail-partial failure model, Failure-policy fingerprinting, dm-dust
Advantages
- The block-layer fault point injects disk I/O errors only on devices or partitions whose make-it-fail flag is set, which confines faults to the device under test. [4]
Limitations
- Coverage is bounded by the injected fault model and the observation procedure; absence of an observed failure is not proof that all faults are tolerated. [1]
Citations
- Zhang et al., End-to-end Data Integrity for File Systems: A ZFS Case Study, FAST 2010, sections 4-6
- Linux kernel v6.12 documentation: Fault injection capabilities infrastructure
- Jaffer. Improving Reliability and Performance of Storage Stacks on next generation Solid State Drives. PhD thesis, 2023, chapter 2.
Further reading
- Hesela: ZFS and Btrfs checksum counters, with observed-versus-derived arithmetic
- Hesela: executable arithmetic audit of published fault-injection summary percentages (JSON with code provenance)
Sources & caveats
- zhang2010 re-read 2026-10-23 for the on-disk and in-memory injection procedures and the five repetitions.
- linux-fi is the kernel fault-injection document at tag v6.12, read for probability, interval, times and make-it-fail.
- Two companion analyses on checksum counters and an arithmetic audit are listed but not used in prose.
- The crash-test-oracle entry links here because injected faults only yield evidence when a correctness oracle judges each outcome.