# US 2024/0202315 A1 · Maintaining data confidentiality in shared computing environments

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

- Number: US 2024/0202315 A1
- Document ID: US20240202315A1
- Status: Published application
- Kind: A1
- Application number: 18/084,964
- Filed: 2022-12-20
- Published: 2024-06-20
- Earliest claimed: 2022-12-20
- Assignees: Mellanox Technologies, Ltd.
- Applicants: Mellanox Technologies, Ltd.
- Inventors: Ahmad Atamli; Ilan Pardo; Miriam Menes; Shahaf Shuler; Meni Orenbach; Uria Basher
- Web page: https://patentgrep.com/patent/US20240202315A1

## CPC

- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The technology disclosed herein enables selective clearing of memory regions upon a context switch. An example method includes the operations of: receiving a memory access request referencing a memory region; determining an identifier of a current execution context associated with the memory region; determining an identifier of a previous execution context specified by metadata associated with the memory region; responsive to determining that the identifier of the current execution context does not match the identifier of the previous execution context, updating the metadata associated with the memory region to store the identifier of the current execution context; clearing at least a part of the memory region; and processing the memory access request with respect to the memory region.

## Claims

### Claim 1

A system comprising:
a memory;
a processing device, communicably coupled to the memory, the processing device to perform operations comprising:
receiving a memory access request referencing a memory region;
determining an identifier of a current execution context associated with the memory region;
determining an identifier of a previous execution context specified by metadata associated with the memory region;
responsive to determining that the identifier of the current execution context does not match the identifier of the previous execution context, updating the metadata associated with the memory region to store the identifier of the current execution context;
clearing at least a part of the memory region; and
processing the memory access request with respect to the memory region.

### Claim 2 (depends on 1)

The system of claim 1, wherein clearing at least a part of the memory region is performed responsive to determining that a type of the memory access request is one of: a read request or a partial write request.

### Claim 3 (depends on 1)

The system of claim 1, wherein the memory region is represented by one of: a cache line, a memory page, a frame of a main memory, a frame of a stack, or a frame of a heap.

### Claim 4 (depends on 1)

The system of claim 1, wherein the current execution context is one of a thread or a process.

### Claim 5 (depends on 1)

The system of claim 1, wherein the current execution context is one of: a virtual machine or a container.

### Claim 6 (depends on 1)

The system of claim 1, wherein the current execution context is a trusted execution environment.

### Claim 7 (depends on 1)

The system of claim 1, wherein the processing device is one of: a central processing unit (CPU), a network interface controller (NIC), a data processing unit DPU, or a graphic processing unit (GPU).

### Claim 8

A method, comprising:
receiving, by a processing device, a memory access request referencing a memory region;
determining an identifier of a current execution context associated with the memory region;
determining an identifier of a previous execution context specified by metadata associated with the memory region;
responsive to determining that the identifier of the current execution context does not match the identifier of the previous execution context, updating the metadata associated with the memory region to store the identifier of the current execution context;
clearing at least a part of the memory region; and
processing the memory access request with respect to the memory region.

### Claim 9 (depends on 8)

The method of claim 8, wherein clearing at least a part of the memory region is performed responsive to determining that a type of the memory access request is one of: a read request or a partial write request.

### Claim 10 (depends on 8)

The method of claim 8, wherein the memory region is represented by one of: a cache line, a memory page, a frame of a main memory, a frame of a stack, or a frame of a heap.

### Claim 11 (depends on 8)

The method of claim 8, wherein the current execution context is one of a thread or a process.

### Claim 12 (depends on 8)

The method of claim 8, wherein the current execution context is one of: a virtual machine or a container.

### Claim 13 (depends on 8)

The method of claim 8, wherein the current execution context is a trusted execution environment.

### Claim 14 (depends on 8)

The method of claim 8, wherein the processing device is one of: a central processing unit (CPU), a network interface controller (NIC), a data processing unit DPU, or a graphic processing unit (GPU).

### Claim 15

A non-transitory machine-readable storage medium storing instructions which, when executed, cause a processing device to perform operations comprising:
receiving, by a processing device, a memory access request referencing a memory region;
determining an identifier of a current execution context associated with the memory region;
determining an identifier of a previous execution context specified by metadata associated with the memory region;
responsive to determining that the identifier of the current execution context does not match the identifier of the previous execution context, updating the metadata associated with the memory region to store the identifier of the current execution context;
clearing at least a part of the memory region; and
processing the memory access request with respect to the memory region.

### Claim 16 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein clearing at least a part of the memory region is performed responsive to determining that a type of the memory access request is one of: a read request or a partial write request.

### Claim 17 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the memory region is represented by one of: a cache line, a memory page, a frame of a main memory, a frame of a stack, or a frame of a heap.

### Claim 18 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the current execution context is one of a thread or a process.

### Claim 19 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the current execution context is one of: a virtual machine or a container.

### Claim 20 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the current execution context is a trusted execution environment.
