# US 2017/0371809 A1 · Encrypted memory access using page table attributes

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

- Number: US 2017/0371809 A1
- Document ID: US20170371809A1
- Status: Published application
- Kind: A1
- Application number: 15/193,146
- Filed: 2016-06-27
- Published: 2017-12-28
- Earliest claimed: 2016-06-27
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Melvin K. Benedict
- Web page: https://patentgrep.com/patent/US20170371809A1

## CPC

- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G11C 7/24: Memory cell safety or protection circuits, e.g. arrangements for preventing inadvertent reading or writing; Status cells; Test cells
- G06F 12/1475: {in a virtual system, e.g. with translation means}
- G06F 2212/1052: Security improvement
- G06F 2212/402: Encrypted data
- G11C 2029/4402: {Internal storage of test result, quality data, chip identification, repair information}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

Encrypted memory access using page table attributes is disclosed. One example is a memory system including a memory controller at a memory interface. The memory controller includes an encryptor to control a plurality of memory access keys respectively associated with memory regions, where each memory region is allocated to a respective client, and an access manager to receive an access request from a client, the access request including a client access key to access a memory element. The access manager looks up a memory access key from a page table attribute associated with a physical address of the memory element, and determines if the access request is valid by comparing the client access key with the memory access key associated with the memory region that includes the memory element. Based on the determination and a mode of operation, the access manager provides a response to the access request.

## Claims

### Claim 1

A memory system comprising:
memory elements organized into memory regions;
a memory controller at a memory interface, the memory controller comprising:
an encryptor to control a plurality of memory access keys respectively associated with the memory regions, wherein each memory region is allocated to a respective client;
an access manager to:
receive an access request from a client, the access request including a client access key to access a memory element,
look up a memory access key from a page table attribute associated with a physical address of the memory element, and
determine if the access request is valid by comparing the client access key with the memory access key associated with the memory region that includes the memory element, and
provide a response to the access request based on the determination and a mode of operation.

### Claim 2 (depends on 1)

The memory system of claim 1, wherein the access manager is to determine that the access request is not valid by identifying a page table miss in a page table that includes the page table attribute, and is to determine that the memory element is accessible to a new client, and wherein the encryptor is to update the memory access key to conform to a new client access key associated with the new client.

### Claim 3 (depends on 1)

The memory system of claim 1, wherein the mode of operation is isolation only, and wherein the access manager is to determine one of:
the access request is valid, and the encryptor is to provide unencrypted data to the client, and
the access request is not valid, and the encryptor is to provide scrambled data to the client.

### Claim 4 (depends on 1)

The memory system of claim 1, wherein the mode of operation is encryption and error correction only, and wherein the encryptor is to perform encryption and error correction functions, and wherein, upon a determination that the access request is not valid, the access manager is to generate an alert that a fatal uncorrectable memory error has occurred.

### Claim 5 (depends on 1)

The memory system of claim 1, wherein the mode of operation is isolation, encryption and error correction, and wherein the access manager is to determine one of:
the access request is valid, and the encryptor is to provide unencrypted data to the client, and
the access request is not valid, and the encryptor is to provide scrambled data to the client, and wherein the access manager is to generate an alert that a fatal uncorrectable memory error has occurred.

### Claim 6 (depends on 1)

The memory system of claim 1, wherein the client is one of a user, an application, a process, a driver, and a multiprocessor with virtualized clients.

### Claim 7 (depends on 6)

The memory system of claim 6, wherein the client access key is unique to each client of the plurality of clients.

### Claim 8 (depends on 1)

The memory system of claim 1, wherein the client access key includes one of a process identifier, a thread identifier, an application identifier, and a context definition.

### Claim 9 (depends on 1)

The memory system of claim 1, wherein the memory regions comprise non-volatile shared memory.

### Claim 10

A method comprising:
controlling, via a memory controller at a memory interface, a plurality of memory access keys respectively associated with memory regions of the memory system, wherein each memory region is allocated to a respective client;
receiving, via the memory controller, an access request from a client, the access request including a client access key to access a memory element included in a memory region;
looking up, via the memory controller, a memory access key from a page table attribute associated with a physical address of the memory element;
determining, via the memory controller, if the access request is valid by comparing the client access key with the memory access key associated with the memory region that includes the memory element; and
providing, via the memory controller, a response to the access request based on the determination and a mode of operation.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
determining that the access request is not valid by identifying a page table miss in the page table.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
determining that the memory element is accessible to a new client; and
updating the memory access key to conform to a new client access key associated with the new client.

### Claim 13 (depends on 10)

The method of claim 10, wherein the mode of operation is isolation only, and further comprising:
providing unencrypted data to the client upon a determination that the access request is valid, and
providing scrambled data to the client upon a determination that the access request is not valid.

### Claim 14 (depends on 10)

The method of claim 10, wherein the mode of operation is encryption and error correction only, and further comprising:
performing encryption and error correction functions, and upon a determination that the access request is not valid, generating an alert that a fatal uncorrectable memory error has occurred.

### Claim 15 (depends on 10)

The method of claim 10, further comprising.
identifying an unauthorized access request from a client; and
restricting access to the memory region associated with the unauthorized access request.

### Claim 16 (depends on 10)

The method of claim 10, wherein the client access key is unique to each client of a plurality of clients.

### Claim 17

A programmable memory controller comprising:
a non-transitory computer readable medium that stores configuration data for logic to enable the memory controller to:
control a plurality of memory access keys respectively associated with memory regions of the memory system, wherein each memory region is allocated to a respective client;
receive an access request from a client, the access request including a client access key to access a memory element included in a memory region;
look up a memory access key from a page table attribute associated with a physical address of the memory element;
determine if the access request is valid by comparing the client access key with the memory access key associated with the memory region that includes the memory element; and
provide a response to the access request based on the determination and a mode of operation, wherein the mode of operation is one of isolation only, encryption and error correction only, or a combination of isolation, encryption and error correction.

### Claim 18 (depends on 17)

The memory controller of claim 17, wherein the computer readable medium stores configuration data for logic to:
identify a page table miss in the page table; and
determine that the access request is not valid based on the identified page table miss.

### Claim 19 (depends on 18)

The memory controller of claim 18, wherein the computer readable medium stores configuration data for logic to:
determine that the memory element is accessible to a new client; and
update the memory access key to conform to a new client access key associated with the new client.

### Claim 20 (depends on 17)

The memory controller of claim 17, wherein the client is an application, and wherein the computer readable medium stores configuration data for logic to:
identify an unauthorized access request from the application; and
generate an interrupt to an operating system to terminate the application.
