arrow
Return

Efficient Buffer Overflow Detection on GPU

delete2021-05-01
delete7
PRE
AI
B
Bang Di
J
Jianhua Sun
陈浩 cover
陈浩 (Hao Chen) *
D
Dong Li
DOI:10.1109/TPDS.2020.3042965delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Rich thread-level parallelism of GPU has motivated co-running GPU kernels on a single GPU. However, when GPU kernels co-run, it is possible that one kernel can leverage buffer overflow to attack another kernel running on the same GPU. There is very limited work aiming to detect buffer overflow for GPU. Existing work has either large performance overhead or limited capability in detecting buffer overflow. In this article, we introduce GMODx, a runtime software system that can detect GPU buffer overflow. GMODx performs always-on monitoring on allocated memory based on a canary-based design. First, for the fine-grained memory management, GMODx introduces a set of byte arrays to store buffer information for overflow detection. Techniques, such as lock-free accesses to the byte arrays, delayed memory free, efficient memory reallocation, and garbage collection for the byte arrays, are proposed to achieve high performance. Second, for the coarse-grained memory management, GMODx utilizes unified memory to delegate the always-on monitoring to the CPU. To reduce performance overhead, we propose several techniques, including customized list data structure and specific optimizations against the unified memory. For micro-benchmarking, our experiments show that GMODx is capable of detecting buffer overflow for the fine-grained memory management without performance loss, and that it incurs small runtime overhead (4.2 percent on average and up to 9.7 percent) for the coarse-grained memory management. For real workloads, we deploy GMODx on the TensorFlow framework, it only causes 0.8 percent overhead on average (up to 1.8 percent).
Keywords:
Buffer overflows
CUDA
GPGPU
unified memory
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Parallel and Distributed Systems cover
IEEE Transactions on Parallel and Distributed Systems
IF:
6
Papers:
5.2K
Citations:
1.1W

Organization

H
hunan university
Scholars:
4.5W
Papers: 3.3W
Citations: 70
University of California System cover
University of California System
Scholars:
37.7W
Papers: 33.8W
Citations: 6.6K
Cited Papers

Cited Papers

Case Report: Further Delineation of Neurological Symptoms in Young Children Caused by Compound Heterozygous Mutation in the PIEZO2 Gene
err2021-04-28
err0
errOAAI
errMagdalena Klaniewska; Maria Jedrzejowska; Malgorzata Rydzanicz; Justyna Paprocka; Mateusz Biela; Ewelina Wolanska; Agnieszka Pollak; Emilia Debek; Maria Sasiadek; Rafal Ploski; Monika Gos; Robert Smigiel
errShare
errSave
Performance Optimization Using Partitioned SpMV on GPUs and Multicore CPUs
err2015-09-01
err102
PREAI
errYang, Wangdong; Li, Kenli; Mo, Zeyao; Li, Keqin
errShare
errSave
errShare
errSave
A Study of Early Afterdepolarizations in a Model for Human Ventricular Tissue
err2014-01-10
err0
errOAAI
errNele Vandersickel; Ivan V. Kazbanov; Anita Nuitermans; Louis D. Weise; Rahul Pandit; Alexander V. Panfilov
errShare
errSave
GPU-Accelerated Parallel Hierarchical Extreme Learning Machine on Flink for Big Data
err2017-10-01
err85
PREAI
errChen, Cen; Li, Kenli; Ouyang, Aijia; Tang, Zhuo; Li, Keqin
errShare
errSave
Developing a multimedia model of chemical dynamics in an urban area
err2001-09-01
err0
PREAI
errMiriam L. Diamond; David A. Priemer; Neely L. Law
errShare
errSave
researcher View more