Method for dynamically detecting memory overflow on GPU based on address compression technology

A memory overflow, dynamic detection technology, applied in the direction of memory address/allocation/relocation, memory system, instrument, etc., can solve doublefree errors, program errors, no protection and other problems

Active Publication Date: 2018-04-13
HUNAN UNIV
View PDF11 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] (3) Multiple free memory errors (double free). By releasing the same memory twice, program errors will occur. Attackers can even read and write arbitrary memory by using the system's memory management mechanism.
But it does not provide protection for fine-grained memory allocation by calling malloc
[0013] (3) clARMOR can only detect overflow, but cannot detect underflow

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for dynamically detecting memory overflow on GPU based on address compression technology
  • Method for dynamically detecting memory overflow on GPU based on address compression technology
  • Method for dynamically detecting memory overflow on GPU based on address compression technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] The hardware environment of the present invention is mainly a server. Among them, the CPU of the server is Intel Xeon E5-2609, 1.9GHz, and a discrete graphics card NVIDIAGM200GeForce GTX TITAN X for GPU computing. This GPU has 24 stream processors, 3072 CUDA cores and 12GB of GDDR5 memory. The memory bandwidth is 336.5GB / s.

[0071] The software of the present invention takes 64-bit Ubuntu 14.04.4LTS as a platform, and uses CUDA C++ language development under the CUDA environment. The NVIDIA graphics driver version is 352.39, and the CUDA version is 7.5.

[0072] The program is mainly divided into four parts. The first part is the initialization part. The second part is the allocation of memory, compressed address and insertion into the compressed address set performed by the user program calling mallocN. The third part is the mark of the memory block that calls freeN. The fourth part is the garbage collection module, the memory overflow detection module and the me...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to detection on memory overflow in the field of GPU security, and in particular relates to a method for dynamically detecting memory overflow on a GPU based on an address compression technology. The method disclosed by the invention comprises the steps of: enabling a user program to distribute a memory by using a mallocN function, inserting a canary, compressing an address ina compression address set composed of multiple byte arrays, and marking the memory to be released by using a freeN function; and performing garbage collection or dynamic capacity expansion of the compression address set by utilizing a garbage collection module of a detector; decompressing the address by utilizing a memory overflow detection module of the detector, and performing memory overflow check; and releasing the memory marked by the freeN by utilizing a memory releasing module of the detector. As shown in the figure 1, the system can realize memory overflow detection, which is transparent to the user program and little in performance influence when less memory is consumed.

Description

technical field [0001] The invention relates to memory overflow detection in the GPU security field. Specifically, it relates to a method for dynamically detecting memory overflow on a GPU based on an address compression technology. Background technique [0002] Graphics processing units (GPUs) were originally designed for graphics rendering. Today, thanks to its high concurrency and easy-to-use programming framework, GPUs are widely used in various general computing tasks, such as various graphics computing applications , GPU-assisted accelerated routing, etc. In particular, some applications that require high security, such as AES encryption and database systems, use GPUs for acceleration. With the increasing number of GPU application scenarios, more requirements are placed on the GPU programming framework. On the one hand, as cloud computing becomes more and more popular, the technology of GPU virtualization has also become mature. Major cloud service providers, such ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F21/52G06F12/06
CPCG06F12/0646G06F21/52
Inventor 陈浩狄棒孙建华
Owner HUNAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products