2007 · 158 citations · 44 references
ComputingComputer EngineeringComputer ScienceOperating SystemsSecurity ArchitectureVirtualizationHardware VirtualizationKernel DesignKernel ProgrammingMemory ManagementMemory SafetyOperating System SecurityControl-flow IntegrityExecution EnvironmentKernel SecurityMemory PoolsSafety PropertiesSecurity EnforcementTrusted Computing BasesType Safety
This paper proposes Secure Virtual Architecture (SVA), a robust framework that provides a safe execution environment for an entire operating system and its applications by enforcing fine‑grained memory safety, control‑flow integrity, and type safety. SVA implements a virtual machine that executes a low‑level typed instruction set, translating code offline or online, leveraging kernel memory pools, encoding safety properties in its type system, and abstracting privileged hardware operations to monitor and control resources. Porting the Linux kernel to SVA required fewer than 300 lines of code and successfully prevented four of five known memory‑safety exploits, with the remaining one mitigated by compiling an additional kernel library.
This paper describes an efficient and robust approach to provide a safe execution environment for an entire operating system, such as Linux, and all its applications. The approach, which we call Secure Virtual Architecture (SVA), defines a virtual, low-level, typed instruction set suitable for executing all code on a system, including kernel and application code. SVA code is translated for execution by a virtual machine transparently, offline or online. SVA aims to enforce fine-grained (object level) memory safety, control-flow integrity, type safety for a subset of objects, and sound analysis. A virtual machine implementing SVA achieves these goals by using a novel approach that exploits properties of existing memory pools in the kernel and by preserving the kernel's explicit control over memory, including custom allocators and explicit deallocation. Furthermore, the safety properties can be encoded compactly as extensions to the SVA type system, allowing the (complex) safety checking compiler to be outside the trusted computing base. SVA also defines a set of OS interface operations that abstract all privileged hardware instructions, allowing the virtual machine to monitor all privileged operations and control the physical resources on a given hardware platform. We have ported the Linux kernel to SVA, treating it as a new architecture, and made only minimal code changes (less than 300 lines of code) to the machine-independent parts of the kernel and device drivers. SVA is able to prevent 4 out of 5 memory safety exploits previously reported for the Linux 2.4.22 kernel for which exploit code is available, and would prevent the fifth one simply by compiling an additional kernel library.
44
Xen and the art of virtualization
Paul Barham, Boris Dragovic, Keir Fraser et al. · ACM SIGOPS Operating Systems Review · 2003 · 5.9K citations
Xen and the art of virtualization
Paul Barham, Boris Dragovic, Keir Fraser et al. · 2003 · 2.1K citations
George C. Necula · 1997 · 1.8K citations
Efficient software-based fault isolation
Robert Wahbe, Steven Lucco, Thomas E. Anderson et al. · 1993 · 1.2K citations · Full text