| CPC G06F 12/0871 (2013.01) [G06F 12/0882 (2013.01)] | 6 Claims |

|
1. An error detecting method of a kernel memory in real time, comprising:
registering a management object process;
allocating a memory area to a memory address space of the kernel with respect to the management object process;
detecting a memory error for the memory area using an interrupt handler of the kernel; and
deallocating the memory area,
wherein the allocating of the memory area includes:
allocating the memory area to a normal memory area of the memory address space of the kernel if a process requested to be executed does not correspond to the management object process;
allocating the memory area to a detection object memory area of the memory address space of the kernel if the process requested to be executed corresponds to the management object process;
setting a red zone in the detection object memory area;
allocating a shadow memory area for the detection object memory area to the memory address space of the kernel; and
setting a page access permission to a virtual address of the memory address space of the kernel to be inaccessible,
wherein the detecting of the memory error includes:
determining whether the virtual address that tried to be accessed is the detection object memory area or the normal memory area by means of a memory error test by an interrupt handler of the kernel, and
wherein if the virtual address corresponds to the detection object memory area, the shadow memory area is tested to check the memory error, and if the test determines there is not an error, after changing the page access permission to the virtual address to be allowable, a single instruction is performed, and then the page access permission to the virtual address is reset to be inaccessible.
|