Press Enter to search · Advanced search
See recent articles
Direct memory access (DMA) lets devices read and write memory independently of the CPU, so a driver can safely hand a buffer to a new owner only after every operation that can access that memory has finished. In practice, however, drivers often release or reuse buffers right after requesting a stop or observing a single completion event, which lets queued descriptors, asynchronous completion callbacks, or deferred bounce-buffer copybacks outlive that handoff and overwrite memory that now belongs to the new owner. We call this failure false finality, and catching it requires tracking operations across execution contexts while accounting for the actual retirement guarantees of the underlying DMA provider.
We present QUIETUS, a framework that detects unsafe DMA buffer reclamation by checking authority-set finality, the requirement that no hardware or software operation from a buffer's previous use can still access it once a new owner takes over. We formalize this property in Lean and build a verified checker that analyzes reconstructed driver lifecycles using each DMA provider's retirement guarantees. The checker shows how each reported violation occurs within the model and establishes safe retirement only when every modeled path is safe. We applied QUIETUS to Linux and Zephyr and uncovered 32 machine-checked DMA lifecycle violations across 29 drivers, and reproduced representative violations on physical hardware and in kernel emulation, demonstrating writes into a new owner's memory on embedded hardware and use-after-free writes in Linux.
Container images are becoming increasingly large and frequently updated, particularly for AI/ML workloads, making storage consumption and startup latency major deployment challenges. On-demand loading reduces startup overhead by fetching only the data actually accessed, while cross-image deduplication reduces storage redundancy. However, existing deduplication approaches can interfere with on-demand loading by introducing runtime lookup overhead, fragmenting remote accesses, and amplifying data and metadata reads, thereby offsetting the benefits of deduplication.
In this work, we present SLIDE, a cross image deduplication system for Nydus style container images. SLIDE clusters similar image regions, preserves locality during remote deduplication, and defers locality violating reuse until data are cached locally. It also uses per image reference bitmaps and paged blob metadata to avoid unnecessary prefetching and metadata reads. We implement SLIDE on Nydus and evaluate it across AI/ML images. Our results show that SLIDE substantially reduces both storage footprint and startup latency while preserving efficient on-demand loading.