发明名称 |
Detecting memory corruption |
摘要 |
A device identifies, based on a program code instruction, an attempted write access operation to a fenced memory slab, where the fenced memory slab includes an alternating sequence of data buffers and guard buffers. The device assigns read-only protection to the fenced slab and invokes, based on the attempted write access operation, a page fault operation. When a faulting address of the attempted write operation is not an address for one of the multiple data buffers, the device performs a panic routine. When the faulting address of the attempted write operation is an address for one of the multiple data buffers, the device removes the read-only protection for the fenced slab and performs a single step processing routine for the program code instruction. |
申请公布号 |
US9411743(B2) |
申请公布日期 |
2016.08.09 |
申请号 |
US201314138977 |
申请日期 |
2013.12.23 |
申请人 |
Juniper Networks, Inc. |
发明人 |
Jacob Samuel;Paul Vijay |
分类号 |
G06F11/00;G06F12/10;G06F11/07 |
主分类号 |
G06F11/00 |
代理机构 |
Haritty & Harrity, LLP |
代理人 |
Haritty & Harrity, LLP |
主权项 |
1. A method comprising:
determining, by a device, that a program code instruction causes an attempted write access operation to a memory block; determining, by the device and after determining that the program code instruction causes the attempted write access operation, whether a faulting address, associated with the attempted write access operation, has an invalid offset; removing, by the device, a read-only protection for the memory block when the faulting address does not have the invalid offset; and performing, by the device and when the faulting address does not have the invalid offset, a single step processing routine to provide a debug trace for the program code instruction. |
地址 |
Sunnyvale CA US |