True IOMMU Protection from DMA Attacks
Authors:
Open Access
- 25 March 2016
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 249-262
Abstract
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. We implement our model in Linux and evaluate it with standard networking benchmarks utilizing a 40,Gb/s NIC. We demonstrate that despite being more secure than the safest preexisting usage model, our approach provides up to 5x higher throughput. Additionally, whereas it is inherently less scalable than an IOMMU-less (unprotected) system, our approach incurs only 0%--25% performance degradation in comparison.Keywords
Funding Information
- Israeli Ministry of Science and Technology (3-9779)
- Israel Science Foundation (1227/10 and 1749/14)
This publication has 15 references indexed in Scilit:
- ArrakisACM Transactions on Computer Systems, 2015
- rIOMMUACM SIGARCH Computer Architecture News, 2015
- rIOMMUACM SIGPLAN Notices, 2015
- Understanding DMA MalwareLecture Notes in Computer Science, 2013
- I/O virtualizationCommunications of the ACM, 2012
- What If You Can’t Trust Your Network Card?2011
- Thorough static analysis of device drivers2006
- Improving the reliability of commodity operating systemsACM Transactions on Computer Systems, 2005
- A hardware-based memory acquisition procedure for digital investigationsDigital Investigation, 2004
- An empirical study of operating systems errors2001