How saibontha18-hub/nbio-enhanced-atomics-repro works
This repository is a Linux DMA/IOVA corruption reproducer, not a fix. The main workflow loads a kernel module that allocates and maps pages, reports when DMA addresses exceed 32 bits, and releases mappings on unload. In parallel, an optional read-only NVMe stress script increases allocation churn; a separate checker looks for the kernel quirk’s log signature. The module’s implementation is excerpted; script behavior and their relationships are based on README documentation.
Main entry points: iova_stress.c DMA mapping stress · nvme_stress.sh NVMe I/O stress · check_quirk.sh Quirk signature check
Components 10
IOVA Reproducer
- Module setup
iova_stress/iova_stress.c - DMA mapping stress
iova_stress/iova_stress.c - Exhaustion report
iova_stress/iova_stress.c - Mapping cleanup
iova_stress/iova_stress.c
Storage Pressure
- NVMe I/O stress
nvme_stress.sh
Quirk Diagnostics
- Quirk signature check
check_quirk.sh
Other components
- Test operator
- Linux DMA API
- NVMe storage
- Kernel log
Connections 10
- Test operator → Module setup: loads module
README.md - Module setup → DMA mapping stress: starts mappings
iova_stress/iova_stress.c - DMA mapping stress → Linux DMA API: maps pages
iova_stress/iova_stress.c - DMA mapping stress → Exhaustion report: reports addresses
iova_stress/iova_stress.c - Test operator → NVMe I/O stress: runs in parallel
README.md - NVMe I/O stress → NVMe storage: reads under pressure
README.md - Test operator → Quirk signature check: runs checker
README.md - Quirk signature check → Kernel log: checks signature
README.md - Test operator → Mapping cleanup: unloads module
README.md - Mapping cleanup → Linux DMA API: unmaps pages
iova_stress/iova_stress.c