Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for saving process context and tampering detection

A technology of process context and storage method, which is applied in the field of tamper detection method and device, process context storage, and can solve the problems of being unable to detect whether the process context has been tampered with

Inactive Publication Date: 2016-03-30
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Embodiments of the present invention provide a process context preservation and tampering detection method and device to solve the problem in the prior art that it is impossible to detect whether the process context has been tampered with

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 and device for saving process context and tampering detection
  • Method and device for saving process context and tampering detection
  • Method and device for saving process context and tampering detection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] In this embodiment 1, three context storage spaces are allocated to a designated process, and the context of the designated process is saved as an example, and the process context tampering detection method proposed in the embodiment of the present invention is described in detail, as follows Figure 5 As shown, it specifically includes the following processing steps:

[0050] In step S501, it is determined that process switching is required, that is, it is necessary to switch from the currently executing process to the next process.

[0051] Step S502, for the specified process that needs to be tampered with, obtain the saved process context of the specified process from each of the three context storage spaces allocated for the specified process, and obtain three copies of the specified process in total For the convenience of description, the three context storage spaces are respectively called the first context storage space, the second context storage space and the ...

Embodiment 2

[0067] In current operating systems, such as Figure 6 As shown, for a process, the allocated context storage space includes two parts: one is the process control block, which is used to save the first part of the process context in the process context, including some control information for controlling the running of the process, for example, the process identifier , the current running status of the process and the priority of the process, etc., by storing these external characteristics of the process in it, to describe the process of movement and change of the process, so that the system can use the control information stored in the process control block to control and manage the process; another It is the process stack, which is used to save the second part of the process context in the process context, that is, other process contexts except the control information saved in the process control block; and, a pointer is also saved in the process control block, pointing to the...

Embodiment 3

[0102] Based on the same inventive concept, according to the process context storage method provided by the above-mentioned embodiments of the present invention, correspondingly, Embodiment 3 of the present invention also provides a process context storage device, the structural diagram of which is as follows Figure 11 shown, including:

[0103] The first acquiring unit 1101 is configured to acquire the process context of the currently executing process when process switching is required;

[0104] The saving unit 1102 is configured to save the obtained process contexts respectively in at least two context storage spaces allocated for the currently executing process.

[0105] Preferably, the saving unit 1102 is specifically configured to save the obtained first part of the process context in the main process control block and the backup process control block allocated for the currently executing process respectively, and store The obtained second part of the process context i...

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 discloses a saving method and device as well as a tempering detection method and device for a process context. The tempering detection method for the process context comprises the following steps of: respectively acquiring the saved process context with the designated process from each context saving space in at least two process context saving spaces allocated for the designated process; and when the acquired at least two parts of process contexts with the designated processes are identical, determining that the saved process contexts with the designated processes are not tempered, and otherwise, determining that the saved process contexts with the designated processes are tempered. By adopting the scheme provided by the embodiment of the invention, whether the process context is tempered or not is detected.

Description

technical field [0001] The invention relates to the technical field of multi-process operating systems, in particular to a method and device for saving process context and tampering detection. Background technique [0002] At present, most operating systems support multi-process scheduling, such as windows system and linux system. The advantage of operating system scheduling that supports multi-process scheduling is that, from the user side, the operating system can execute multiple applications initiated by the user at the same time, such as Under the windows operating system, users can surf the Internet, download movies, and edit word and other applications at the same time. [0003] For an operating system using a single-core CPU, only one application program can be executed at the same time. In order for the CPU to run multiple applications at the same time, it is necessary to allow the CPU to execute these multiple applications in turn in different time periods. ,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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/00G06F9/48
Inventor 王龙顺
Owner BEIJING XINWANG RUIJIE NETWORK TECH CO LTD