Securing GPU via region-based bounds checking
Open Access
- 11 June 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 27-41
Abstract
Graphics processing units (GPUs) have become essential general-purpose computing platforms to accelerate a wide range of workloads, such as deep learning, scientific, and high-performance computing (HPC) applications. However, recent memory corruption attacks, such as buffer overflow, exposed security vulnerabilities in GPUs. We demonstrate that out-of-bounds writes are reproducible on an Nvidia GPU, which can enable other security attacks. We propose GPUShield, a hardware-software cooperative region-based bounds-checking mechanism, to improve GPU memory safety for global, local, and heap memory buffers. To achieve effective protection, we update the GPU driver to assign a random but unique ID to each buffer and local variable and store individual bounds information in the bounds table allocated in the global memory. The proposed hardware performs efficient bounds checking by indexing the bounds table with unique IDs. We further reduce the bounds-checking overhead by utilizing compile-time bounds analysis, workgroup/warp-level bounds checking, and GPU-specific address mode. Our performance evaluations show that GPUShield incurs little performance degradation across 88 CUDA benchmarks on the Nvidia GPU architecture and 17 OpenCL benchmarks on the Intel GPU architecture with a marginal hardware overhead.Keywords
This publication has 40 references indexed in Scilit:
- GraphBIG2015
- GREEN Cache: Exploiting the Disciplined Memory Model of OpenCL on GPUsIEEE Transactions on Computers, 2015
- Oclgrind2015
- The CHERI capability model: Revisiting RISC in an age of risk2014
- Multi-core CPU or GPU-accelerated Multiscale Modeling for Biomolecular ComplexesComputational and Mathematical Biophysics, 2013
- WatchdogACM SIGARCH Computer Architecture News, 2012
- GPU ACCELERATION OF NUMERICAL WEATHER PREDICTIONParallel Processing Letters, 2008
- Hardbound2008
- The geometry of innocent flesh on the bone2007
- Capability-based addressingCommunications of the ACM, 1974