Invention Grant
- Patent Title: Stack traces using shadow stack
-
Application No.: US16417493Application Date: 2019-05-20
-
Publication No.: US11294682B2Publication Date: 2022-04-05
- Inventor: Ben Niu , Gregory John Colombo , Weidong Cui , Jason Lin , Kenneth Dean Johnson
- Applicant: Microsoft Technology Licensing, LLC
- Applicant Address: US WA Redmond
- Assignee: Microsoft Technology Licensing, LLC
- Current Assignee: Microsoft Technology Licensing, LLC
- Current Assignee Address: US WA Redmond
- Agency: Watson Patents, PLC
- Agent Vladan M. Vasiljevic
- Main IPC: G06F9/38
- IPC: G06F9/38 ; G06F11/36

Abstract:
A program is executed using a call stack and shadow stack. The call stack includes frames having respective return addresses. The frames may also store variables and/or parameters. The shadow stack stores duplicates of the return addresses in the call stack. The call stack and the shadow stack are maintained by, (i) each time a function is called, adding a corresponding stack frame to the call stack and adding a corresponding return address to the shadow stack, and (ii) each time a function is exited, removing a corresponding frame from the call stack and removing a corresponding return address from the shadow stack. A backtrace of the program's current call chain is generated by accessing the return addresses in the shadow stack. The outputted backtrace includes the return addresses from the shadow stack and/or information about the traced functions that is derived from the shadow stack's return addresses.
Public/Granted literature
- US20200371809A1 STACK TRACES USING SHADOW STACK Public/Granted day:2020-11-26
Information query