US 12,235,750 B2
Method for protecting application stacks
Jun-Ho Cho, Seoul (KR)
Assigned to HYUNDAI AUTOEVER CORP., Seoul (KR)
Filed by HYUNDAI AUTOEVER CORP., Seoul (KR)
Filed on Dec. 7, 2022, as Appl. No. 18/076,948.
Claims priority of application No. 10-2021-0175707 (KR), filed on Dec. 9, 2021.
Prior Publication US 2023/0185697 A1, Jun. 15, 2023
Int. Cl. G06F 11/00 (2006.01); G06F 11/362 (2025.01)
CPC G06F 11/366 (2013.01) 9 Claims
OG exemplary drawing
 
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.