# US 2023/0410882 A1 · Defense against row hammer attacks

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

- Number: US 2023/0410882 A1
- Document ID: US20230410882A1
- Status: Published application
- Kind: A1
- Application number: 17/842,606
- Filed: 2022-06-16
- Published: 2023-12-21
- Earliest claimed: 2022-06-16
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Akash VERMA; Victor VAN DER VEEN; Joona Verneri KANNISTO; Marcel SELHORST
- Web page: https://patentgrep.com/patent/US20230410882A1

## CPC

- G06F 12/145: {the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism}
- G11C 11/4078: Safety or protection circuits, e.g. for preventing inadvertent or unauthorised reading or writing; Status cells; Test cells (protection of memory contents during checking or testing G11C29/52)
- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G11C 11/40615: {Internal triggering or timing of refresh, e.g. hidden refresh, self refresh, pseudo-SRAMs}
- G11C 11/40618: {Refresh operations over multiple banks or interleaving}
- G11C 11/4087: {Address decoders, e.g. bit - or word line decoders; Multiple line decoders}
- G06F 2212/1052: Security improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

The present disclosure generally relates to techniques for defending against row hammer attacks. Some aspects of the present disclosure include systems and techniques for defending against row hammer attacks using dynamic assignment of guard rows. One example computing device for memory protection generally includes at least one memory and one or more processors coupled to the at least one memory and configured to: receive a first memory assignment for a service; determine, in response to receiving the first memory assignment, that the service is associated with a type of data; assign guard rows adjacent to a memory subset to protect the memory subset based on the determination; and dedicate at least a portion of the memory subset for storage of data for the service.

## Claims

### Claim 1

A computing device, comprising:
at least one memory; and
one or more processors coupled to the at least one memory and configured to:
receive a first memory assignment for a service;
determine, in response to receiving the first memory assignment, that the service is associated with a type of data;
assign guard rows adjacent to a memory subset to protect the memory subset based on the determination; and
dedicate at least a portion of the memory subset for storage of data for the service.

### Claim 2 (depends on 1)

The computing device of claim 1, wherein each of the guard rows comprises at least a portion of a row of memory that is user unaccessable.

### Claim 3 (depends on 1)

The computing device of claim 1, wherein each of the guard rows comprises at least a portion of a row of memory that is not assigned for data storage for any service.

### Claim 4 (depends on 1)

The computing device of claim 1, wherein, to assign the guard rows, the one or more processors are configured to:
assign at least a portion of a first row in a physical space of a memory as a first guard row; and
assign at least a portion of a second row in the physical space of the memory as a second guard row, wherein the memory subset comprises memory cells between the first guard row and the second guard row.

### Claim 5 (depends on 1)

The computing device of claim 1, wherein the service comprises implementing a virtual machine.

### Claim 6 (depends on 1)

The computing device of claim 1, wherein only the portion of the memory subset is dedicated for storage of data for the service.

### Claim 7 (depends on 1)

The computing device of claim 1, wherein the one or more processors are configured to:
receive a second memory assignment for the service;
determine that the memory subset can accommodate storage of data for the second memory assignment; and
dedicate another portion of the memory subset for the second memory assignment.

### Claim 8 (depends on 1)

The computing device of claim 1, wherein the one or more processors are configured to identify that the first memory assignment is not associated with memory shared with another service, wherein the memory subset is protected based on the identification.

### Claim 9 (depends on 1)

The computing device of claim 1, wherein the one or more processors are configured to identify the memory subset and the guard rows based on a mapping between a physical address associated with the service and physical memory rows.

### Claim 10 (depends on 1)

The computing device of claim 1, wherein the type of data includes sensitive data.

### Claim 11 (depends on 10)

The computing device of claim 10, wherein the sensitive data includes personal data or financial data.

### Claim 12

A method for memory protection, comprising:
receiving a first memory assignment for a service;
determining, in response to receiving the first memory assignment, that the service is associated with a type of data;
assigning guard rows adjacent to a memory subset to protect the memory subset based on the determination; and
dedicating at least a portion of the memory subset for storage of data for the service.

### Claim 13 (depends on 12)

The method of claim 12, wherein each of the guard rows comprises at least a portion of a row of memory that is user unaccessable.

### Claim 14 (depends on 12)

The method of claim 12, wherein each of the guard rows comprises at least a portion of a row of memory that is not assigned for data storage for any service.

### Claim 15 (depends on 12)

The method of claim 12, wherein assigning the guard rows includes:
assigning at least a portion of a first row in a physical space of a memory as a first guard row; and
assigning at least a portion of a second row in the physical space of the memory as a second guard row, wherein the memory subset comprises memory cells between the first guard row and the second guard row.

### Claim 16 (depends on 12)

The method of claim 12, wherein the service comprises implementing a virtual machine.

### Claim 17 (depends on 12)

The method of claim 12, wherein only the portion of the memory subset is dedicated for storage of data for the service.

### Claim 18 (depends on 12)

The method of claim 12, further comprising:
receiving a second memory assignment for the service;
determining that the memory subset can accommodate storage of data for the second memory assignment; and
dedicating another portion of the memory subset for the second memory assignment.

### Claim 19 (depends on 12)

The method of claim 12, further comprising identifying that the first memory assignment is not associated with memory shared with another service, wherein the memory subset is protected based on the identification.

### Claim 20 (depends on 12)

The method of claim 12, further comprising identifying the memory subset and the guard rows based on a mapping between a physical address associated with the service and physical memory rows.

### Claim 21 (depends on 12)

The method of claim 12, wherein the type of data includes sensitive data.

### Claim 22 (depends on 21)

The method of claim 21, wherein the sensitive data includes personal data or financial data.

### Claim 23

A computer-readable medium having instructions stored thereon, that when executed by one or more processors, cause the one or more processors to:
receive a first memory assignment for a service;
determine, in response to receiving the first memory assignment, that the service is associated with a type of data;
assign guard rows adjacent to a memory subset to protect the memory subset based on the determination; and
dedicate at least a portion of the memory subset for storage of data for the service.

### Claim 24

An apparatus for memory protection, comprising:
means for receiving a first memory assignment for a service;
means for determining, in response to receiving the first memory assignment, that the service is associated with a type of data;
means for assigning guard rows adjacent to a memory subset to protect the memory subset based on the determination; and
means for dedicating at least a portion of the memory subset for storage of data for the service.
