hottub.patents
US 12,373,356 B2#3483991 Most CitedActiveUnited States (USPTO)Utility

Fast key ID switching via extended paging for cryptographic intra-process isolation

0Forward Citations (#3483991 Global)
0.0/yrCitation Velocity (#3483991 Global)
0.00Citation PageRank (#3483991 Global)
16Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

Techniques disclosed include selecting a first key identifier (ID) for a first compartment of a compartmentalized process of a computing system, the first compartment including first private data; assigning a first extended page table (EPT) having at least one memory address including the first key ID; encrypting the first private data with a first key associated with the first key ID; and storing the encrypted first private data in a memory starting at the at least one memory address of the first EPT.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method comprising: selecting a first key identifier (ID) for a first compartment of a compartmentalized process of a computing system, the first compartment including first private data; selecting a second key ID for a second compartment of the compartmentalized process of the computing system, the second compartment including second private data; assigning a first extended page table (EPT) having at least one memory address including the first key ID to the first compartment; assigning a second EPT having at least one memory address including the second key ID to the second compartment; encrypting the first private data with a first key associated with the first key ID; storing the encrypted first private data in a memory starting at the at least one memory address of the first EPT; and switching, by a virtual machine manager (VMM), from the first EPT for the first compartment to the second EPT for the second compartment.

  2. Claim 2Depends on #1

    The method of claim 1, comprising: retrieving the encrypted first private data from the memory by the first compartment using the first EPT; and decrypting the encrypted first private data with the first key.

  3. Claim 3Depends on #1

    The method of claim 1, comprising: encrypting the second private data with a second key associated with the second key ID; and storing the encrypted second private data in the memory starting at the at least one memory address of the second EPT.

  4. Claim 4Depends on #3

    The method of claim 3, comprising: retrieving the encrypted second private data from the memory by the first compartment using the first EPT; attempting to successfully decrypt the encrypted second private data with the first key; and failing to successfully decrypt the encrypted second private data with the first key.

  5. Claim 5Depends on #3

    The method of claim 3, comprising: retrieving the encrypted first private data from the memory by the second compartment using the second EPT; attempting to successfully decrypt the encrypted first private data with the second key; and failing to successfully decrypt the encrypted first private data with the second key.

  6. Claim 6Depends on #3

    The method of claim 3, comprising: retrieving the encrypted second private data from the memory by the second compartment using the second EPT; and successfully decrypting the encrypted second private data with the second key.

  7. Claim 7Depends on #3

    The method of claim 3, comprising: selecting a third key ID for data shared by the first compartment and the second compartment; assigning a third EPT having at least one memory address including the third key ID to the first compartment and the second compartment; encrypting the shared data with a third key associated with the third key ID; and storing the encrypted shared data in the memory starting at the at least one memory address of the third EPT.

  8. Claim 8Depends on #7

    The method of claim 7, comprising: retrieving the encrypted shared data from the memory by at least one of the first compartment and the second compartment using the third EPT; and successfully decrypting, by at least one of the first compartment and the second compartment, the encrypted shared data with the third key.

Technical Overview & Description

BACKGROUND Memory encryption technologies (such as Multi-key Total Memory Encryption (MKTME)) and virtualization technologies provide highly efficient intra-process thread separation. To enable the best performance within Function as a Service (FaaS), browser and microservice workloads, software threads of an application share the same process space. This creates a potential security problem because different parts of the application can access all the memory of the process. BRIEF DESCRIPTION OF DRAWINGS Various examples in accordance with the present disclosure will be described with reference to the drawings. FIG. 1 illustrates a computing system providing cryptographically isolated intra-process threads according to an implementation. FIG. 2 illustrates how a second level of address translation may be switched for changing key identifiers (IDs) used for memory accesses in an implementation. FIG. 3 illustrates a list of extended page tables (EPTs) according to an implementation. FIG. 4 A illustrates switching between a user space process and an operating system (OS) kernel according to an implementation. FIG. 4 B illustrates kernel processing according to an implementation. FIG. 4 C illustrates accessing shared data according to an implementation. FIG. 5 illustrates initializing a virtual machine manager (VMM) according to an implementation. FIG. 6 illustrates a compartment runtime registering with the VMM according to an implementation. FIG. 7 illustrates transferring control from a compartment to the kernel according to an implementation. FIG. 8 illustrates the kernel accessing data in user space according to an implementation. FIG. 9 illustrates switching back from accessing data in user space by the kernel according to an implementation.

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (16)

PatentTitleYearCitations

Non-Patent Literature (3)

  • Advanced Micro Devices, AMD Memory Encryption, Apr. 21, 2016, 1-12.
  • Advanced Micro Devices, AMD SEV-SNP: Strengthening VM Isolation with the Integrity Protection and More, Jan. 1, 2020, 1-20.
  • Advanced Micro Devices, SEV Secure Nested Paging Firmware ABI Specification, Jan. 1, 2022, Publication # 56860, 1-124, Revision: 1.51.