# US 2023/0409699 A1 · Method for adding security features to sgx via patch on platforms that support patch rollback

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

- Number: US 2023/0409699 A1
- Document ID: US20230409699A1
- Status: Published application
- Kind: A1
- Application number: 17/948,829
- Filed: 2022-09-20
- Published: 2023-12-21
- Earliest claimed: 2022-06-17
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Scott CONSTABLE; Ilya ALEXANDROVICH; Ittai ANATI; Simon JOHNSON; Vincent SCARLATA; Mona VIJ; Yuan XIAO; Bin XING; Krystof SMUDZINSKI
- Web page: https://patentgrep.com/patent/US20230409699A1

## CPC

- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- 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
- G06F 2221/034: Test or assess a computer or a system
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Detailed herein are examples of determining when to allow access to a trusted execution environment (TEE). For example, using TEE logic associated with software to at least in part: determine that a TEE feature is supported based at least on a value of a bit position in a data structure; and not allow a TEE entry instruction to access to a TEE when the bit position of the data structure is reserved.

## Claims

### Claim 1

An apparatus comprising:
execution circuitry configured to execute trusted execution environment (TEE) entry instructions;
TEE logic to support TEE usage, wherein the TEE logic is configured to at least in part:
determine that a TEE feature is supported based at least on a value of a bit position in a data structure; and
not allow a TEE entry instruction to access to a TEE when the bit position of the data structure is reserved.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the TEE logic is microcode.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the TEE logic software stored in memory.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the data structure is a thread control structure.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the data structure is an attributes field.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the data structure is a feature-disabled structure.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the data structure is to be updated upon a microcode patch rollback to make the bit position reserved.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the data structure is to be updated upon a microcode update to make the bit position indicate support for the TEE feature.

### Claim 9 (depends on 9)

A system comprising:
memory store a trusted execution environment (TEE);
execution circuitry configured to execute aTEE entry instructions; and
TEE logic to support TEE usage, wherein the TEE logic is configured to at least in part:
determine that a TEE feature is supported based at least on a value of a bit position in a data structure; and
not allow a TEE entry instruction to access to a TEE when the bit position of the data structure is reserved. The system of claim 9, wherein the TEE logic is microcode.

### Claim 11 (depends on 9)

The system of claim 9, wherein the TEE logic software stored in the memory.

### Claim 12 (depends on 9)

The system of claim 9, wherein the data structure is a thread control structure.

### Claim 13 (depends on 9)

The system of claim 9, wherein the data structure is an attributes field.

### Claim 14 (depends on 9)

The system of claim 9, wherein the data structure is a feature-disabled structure.

### Claim 15 (depends on 9)

The system of claim 9, wherein the data structure is to be updated upon a microcode patch rollback to make the bit position reserved.

### Claim 16 (depends on 9)

The system of claim 9, wherein the data structure is to be updated upon a microcode update to make the bit position indicate support for the TEE feature.

### Claim 17 (depends on 9)

The system of claim 9, wherein the TEE is to store user application code.

### Claim 18 (depends on 9)

The system of claim 9, wherein the memory is to store a feature-disabled structure.

### Claim 19 (depends on 9)

The system of claim 9, wherein the memory is to store a feature-enabled structure.

### Claim 20 (depends on 9)

The system of claim 9, wherein the data structure further comprises a plurality of reserved bits.
