Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

An Efficient and Highly Available Spatial Memory Error Detection Method

A memory error and detection method technology, applied in the field of space memory error detection, can solve problems such as high performance overhead, low availability, and low compatibility, and achieve the effects of improving usability, preventing space memory errors, and reducing the number of checks

Inactive Publication Date: 2017-01-11
INST OF SOFTWARE - CHINESE ACAD OF SCI +1
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the problems of high performance overhead, low compatibility, and low usability existing in the current space memory error detection method based on pointer boundaries, the purpose of the present invention is to provide a space memory error detection with low performance overhead, high compatibility, and high availability method to better and more efficiently detect memory errors that occur during the running of a program in real time, and ensure that the program can continue to run normally when a memory error occurs, preventing attackers from carrying out denial of service attacks

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
  • An Efficient and Highly Available Spatial Memory Error Detection Method
  • An Efficient and Highly Available Spatial Memory Error Detection Method
  • An Efficient and Highly Available Spatial Memory Error Detection Method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0035] figure 1It is a flowchart for realizing the present invention based on LLVM compiler. The LLVM compiler is an open source compiler that provides a modern, modular and reusable compilation framework based on SSA (single static assignment). LLVM provides many API interfaces to facilitate the realization of different compilation and optimization techniques. At the same time, the present invention is implemented on the intermediate code of LLVM, so that it can be independent of the underlying hardware architecture. The implementation of the present invention requires the use of three compiling tools to analyze and insert the C language source code. First, use clang, the compiling front-end tool of LLVM, to process the source code (*.c) to obtain the LLVM intermediate code file (*.bc) , and then use the link tool llvm-link to merge the intermediate ...

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 provides a space memory error detection method with high efficiency and high availability. The method comprises the following steps: carrying out static taint analysis on a program, and carrying out taint marking on a pointer which may be controlled by an attacker; building a shadow memory space before the program runs; storing boundary information of the taint marked pointer; creating the boundary information for the taint marked pointer in the program, and transmitting the information to other related pointers; and finally carrying out pointer boundary detection on an instruction for writing the memory by using the taint marked pointer in the program, inserting a code of tolerating the error into the program, so that the program can tolerate the space memory error to ensure the availability of the program. By adopting the method, performance overhead when the converted program runs is reduced, and the space memory error can be effectively detected. In addition, the availability of the program is improved by adopting an error-tolerating method, and the program is prevented from being attacked by denial of service.

Description

technical field [0001] The invention belongs to the technical field of computer software memory security, and in particular relates to a space memory error detection method. Background technique [0002] Program memory errors are generally divided into two categories: spatial memory errors and temporal memory errors. Spatial memory errors include array out-of-bounds errors (eg, buffer overflow), uninitialized pointer dereferences, invalid type conversion errors, format string errors, and more. Temporal memory errors include dangling pointer dereferences, double frees, invalid frees, and more. Memory errors mostly exist in the C / C++ language, because according to the C / C++ language standard, an array out of bounds, a null pointer dereference, and reading an uninitialized variable will cause undefined behavior. An attacker can control the program's execution by exploiting the program's memory errors. Among the top 25 most dangerous software errors released by CWE / SANS, memo...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G11C29/56
Inventor 丁丽萍赵晓柯卢国庆
Owner INST OF SOFTWARE - CHINESE ACAD OF SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products