# US 2020/0004953 A1 · Encoded inline capabilities

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

- Number: US 2020/0004953 A1
- Document ID: US20200004953A1
- Status: Published application
- Kind: A1
- Application number: 16/024,547
- Filed: 2018-06-29
- Published: 2020-01-02
- Earliest claimed: 2018-06-29
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Michael LEMAY; David M. DURHAM; Michael E. KOUNAVIS; Barry E. HUNTLEY; Vedvyas SHANBHOGUE; Jason W. BRANDT; Josh TRIPLETT; Gilbert NEIGER; Karanvir GREWAL; Baiju V. PATEL; Ye ZHUANG; Jr-Shian TSAI; Vadim SUKHOMLINOV; Ravi SAHITA; Mingwei ZHANG; James C. FARWELL; Amitabh DAS; Krishna BHUYAN
- Web page: https://patentgrep.com/patent/US20200004953A1

## CPC

- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 9/45516: {Runtime code conversion or optimisation}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/023: {Free address space management}
- G06F 12/1441: {for a range}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- H04L 9/0897: {involving additional devices, e.g. trusted platform module [TPM], smartcard or USB}
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2212/1008: Correctness of operation, e.g. memory ordering
- G06F 2212/1052: Security improvement
- G06F 2221/034: Test or assess a computer or a system
- H04L 2209/127: Trusted platform modules [TPM]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Disclosed embodiments relate to encoded inline capabilities. In one example, a system includes a trusted execution environment (TEE) to partition an address space within a memory into a plurality of compartments each associated with code to execute a function, the TEE further to assign a message object in a heap to each compartment, receive a request from a first compartment to send a message block to a specified destination compartment, respond to the request by authenticating the request, generating a corresponding encoded capability, conveying the encoded capability to the destination compartment, and scheduling the destination compartment to respond to the request, and subsequently, respond to a check capability request from the destination compartment by checking the encoded capability and, when the check passes, providing a memory address to access the message block, and, otherwise, generating a fault, wherein each compartment is isolated from other compartments.

## Claims

### Claim 1

A system comprising a memory and a trusted execution environment (TEE), the TEE to:
configure a plurality of compartments in an address space of the memory, each compartment comprising a private memory and a pointer to a message block in a shared heap;
receive a request to send a message from a first compartment, the request comprising the pointer to the message block and a destination compartment;
respond to the request by authenticating the request, generating a corresponding encoded capability, conveying the encoded capability to the destination compartment, and scheduling the destination compartment to respond to the request; and
subsequently, receive and respond to a check capability request from the destination compartment by checking the encoded capability and, when the check passes, providing a memory address to access the message block, and, otherwise, generating a fault;
wherein each compartment is isolated from other compartments, is unable to access private memory regions of other compartments, and is unable to access any message objects in the shared heap that are assigned to other compartments.

### Claim 2 (depends on 1)

The system of claim 1, wherein bounds of the private memory regions and of the shared heap are stored in a base and mask pair of registers.

### Claim 3 (depends on 1)

The system of claim 1, wherein the TEE is further to authenticate the message received from the first compartment by assuring that the pointer to the message block is bounded within a heap address range assigned to the first compartment.

### Claim 4 (depends on 1)

The system of claim 1, wherein the TEE is further to check that the message block is disposed at a heap location bounded within a heap address range assigned to the destination compartment.

### Claim 5 (depends on 1)

The system of claim 1, further comprising a second memory and a second TEE communicatively coupled to the TEE, the second TEE to configure a second plurality of compartments in a second address space of the second memory, the second TEE further to receive and respond to a second request to send a message block from one of the second plurality of compartments to one of the plurality of compartments, the second TEE further to authenticate the second request, generate a corresponding second encoded capability, and cause the second encoded capability to be conveyed to the destination compartment through the TEE.

### Claim 6 (depends on 1)

The system of claim 1, wherein the TEE uses an Advanced Encryption Standard cipher when generating the corresponding encoded capability.

### Claim 7 (depends on 1)

The system of claim 1, wherein the conveyed encoded capability includes a message authentication code (MAC), and wherein the TEE, when responding to the check capability request, regenerates the MAC and compares the conveyed MAC to the regenerated MAC.

### Claim 8

A method performed by a trusted execution environment (TEE), the method comprising:
configuring a plurality of compartments in an address space of a memory, each compartment comprising a private memory and a pointer to a message block in a shared heap;
receiving a request to send a message from a first compartment, the request comprising the pointer to the message block and a destination compartment specifier;
responding to the request by authenticating the request, generating a corresponding encoded capability, conveying the encoded capability to the destination compartment, and scheduling the destination compartment to respond to the request; and
subsequently, receiving and responding to a check capability request from the destination compartment by checking the encoded capability and, when the check passes, providing a memory address to access the message block, and, otherwise, generating a fault;
wherein each compartment is isolated from other compartments, is unable to access private memory regions of other compartments, and is unable to access any message objects in the shared heap that are assigned to other compartments.

### Claim 9 (depends on 8)

The method of claim 8, wherein bounds of the private memory regions and of the shared heap are stored in a base and mask pair of registers.

### Claim 10 (depends on 8)

The method of claim 8, further comprising the TEE authenticating the message received from the first compartment by assuring that the pointer to the message block is bounded within a heap address range assigned to the first compartment.

### Claim 11 (depends on 8)

The method of claim 8, wherein the TEE is further to check that the message block is disposed at a heap location bounded within a heap address range assigned to the destination compartment.

### Claim 12 (depends on 8)

The method of claim 8, further comprising a second memory and a second TEE communicatively coupled to the TEE, the second TEE to configure a second plurality of compartments in a second address space of the second memory, the second TEE further to receive and respond to a second request to send a message block from one of the second plurality of compartments to one of the plurality of compartments, the second TEE further to authenticate the second request, generate a corresponding second encoded capability, and cause the second encoded capability to be conveyed to the destination compartment through the TEE.

### Claim 13 (depends on 8)

The method of claim 8, wherein the TEE uses an Advanced Encryption Standard cipher when generating the corresponding encoded capability.

### Claim 14 (depends on 8)

The method of claim 8, wherein the conveyed encoded capability includes a message authentication code (MAC), and wherein the TEE, when responding to the check capability request, regenerates the MAC and compares the conveyed MAC to the regenerated MAC.

### Claim 15

A non-transitory computer-readable medium containing instructions that, when executed by execution circuitry comprising a trusted execution environment (TEE), cause the TEE to respond by:
configuring a plurality of compartments in an address space of a memory, each compartment comprising a private memory and a pointer to a message block in a shared heap;
receiving a request to send a message from a first compartment, the request comprising the pointer to the message block and a destination compartment specifier;
responding to the request by authenticating the request, generating a corresponding encoded capability, conveying the encoded capability to the destination compartment, and scheduling the destination compartment to respond to the request; and
subsequently, receiving and responding to a check capability request from the destination compartment by checking the encoded capability and, when the check passes, providing a memory address to access the message block, and, otherwise, generating a fault;
wherein each compartment is isolated from other compartments, is unable to access private memory regions of other compartments, and is unable to access any message objects in the shared heap that are assigned to other compartments.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein bounds of the private memory regions and of the shared heap are stored in a base and mask pair of registers.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, further comprising the TEE authenticating the message received from the first compartment by assuring that the pointer to the message block is bounded within a heap address range assigned to the first compartment.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the TEE is further to check that the message block is disposed at a heap location bounded within a heap address range assigned to the destination compartment.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium of claim 15, further comprising a second memory and a second TEE communicatively coupled to the TEE, the second TEE to configure a second plurality of compartments in a second address space of the second memory, the second TEE further re receive and respond to a second request to send a message block from one of the second plurality of compartments to one of the plurality of compartments, the second TEE further to authenticate the second request, generate a corresponding second encoded capability, and cause the second encoded capability to be conveyed to the destination compartment through the TEE.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the conveyed encoded capability includes a message authentication code (MAC), and wherein the TEE, when responding to the check capability request, regenerates the MAC and compares the conveyed MAC to the regenerated MAC.
