Saving method and device as well as tempering detection method and device for process context
A process context and storage method technology, applied in the field of process context storage, tamper detection methods and devices, can solve the problem of inability 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 the first embodiment, three context storage spaces are allocated for the specified process, and the context of the specified 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, such as Figure 5 As shown, it specifically includes the following processing steps:
[0050] Step S501: It is determined that a process switch needs to be performed, that is, it needs 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 stored 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 referred to as the first context storage space, the second context storage space and the third cont...
Embodiment 2
[0067] In the current operating system, such as Image 6 As shown, for a process, the context storage space allocated for it includes two parts: one is the process control block, which is used to store the first part of the process context in the process context, including some control information that controls the operation of the process, such as the process identifier , Process current running status and process priority, etc., by storing these external characteristics of the process in it, to describe the process of movement change process, so that the system uses the control information saved in the process control block to control and manage the process; another It is the process stack, used to save the second part of the process context in the process context, that is, other process contexts other than the control information saved in the process control block; and there is also a pointer saved in the process control block that points to the process The allocated process ...
Embodiment 3
[0102] Based on the same inventive concept, according to the process context saving method provided in the above-mentioned embodiment of the present invention, correspondingly, Embodiment 3 of the present invention also provides a process context saving device, the schematic diagram of which is as Picture 11 As shown, specifically including:
[0103] The first obtaining unit 1101 is configured to obtain the process context of the currently executing process when process switching is required;
[0104] The saving unit 1102 is configured to save the acquired process context in at least two context storage spaces allocated for the currently executing process, respectively.
[0105] Preferably, the saving unit 1102 is specifically configured to save the acquired first part of the process context in the process context to the main process control block and the backup process control block allocated for the currently executing process, and to save The acquired second part of the process c...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 