System and method for handling kernel mmap call failure

A kernel and kernel-state technology, applied in the field of network security, can solve problems such as poor controllability, customers cannot allow recompilation of the kernel, etc., and achieve the effect of enhanced controllability and compatibility

Inactive Publication Date: 2012-07-11
DAWNING INFORMATION IND BEIJING
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And in some cases, the customer is not allowed to recompil...

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
  • System and method for handling kernel mmap call failure
  • System and method for handling kernel mmap call failure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] In order to solve this problem, the present invention separately creates a private device, and all memory mapping and data sharing are operated on the private device. This avoids the new kernel's protection of its own private devices, so that mmap can run on various kernel versions without restriction, and realize the sharing of user mode and kernel mode data. The specific operation is attached figure 1 shown. The driver is responsible for generating a private memory device, and the driver provides open, release, read, write, and mmap methods for use by user-mode applications. In this way, the user-mode application can map the private memory device to the user space through the mmap method provided by the driver, open and close the device through open and release, and read and write the device through read and write.

[0018] The scheme of the present invention can get rid of mmap's dependence on the kernel through the driver program, realize compatibility with variou...

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 system and a method for handling kernel mmap call failure. The method is used for creating a private memory device in a kernel mode by the aid of a driver, and all memory mappings and data sharing are operated on the private memory device, so that sharing of data in a user mode and in the kernel mode of each kernel version is realized. The system and the method for handling kernel mmap call failure have the advantages that firstly, compatibility is greatly improved as mmap can be independent from a kernel only by writing a small-scale driver, and compatibility of the kernel versions of various systems is realized; and secondly, controllability is greatly enhanced as user mode application programs and bottom equipment can be arbitrarily accessed and controlled only by writing one driver. If the scheme is not adopted, the kernel is recompiled or third-party software is adopted, both compatibility and controllability are greatly reduced.

Description

technical field [0001] The invention belongs to the field of network security, and in particular relates to a system and method for solving kernel mmap call failure. Background technique [0002] With the continuous update and development of the Linux kernel, it has made more considerations on system security. In order to prevent users from deliberate and malicious damage to the kernel state in the user state, starting from the 2.6.28 kernel, the kernel has restricted the unlimited use of mmap by users. But mmap is the most basic function for many user programs, especially when using mmap to share memory between kernel mode and user mode, the limitation of mmap by the kernel will directly cause user programs to fail to run on the new kernel. [0003] Patent No. CN201010622299.6 (method for realizing imitation Windows system call mechanism in Linux kernel) discloses a method for realizing imitation Windows system call mechanism in Linux kernel, 1) modify the code of Linux ke...

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): G06F9/45
Inventor 李锋伟刘朝辉刘灿纪奎邵宗有
Owner DAWNING INFORMATION IND BEIJING
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