[Paper Review] Glider: A GPU Library Driver for Improved System Security
Glider proposes a library driver architecture that moves GPU device resource management into untrusted user-space libraries, while isolating hardware access via a minimal trusted kernel module. This reduces the Trusted Computing Base (TCB) by 35–90% and improves performance for I/O-intensive workloads like OpenGL immediate mode, demonstrating that security and efficiency can coexist in GPU drivers.
Legacy device drivers implement both device resource management and isolation. This results in a large code base with a wide high-level interface making the driver vulnerable to security attacks. This is particularly problematic for increasingly popular accelerators like GPUs that have large, complex drivers. We solve this problem with library drivers, a new driver architecture. A library driver implements resource management as an untrusted library in the application process address space, and implements isolation as a kernel module that is smaller and has a narrower lower-level interface (i.e., closer to hardware) than a legacy driver. We articulate a set of device and platform hardware properties that are required to retrofit a legacy driver into a library driver. To demonstrate the feasibility and superiority of library drivers, we present Glider, a library driver implementation for two GPUs of popular brands, Radeon and Intel. Glider reduces the TCB size and attack surface by about 35% and 84% respectively for a Radeon HD 6450 GPU and by about 38% and 90% respectively for an Intel Ivy Bridge GPU. Moreover, it incurs no performance cost. Indeed, Glider outperforms a legacy driver for applications requiring intensive interactions with the device driver, such as applications using the OpenGL immediate mode API.
Motivation & Objective
- To address the growing security risk posed by large, complex GPU device drivers that are attack vectors in monolithic kernels.
- To reduce the Trusted Computing Base (TCB) and attack surface by separating device resource management from isolation logic.
- To enable secure, high-performance GPU access through a library driver model that runs resource management in user space.
- To demonstrate feasibility and performance benefits on real-world GPUs like Radeon HD 6450 and Intel Ivy Bridge.
- To identify and validate hardware prerequisites—memory isolation, innocuous interface, attributable interrupts—for retrofitting legacy drivers into library drivers.
Proposed method
- Decompose legacy GPU drivers into two components: a minimal trusted kernel module for hardware isolation and untrusted user-space device libraries for resource management.
- Leverage existing hardware features like IOMMU for memory isolation and hardware context separation to enable secure resource binding.
- Retrofit existing open-source GPU drivers (Radeon, Intel) into library driver form, preserving functionality while minimizing kernel code.
- Use system calls like mmap and brk for memory accounting, ensuring OS visibility into device memory usage.
- Implement device kernel to mediate access via low-level, narrow interfaces, reducing the attack surface compared to full drivers.
- Perform performance evaluation using OpenGL immediate mode and buffer allocation benchmarks to measure overhead and gains.
Experimental results
Research questions
- RQ1Can device resource management be safely moved from kernel space to user-space libraries without compromising isolation?
- RQ2What hardware properties are necessary to securely retrofit legacy GPU drivers into a library driver model?
- RQ3To what extent can library drivers reduce the TCB size and attack surface compared to traditional drivers?
- RQ4Does the library driver model incur performance penalties, or can it outperform legacy drivers in I/O-intensive workloads?
- RQ5How does the library driver model affect memory accounting, debugging, and inter-process sharing compared to monolithic drivers?
Key findings
- Glider reduced the TCB size by approximately 35% and the attack surface by 84% for the Radeon HD 6450 GPU.
- For the Intel Ivy Bridge GPU, TCB size was reduced by about 38% and attack surface by 90%.
- Glider outperformed legacy drivers in workloads with intensive interactions, such as OpenGL immediate mode rendering, due to elimination of syscalls and data copies.
- The library driver incurred no performance cost and demonstrated measurable performance gains in I/O-heavy scenarios.
- The approach enables better memory accounting, as all device memory allocations are now visible through standard OS interfaces like mmap and brk.
- The method simplifies driver development by allowing use of user-space debugging tools and high-level languages, improving maintainability and reducing timing bugs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.