# US 2025/0094275 A1 · Efficient security metadata encoding in error correcting code (ecc) memory without dedicated ecc bits

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

- Number: US 2025/0094275 A1
- Document ID: US20250094275A1
- Status: Published application
- Kind: A1
- Application number: 18/808,871
- Filed: 2024-08-19
- Published: 2025-03-20
- Earliest claimed: 2022-08-11
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Sergej Deutsch; David M. Durham; Karanvir Grewal; Rajat Agarwal
- Web page: https://patentgrep.com/patent/US20250094275A1

## CPC

- G06F 11/1004: {to protect a block of data words, e.g. CRC or checksum (G06F11/1076 takes precedence; security arrangements for protecting computers or computer systems against unauthorized activity G06F21/00)}
- G06F 3/0622: {in relation to access}
- G06F 3/0629: {Configuration or reconfiguration of storage systems}
- G06F 3/0673: {Single storage device}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The technology disclosed herein comprises a processor; a memory to store data and a plurality of error correcting code (ECC) bits associated with the data; and a memory controller coupled to the memory, the memory controller to receive a write request from the processor and, when an access control field is selected in the write request, perform an exclusive OR (XOR) operation on the plurality of ECC bits and a fixed encoding pattern to generate a plurality of encoded ECC bits and store the data and the plurality of encoded ECC bits in the memory.

## Claims

### Claim at position 1

-26. (canceled)

### Claim 27

An apparatus comprising:
a processor;
a memory to store data and a plurality of error correcting code (ECC) bits associated with the data; and
a memory controller coupled with the memory, the memory controller to:
receive a write request from the processor;
perform an exclusive OR (XOR) operation on the plurality of ECC bits and a fixed encoding pattern to generate a plurality of encoded ECC bits when an access control field is selected in the write request; and
store the data and the plurality of encoded ECC bits in the memory.

### Claim 28 (depends on 27)

The apparatus of claim 27, wherein the access control field comprises security metadata.

### Claim 29 (depends on 28)

The apparatus of claim 28, comprising the processor to request the memory controller to store the security metadata in the memory on write requests and to validate the security metadata on read requests.

### Claim 30 (depends on 28)

The apparatus of claim 28, wherein the security metadata comprises one of a trusted execution environment (TEE) bit and a trusted domain (TD) bit.

### Claim 31 (depends on 27)

The apparatus of claim 27, the memory controller to decode the plurality of ECC bits and return the data to the processor when no error is detected in the decoded plurality of ECC bits.

### Claim 32 (depends on 31)

The apparatus of claim 31, the memory controller to, when an error is detected in the decoded plurality of ECC bits, raise an exception when an ECC syndrome matches a fixed encoding pattern syndrome.

### Claim 33 (depends on 31)

The apparatus of claim 31, the memory controller to, when an error is detected in the decoded plurality of ECC bits, attempt an error correction when an ECC syndrome does not match a fixed encoding pattern syndrome.

### Claim 34 (depends on 33)

The apparatus of claim 33, the memory controller to return corrected data to the processor when the attempt at error correction is successful.

### Claim 35 (depends on 33)

The apparatus of claim 33, the memory controller to return an uncorrectable error code to the processor when the attempt at error correction is not successful.

### Claim 36 (depends on 27)

The apparatus of claim 27, the memory controller to receive a read request from the processor, read the data and the plurality of encoded ECC bits from the memory and, when an access control field is selected in the read request, perform an XOR operation on the plurality of encoded ECC bits and the fixed encoding pattern to generate the plurality of ECC bits.

### Claim 37 (depends on 27)

The apparatus of claim 27, wherein the access control field is to select one of a plurality of fixed encoding patterns.

### Claim 38 (depends on 27)

The apparatus of claim 27, the memory controller to receive the write request from the processor and, when the access control field is not selected in the write request, store the data and the plurality of ECC bits in the memory, and to receive a read request from the processor, and when the access control field is selected in the read request, decode the plurality of ECC bits and detect an error.

### Claim 39

A method comprising:
receiving, by a memory controller, a write request from a processor, the write request including data to be stored in a memory and selecting an access control field;
performing an exclusive OR (XOR) operation on a plurality of ECC bits associated with the data and a fixed encoding pattern to generate a plurality of encoded ECC bits based on the access control field being selected in the write request; and
storing the data and the plurality of encoded ECC bits in the memory.

### Claim 40 (depends on 39)

The method of claim 39, wherein the access control field comprises security metadata.

### Claim 41 (depends on 39)

The method of claim 39, comprising receiving the write request from the processor and, when the access control field is not selected in the write request, storing the data and the plurality of ECC bits in the memory, and receiving a read request from the processor, and when the access control field is selected in the read request, decoding the plurality of ECC bits and detecting an error.

### Claim 42 (depends on 39)

The method of claim 39, comprising, receiving, by the memory controller, a read request from the processor, reading the data and the plurality of encoded ECC bits from the memory and, when an access control field is selected in the read request, performing an XOR operation on the plurality of encoded ECC bits and the fixed encoding pattern to generate the plurality of ECC bits.

### Claim 43 (depends on 42)

The method of claim 42, comprising decoding the plurality of ECC bits and returning the data to the processor when no error is detected in the decoded plurality of ECC bits.

### Claim 44

At least one machine-readable storage medium storing instructions which, when executed by at least one processing device, cause the at least one processing device to perform operations, including to:
receive a write request from a processor, the write request including data to be stored in a memory;
perform an exclusive OR (XOR) operation on a plurality of ECC bits associated with the data and a fixed encoding pattern to generate a plurality of encoded ECC bits when an access control field is selected in the write request; and
store the data and the plurality of encoded ECC bits in the memory.

### Claim 45 (depends on 44)

The at least one machine-readable storage medium of claim 44, comprising instructions which, when executed by the at least one processing device, cause the at least one processing device to: receive a read request from a processor, read the data and the plurality of encoded ECC bits from the memory and, when an access control field is selected in the read request, perform an XOR operation on the plurality of encoded ECC bits and the fixed encoding pattern to generate the plurality of ECC bits.

### Claim 46 (depends on 45)

The at least one machine-readable storage medium of claim 45, comprising instructions which, when executed by the at least one processing device, cause the at least one processing device to: decode the plurality of ECC bits and return the data to the processor when no error is detected in the decoded plurality of ECC bits.

### Claim 47 (depends on 46)

The at least one machine-readable storage medium of claim 46, comprising instructions which, when executed by the at least one processing device, cause the at least one processing device to: when an error is detected in the decoded plurality of ECC bits, raise an exception when an ECC syndrome matches a fixed encoding pattern syndrome.
