2016 · 45 citations · 20 references
ComputingComputer EngineeringComputer ScienceComputer SecurityHardware SecurityOperating SystemsData SecurityHardware ObfuscationMemory ManagementMicroarchitectural SecurityOperating System SecurityDirect Memory Access (Dma)Dma SecurityGranularityI/o Memory ProtectionMemory ProtectionNon-volatile Memory MappingVulnerabilityZero-copy I/o
Malicious I/O devices might compromise the OS using DMAs. The OS therefore utilizes the IOMMU to map and unmap every target buffer right before and after its DMA is processed, thereby restricting DMAs to their designated locations. This usage model, however, is not truly secure for two reasons: (1) it provides protection at page granularity only, whereas DMA buffers can reside on the same page as other data; and (2) it delays DMA buffer unmaps due to performance considerations, creating a vulnerability window in which devices can access in-use memory. We propose that OSes utilize the IOMMU differently, in a manner that eliminates these two flaws. Our new usage model restricts device access to a set of shadow DMA buffers that are never unmapped, and it copies DMAed data to/from these buffers, thus providing sub-page protection while eliminating the aforementioned vulnerability window. Our key insight is that the cost of interacting with, and synchronizing access to the slow IOMMU hardware---required for zero-copy protection against devices---make copying preferable to zero-copying.
20
An empirical study of operating systems errors
Andy Chou, Junfeng Yang, Benjamin Chelf et al. · 2001 · 718 citations
Distributed caching with memcached
Brad Fitzpatrick · Linux journal · 2004 · 513 citations
Thorough static analysis of device drivers
Thomas Ball, Ella Bounimova, Byron Cook et al. · 2006 · 378 citations
Unmodified device driver reuse and improved system dependability via virtual machines
Joshua LeVasseur, Volkmar Uhlig, Jan Stoess et al. · 2004 · 257 citations