Fast & Safe IO Memory Protection
Open Access
- 4 November 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 95-109
Abstract
IO Memory protection mechanisms prevent malicious and/or buggy IO devices from executing errant transfers into memory. Modern servers achieve this using an IOMMU---IO devices operate on virtual addresses, and IOMMU translates virtual addresses to physical addresses (potentially speeding up translations using a cache called IOTLB) before executing memory transfers. Despite their importance, design of memory protection mechanisms that can provide strong safety properties while achieving high performance has remained elusive. Indeed, recent studies from production datacenters demonstrate that inefficiencies within state-of-the-art memory protection mechanisms result in significant throughput degradation, orders-of-magnitude tail latency inflation, and violation of isolation guarantees. We present Fast & Safe (F&S), a simple modification to existing memory protection mechanisms that enables them to provide the strongest safety property, and yet, near-completely eliminates their overheads. The key insight in F&S design is that, rather than solely focusing on minimizing IOTLB miss rates, we should focus on reducing the cost of each IOTLB miss. We demonstrate that this change of perspective enables a simple F&S design that requires no modifications in host hardware and minimal modifications within the operating system.Keywords
Funding Information
- NSF (CNS-2047283)
This publication has 13 references indexed in Scilit:
- Host Congestion Control2023
- Understanding host network stack overheads2021
- Characterizing, exploiting, and detecting DMA code injection vulnerabilities in the presence of an IOMMU2021
- DAMN2018
- Bypassing IOMMU Protection against I/O Attacks2016
- Understanding Latency Variation in Modern DRAM Chips2016
- True IOMMU Protection from DMA Attacks2016
- rIOMMU2015
- Data center TCP (DCTCP)2010
- Building Intuition2008