| CPC G06F 11/366 (2013.01) | 9 Claims |

|
1. A method for protecting application stacks, comprising:
designating, by an operating system (OS) module, respective ones of one or more stack dummies to respective ones of one or more application stacks in connection with a micro control unit (MCU);
activating, by the OS module, a memory protection unit (MPU) for each stack dummy among the one or more stack dummies, wherein the MPU for each stack dummy is arranged in the MCU, and wherein activating the MPU for each stack dummy includes placing, by the OS module, the stack dummy in an MPU area and enabling, by the OS module, the MPU area;
generating, by the MCU, an interrupt by recognizing, through a particular stack dummy, among the one or more stack dummies, whether a particular application stack, among the one or more application stacks, in which the particular stack dummy is designated overflows; and
performing, by the OS module, a measure of protection for the overflowed application stack according to whether the interrupt is generated.
|