×

Byte level granularity buffer overflow detection for memory corruption detection architectures

  • US 9,766,968 B2
  • Filed: 03/25/2015
  • Issued: 09/19/2017
  • Est. Priority Date: 03/02/2015
  • Status: Active Grant
First Claim
Patent Images

1. A processor comprising:

  • a memory to store data from an application, wherein the memory comprises a memory corruption detection (MCD) table and a memory object; and

    a processor core coupled to the memory, wherein the processing core is to;

    receive, from the application, a memory access request to access data of the memory object with a contiguous memory block in the memory object of the memory, wherein the memory access request comprises;

    a pointer indicating a location in the memory of the memory object;

    a first MCD unique identifier (ID); and

    a usable memory region and an unusable memory region;

    retrieve data stored in the contiguous memory block based on the location indicated by the pointer;

    retrieve, from the MCD table, allocation information associated with the contiguous memory block, wherein the allocation information comprises;

    a second MCD unique ID associated with the contiguous memory block;

    a MCD border value indicating a size of a first memory region of the contiguous memory block;

    subtract the MCD border value from a size value of the contiguous memory block to obtain a border location value;

    identify a MCD border location in the contiguous memory block based on border location value, wherein the MCD border location indicates a boundary between the usable memory region and the unusable memory region; and

    send, to the application, a fault message when a fault event associated with the retrieved data occurs based on the allocation information.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×