Before revision: The typical solution for this problem is to pop entries from the shadow stack until a matching return address in found, and to only terminate the program when no match is found in the shadow stack.
After revision: The typical solution for this problem is to pop entries from the shadow stack until a matchisg return address in found, and to only terminate the program when no match is found in the shadow stack.