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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 