# US 2023/0273846 A1 · Hardware apparatuses and methods for memory corruption detection

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0273846 A1
- Document ID: US20230273846A1
- Status: Published application
- Kind: A1
- Application number: 18/313,905
- Filed: 2023-05-08
- Published: 2023-08-31
- Earliest claimed: 2015-12-21
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Tomer Stark; Ron Gabor; Joseph Nuzman; Raanan Sade; Bryant E. Bigbee
- Web page: https://patentgrep.com/patent/US20230273846A1

## CPC

- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 9/38: Concurrent instruction execution, e.g. pipeline or look ahead
- G06F 11/073: {in a memory management context, e.g. virtual memory or cache management (memory management G06F12/00; testing of static memory units G11C29/00)}
- G06F 12/00: Accessing, addressing or allocating within memory systems or architectures (digital input from, or digital output to record carriers, e.g. to disk storage units, G06F3/06)
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 21/60: Protecting data
- G06F 12/145: {the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1052: Security improvement
- G06F 2212/656: Address space sharing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and apparatuses relating to memory corruption detection are described. In one embodiment, a hardware processor includes an execution unit to execute an instruction to request access to a block of a memory through a pointer to the block of the memory, and a memory management unit to allow access to the block of the memory when a memory corruption detection value in the pointer is validated with a memory corruption detection value in the memory for the block, wherein a position of the memory corruption detection value in the pointer is selectable between a first location and a second, different location.

## Claims

### Claim 1

A processor comprising:
decode circuitry to decode a load instruction, the load instruction to operate on a pointer, the pointer comprising an address to a block of data in memory and a first value; and
circuitry coupled with the decode circuitry, the circuitry, based on decode of the load instruction by the decode circuitry, to:
determine whether the first value matches a second value corresponding to the block of data; and
load the block of data from the memory when the first value matches the second value.

### Claim 2 (depends on 1)

The processor of claim 1, further comprising a configuration register to store data to indicate a number of bits of the first value.

### Claim 3 (depends on 1)

The processor of claim 1, further comprising a configuration register to store data to indicate a number of bits of the first value and to store data to indicate a position of the first value.

### Claim 4 (depends on 1)

The processor of claim 1, further comprising a configuration register to have a field to indicate which bits of the pointer are to include the first value.

### Claim 5 (depends on 1)

The processor of claim 1, further comprising a configuration register to store data to control whether the circuitry is to determine whether the first value matches the second value.

### Claim 6 (depends on 1)

The processor of claim 1, further comprising a first set of one or more configuration registers to store data to control whether the circuitry is to determine whether the first value matches the second value and to store data to indicate a number of bits of the first value.

### Claim 7 (depends on 6)

The processor of claim 6, further comprising a second set of one or more configuration registers to store data to indicate a number of bits of a third value to be included in a second pointer along with a second address.

### Claim 8 (depends on 1)

The processor of claim 1, wherein the first value does not include a most significant bit of the pointer.

### Claim 9 (depends on 8)

The processor of claim 8, wherein the most significant bit of the pointer is to have a value of one for an operating system.

### Claim 10 (depends on 1)

The processor of claim 1, wherein the pointer is to have a plurality of most significant canonical bits that are all to have a same value.

### Claim 11 (depends on 1)

The processor of claim 1, wherein the first value comprises a most significant bit of the pointer.

### Claim 12 (depends on 1)

The processor of claim 1, wherein the processor is a reduced instruction set computing (RISC) processor, and wherein the first value comprises five bits.

### Claim 13 (depends on 12)

The processor of claim 12, wherein the first value comprises ten bits.

### Claim 14 (depends on 1)

The processor of claim 1, wherein the block of data is a 128-bit block of data.

### Claim 15 (depends on 1)

The processor of claim 1, wherein the processor is to indicate if the first value does not match the second value.

### Claim 16

A computer system comprising:
a dynamic random access memory (DRAM);
a processor coupled with the DRAM, the processor comprising:
decode circuitry to decode a load instruction, the load instruction to operate on a pointer, the pointer comprising an address to a block of data in memory and a first value; and
circuitry coupled with the decode circuitry, the circuitry, based on decode of the load instruction by the decode circuitry, to:
determine whether the first value matches a second value corresponding to the block of data; and
load the block of data from the memory when the first value matches the second value.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the computer system further comprises a mass storage device coupled with the processor, and wherein the processor further comprises a configuration register to have a field to indicate which bits of the pointer are to include the first value.

### Claim 18 (depends on 16)

The computer system of claim 16, wherein the computer system further comprises a communication device coupled with the processor, and wherein the processor further comprises:
a first set of one or more configuration registers to store data to control whether the circuitry is to determine whether the first value matches the second value and to store data to indicate a number of bits of the first value; and
a second set of one or more configuration registers to store data to indicate a number of bits of a third value to be included in a second pointer along with a second address.

### Claim 19 (depends on 16)

The computer system of claim 16, wherein the computer system further comprises a communication device coupled with the processor, wherein the first value comprises five bits, and wherein the pointer is to have a plurality of most significant canonical bits that are all to have a same value.

### Claim 20

A method comprising:
decoding a load instruction, the load instruction operating on a pointer, the pointer comprising an address to a block of data in memory and a first value;
determining whether the first value matches a second value corresponding to the block of data; and
loading the block of data from the memory when the first value matches the second value.
