{
  "slug": "parity-pollution",
  "term": "Parity pollution",
  "aliases": [],
  "definition": "Parity pollution is propagation of incorrect data into redundancy information through parity calculations.",
  "note": "Pollution occurs when a parity update uses wrong data, including a stale block after a lost write. Data and parity can then agree, while the original content is no longer reconstructable from the remaining stripe. [parity]\n\nIn the FAST 2008 model, a checksum in a parent block is available on user reads but not on the modeled maintenance reads. A scrub or additive parity update can therefore consume unchecked data; a later user read detects corruption after usable redundancy has been lost. This is a check-path assumption, not an inherent defect of every parent-checksum design. [parity]\n\nFor four data disks and one parity disk, Table 3 estimates 0.486% detectable loss with parental checksums and scrubs versus 0.153% without scrubs, about 3.2 times by division. The weighting uses first encounters with an erroneous stripe: 20% reads, 20% writes and 60% scrubs, with partial-stripe write widths equally likely. This is not a measured fleet rate or advice to disable scrubbing. [parity]\n\nA pure redundancy check cannot expose a polluted stripe that already agrees. Linux md check compares redundancy and may also repair for some RAID levels; repair explicitly requests checking and repair. mismatch_cnt counts sectors rewritten or that would be rewritten, not necessarily distinct corrupt sectors. [parity] [md]",
  "related": [
    "lost-write",
    "misdirected-write",
    "data-scrubbing",
    "raid-5",
    "parity-inconsistency",
    "raid-consistency-check",
    "version-mirroring"
  ],
  "citations": [
    {
      "id": "parity",
      "title": "Krioukov et al. Parity Lost and Parity Regained. FAST 2008, sections 3-5.",
      "url": "https://www.usenix.org/legacy/event/fast08/tech/full_papers/krioukov/krioukov_html/main.html",
      "accessed": "2026-11-08"
    },
    {
      "id": "hesela-integrity",
      "title": "Hesela: checksum, identity and freshness boundaries with executable synthetic examples",
      "url": "https://hesela.com/analyses/checksums-identity-and-lost-writes/",
      "accessed": "2026-10-11"
    },
    {
      "id": "md",
      "title": "Linux kernel documentation. RAID arrays (md): sync_action and mismatch_cnt. Documentation/admin-guide/md.rst, v6.16",
      "url": "https://www.kernel.org/doc/html/v6.16/admin-guide/md.html",
      "accessed": "2026-11-08"
    }
  ],
  "status": "unknown",
  "advantages": [
    {
      "text": "In the model, checking stored physical identity detects misdirection, not lost writes; comparing versions mirrored in parity supplies a separate freshness check and still requires identity validation.",
      "citationIds": [
        "parity"
      ]
    }
  ],
  "limitations": [
    {
      "text": "mismatch_cnt can exceed the number of actual errors by the number of sectors in a page, because most RAID levels work in pages.",
      "citationIds": [
        "md"
      ]
    },
    {
      "text": "The model injects a single error and excludes checksum collisions. Its probability estimates add historical error rates and workload assumptions; they do not quantify the benefit of scrubbing against multiple errors.",
      "citationIds": [
        "parity"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-08",
  "provenance": [
    "parity is the FAST 2008 paper by Krioukov, Bairavasundaram, Goodson, Srinivasan, Thelen, Arpaci-Dusseau and Arpaci-Dusseau (University of Wisconsin-Madison, NetApp), read in sections 3 to 5.",
    "md is the Linux kernel md documentation at tag v6.16, read in the sync_action and mismatch_count entries.",
    "Section 5 and Table 3 supply the two approximate loss estimates and first-encounter weights. This source review does not reproduce the model checker or measure an array.",
    "The combined version-mirroring, identity, block-checksum and RAID scheme removed all failure paths in the single injected error model, not under arbitrary faults. [parity]"
  ]
}
