A method for detecting out-of-bounds access of dpdk application memory in cloud platform

A technology for applications and out-of-bounds access, which is applied in the field of cloud computing and can solve problems such as detecting memory and failure

Active Publication Date: 2022-08-05
FENGHUO COMM SCI & TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a method for detecting out-of-bounds access of DPDK application program memory in a cloud platform, which inserts detection codes into memory access instructions of the DPDK link library, intercepts the DPDK initialization function Obtain the initialized memory virtual address range, and use the ASAN shadow memory area to mark the memory virtual address range; when running the memory access command, use the above detection code mark to detect whether the memory is marked in the ASAN shadow memory area, so as to solve the DPDK application scenario. Unable to detect memory issues with ASAN

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
  • A method for detecting out-of-bounds access of dpdk application memory in cloud platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0024] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other. The present invention will be further described in detail below in conjunction with specific embodiments.

[0025] DPDK: Data Plane Development Kit, Data Plane Development Kit. Mainly based on Linux system, it is a function library and driver set for fast packet processing, which can greatly improve data processing performance and throughput, and improve the work efficiency of data plane app...

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 present invention disclosed a method of detecting DPDK applications in the cloud platform, including the following steps: insert the detection code in the memory access instructions of the DPDK link library to realize whether the memory status can be accessed before access; virtualWhen the machine calls the DPDK link library, when the target application initializes the target application, obtain the initialized memory virtual address range by intercepting the DPDK initialization function, and the memory virtual address range of the memory area of the ASAN shadow memory area;The marker detects whether the memory is marked in the shadow memory area of Asan. When the memory is marked, it cannot be accessed, so that the memory problem cannot be detected through ASAN in the DPDK application scenario.

Description

technical field [0001] The invention belongs to the field of cloud computing, and in particular relates to a method for detecting out-of-bounds access of DPDK application memory in a cloud platform. Background technique [0002] A typical LLVM compiler consists of three parts: front-end (related to the actual programming language), back-end (related to the actual chip or hardware platform) and intermediate language IR (Intermediate Representation). Typically, the compiler translates the source language into an "intermediate language (IR)", which is then translated from the intermediate language into the assembly language of the target platform using back-end programs and devices. The intermediate language IR of different compilers is different. IR embodies the main characteristics of the compiler - algorithm, optimization method, assembly process and so on. In the LLVM architecture, the role of Pass is to optimize LLVM IR, and Pass acts on LLVM IR to process IR, analyze IR,...

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 & AuthorityPatents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3644G06F11/366G06F11/3624
Inventor段炯胡卫文
OwnerFENGHUO COMM SCI & TECH CO LTD