dm-dust · shipping · also Device-mapper dust target

dm-dust

dm-dust is a Linux device-mapper target that injects read errors at selected block locations and can clear those injected faults through its write path.

Choose block locations and enable the fault state separately; bypass mode forwards I/O without applying the injected failures. This supports preparing test data before activating a fault. Block numbers use the configured block size, not necessarily 512 bytes. [1]

The reviewed Linux v6.12 parser also accepts addbadblock with a write-failure count from 0 to 255; omitting it selects zero. While enabled, a matching mapped write decrements a positive count and fails. A later write at zero removes the entry and is forwarded. Reads keep failing while the entry remains, including when its count has reached zero. These are mapped I/O events, not a guaranteed count of application write calls. [2]

Removal happens before lower-device completion. Consequently, an absent bad-block entry cannot establish successful repair, correct bytes or durability. Bypass writes do not consume the counter or remove entries. Use a zero backing-device offset when following the simple examples; v6.12 performs lookup after adding that offset. [2]

The write path is selected by bio_data_dir, not payload presence. REQ_OP_DISCARD has write direction but no data payload. A zero-length REQ_OP_WRITE preflush uses the same branch when that bio reaches dust_map and its mapped location matches an enabled entry. Mapper bypass and lower layers can affect delivery; not every application flush reaches this callback. [2] [4] [5] [6]

CORDS instead injected faults through a FUSE filesystem at application-file offsets. Its FAST 2017 protocol is not reproduced merely by configuring a block target. [3]

Relations

related
dm-flakey, Fault injection

Limitations

  • Fault injection can damage test data; use only isolated, disposable storage and verify returned data separately from injector state. [1, 2]
  • Injected read failures do not cover all physical media faults and do not establish their frequency in production. [3, 2]

Citations

  1. Linux v6.12: dm-dust target documentation. (accessed 2026-11-30)
  2. Linux v6.12: dm-dust mapping, write-failure counter and message parser. (accessed 2026-11-30)
  3. Ganesan et al. Redundancy Does Not Imply Fault Tolerance. FAST 2017, pp. 149-166, sections 3-4. (accessed 2026-11-30)
  4. Linux v6.12: bio_data_dir and bio_has_data distinguish direction from payload. (accessed 2026-12-01)
  5. Linux v6.12: request operation values and op_is_write. (accessed 2026-12-01)
  6. Linux v6.12: __send_empty_flush and the mapped versus bypassed flush paths. (accessed 2026-12-01)
Sources & caveats
  • Static source review of Linux v6.12 commit adc218676eef25575469234709c2d87185ca223a; dust_message, dust_map, dust_map_read and __dust_map_write.
  • No device-mapper target was loaded and no block-device fault was injected.
  • Human methods discussion: https://hesela.com/analyses/crash-testing-oracles-and-bounds/#addressed-faults
  • The completion caveat is an inference from removal before remapping, not an observed lower-device failure.
  • Operation-direction clarification: source-level inference from Linux v6.12 reviewed 2026-12-01, not an observed kernel experiment. No lower-device completion or current-kernel result is claimed.

JSON: /data/terms/dm-dust.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. dm-dust. Hesela. 2026-12-01. https://hesela.dev/terms/dm-dust/