# US 2021/0081333 A1 · Protection system and method for a memory

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

- Number: US 2021/0081333 A1
- Document ID: US20210081333A1
- Status: Published application
- Kind: A1
- Application number: 17/010,072
- Filed: 2020-09-02
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Assignees: STMicroelectronics (Grand Ouest) SAS
- Applicants: STMicroelectronics (Grand Ouest) SAS
- Inventors: Michel Jaouen
- Web page: https://patentgrep.com/patent/US20210081333A1

## CPC

- G06F 12/1441: {for a range}
- G06F 12/1458: {by checking the subject access rights}
- G06F 9/4812: {by interrupt, e.g. masked}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- G06F 2212/1052: Security improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An embodiment system for protecting a memory comprises security software configured to determine, from an exception generated during an unauthorized action attempt in the memory, whether the security software can perform the action.

## Claims

### Claim 1

A system for protecting a memory, the system comprising:
security software configured to determine, from an exception generated in response to an unauthorized attempt to perform an action in the memory, whether the security software is authorized to perform the action.

### Claim 2 (depends on 1)

The system according to claim 1, wherein the unauthorized attempt is performed by other software.

### Claim 3 (depends on 1)

The system according to claim 1, wherein the security software is configured to obtain characteristics of the action from the generated exception.

### Claim 4 (depends on 3)

The system according to claim 3, wherein the obtained characteristics comprise one or more of: an address of the memory targeted by the unauthorized attempt, an identification of software attempting the action in the memory, the action that other software is attempting to perform, an operator code of the action, or registers of the action.

### Claim 5 (depends on 3)

The system according to claim 3, wherein the security software is configured to compare the obtained characteristics of the action to information representative of actions that can be performed in the memory.

### Claim 6 (depends on 5)

The system according to claim 5, wherein the information is accessible only by the security software.

### Claim 7 (depends on 1)

The system according to claim 1, further comprising a memory protection unit configured to define regions in the memory and to assign protection levels to the regions.

### Claim 8 (depends on 7)

The system according to claim 7, wherein the exception is generated by the memory protection unit.

### Claim 9

A method for protecting a memory, the method comprising:
generating an exception in response to an unauthorized attempt to perform an action in the memory; and
determining, by security software, in response to the exception, whether the security software is authorized to perform the action.

### Claim 10 (depends on 9)

The method according to claim 9, further comprising decrypting, by the security software, the exception to obtain characteristics of the action.

### Claim 11 (depends on 9)

The method according to claim 9, further comprising performing, by the security software, the action.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the unauthorized attempt is performed by other software.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the other software continues its execution after the security software performs the action.

### Claim 14 (depends on 9)

The method according to claim 9, wherein the determining further comprises:
obtaining, by the security software, characteristics of the action from the generated exception; and
compare, by the security software, the obtained characteristics of the action to information representative of actions that can be performed in the memory.

### Claim 15

A system comprising:
a first non-transitory memory storage comprising privileged memory and non-privileged memory;
a hardware memory protection unit in communication with the first non-transitory memory storage, wherein the hardware memory protection unit is configured to generate an exception in response to an unauthorized attempt to perform an action in the privileged memory in the first non-transitory memory storage; and
a second non-transitory memory storage comprising security software in communication with the hardware memory protection unit, wherein the security software is configured to determine, in response to the exception, whether the security software is authorized to perform the action, and to:
perform the action in response to determining the security software is authorized to perform the action; or
prohibit performance of the action in response to determining the security software is not authorized to perform the action.

### Claim 16 (depends on 15)

The system according to claim 15, wherein the first and second non-transitory memory storages are a same memory storage.

### Claim 17 (depends on 15)

The system according to claim 15, wherein the security software configured to determine comprises the security software configured to:
obtain characteristics of the action from the generated exception; and
compare the obtained characteristics of the action to information representative of actions that can be performed in the first non-transitory memory storage.

### Claim 18 (depends on 17)

The system according to claim 17, wherein the obtained characteristics comprise one or more of: an address of a memory location targeted by the unauthorized attempt, an identification of software attempting the action, the action that other software is attempting to perform, an operator code of the action, or registers of the action.

### Claim 19 (depends on 15)

The system according to claim 15, wherein the unauthorized attempt is performed by other software.

### Claim 20 (depends on 15)

The system according to claim 15, wherein the hardware memory protection unit is further configured to:
define a plurality of regions in the first non-transitory memory storage; and
assign a privileged protection level or a non-privileged protection level to each of the regions.
