# US 2017/0286645 A1 · Instructions and logic to fork processes of secure enclaves and establish child enclaves in a secure enclave page cache

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

- Number: US 2017/0286645 A1
- Document ID: US20170286645A1
- Status: Published application
- Kind: A1
- Application number: 15/621,864
- Filed: 2017-06-13
- Published: 2017-10-05
- Earliest claimed: 2015-02-23
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Prashant Pandey; Mona Vij; Somnath Chakrabarti; Krystof C. Zmudzinski
- Web page: https://patentgrep.com/patent/US20170286645A1

## CPC

- G06F 21/12: Protecting executable software
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0822: {Copy directories (local copy tags for implementing a bus snooping protocol G06F12/0831)}
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 12/14: Protection against unauthorised use of memory {or access to memory}
- G06F 12/1425: {the protection being physical, e.g. cell, word, block}
- G06F 13/24: using interrupt (G06F13/32 takes precedence)
- G06F 2212/1052: Security improvement
- G06F 2212/283: Plural cache memories
- G06F 2212/452: Instruction code
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Instructions and logic fork processes and establish child enclaves in a secure enclave page cache (EPC). Instructions specify addresses for secure storage allocated to enclaves of a parent and a child process to store secure enclave control structure (SECS) data, application data, code, etc. The processor includes an EPC to store enclave data of the parent and child processes. Embodiments of the parent may execute, or a system may execute an instruction to copy parent SECS to secure storage for the child, initialize a unique child ID and link to the parent's SECS/ID. Embodiments of the child may execute, or the system may execute an instruction to copy pages from the parent enclave to the enclave of the child where both have the same key, set an entry for EPC mapping to partial completion, and record a page state in the child enclave, if interrupted. Thus copying can be resumed.

## Claims

### Claim 1

A processor comprising:
an enclave page cache to store a first secure control structure data in a first secure storage area allocated to a corresponding first secure enclave of a parent process, and to store a second secure control structure data in a second secure storage area allocated to a corresponding second secure enclave of a child process;
a decode stage to decode a first instruction for execution by said processor, the first instruction specifying said second secure storage area as an operand; and
one or more execution units, responsive to the decoded first instruction, to:
copy the first secure control structure from the first secure storage area to the second secure storage area;
initialize said second secure control structure data with a unique enclave identifier associated with the child process; and
record a second secure control structure link to the first secure control structure data in the second secure control structure data.
