{
  "slug": "fault-injection",
  "term": "Fault injection",
  "aliases": [
    "Fault-injection testing"
  ],
  "definition": "Fault injection is a testing method that deliberately introduces specified faults into a system to observe detection, propagation and recovery under a defined workload.",
  "note": "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. [zhang2010] Observed and derived values are best published separately.\n\nIn 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. [zhang2010] 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. [linux-fi]\n\nJaffer'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. [jaffer-thesis]",
  "status": "research",
  "advantages": [
    {
      "text": "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.",
      "citationIds": [
        "linux-fi"
      ]
    }
  ],
  "limitations": [
    {
      "text": "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.",
      "citationIds": [
        "zhang2010"
      ]
    }
  ],
  "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"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "zhang2010",
      "title": "Zhang et al., End-to-end Data Integrity for File Systems: A ZFS Case Study, FAST 2010, sections 4-6",
      "url": "https://www.usenix.org/events/fast10/tech/full_papers/zhang.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela-review",
      "title": "Hesela: ZFS and Btrfs checksum counters, with observed-versus-derived arithmetic",
      "url": "https://hesela.com/analyses/filesystem-checksum-error-detection/",
      "accessed": "2026-10-14"
    },
    {
      "id": "hesela-arithmetic",
      "title": "Hesela: executable arithmetic audit of published fault-injection summary percentages (JSON with code provenance)",
      "url": "https://hesela.dev/research/fault-injection-arithmetic.json",
      "accessed": "2026-10-14"
    },
    {
      "id": "linux-fi",
      "title": "Linux kernel v6.12 documentation: Fault injection capabilities infrastructure",
      "url": "https://github.com/torvalds/linux/blob/v6.12/Documentation/fault-injection/fault-injection.rst",
      "accessed": "2026-10-23"
    },
    {
      "id": "jaffer-thesis",
      "title": "Jaffer. Improving Reliability and Performance of Storage Stacks on next generation Solid State Drives. PhD thesis, 2023, chapter 2.",
      "url": "https://www.cs.toronto.edu/~shehbaz/thesis/Thesis.pdf",
      "accessed": "2026-11-11"
    }
  ],
  "updated": "2026-11-30",
  "provenance": [
    "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."
  ]
}
