{"pub_number":"US12373356B2","doc_number":"12373356","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Fast key ID switching via extended paging for cryptographic intra-process isolation","abstract_text":"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.","claims":[{"number":1,"text":"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.","independent":true},{"number":2,"text":"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.","independent":false,"depends_on":[1]},{"number":3,"text":"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.","independent":false,"depends_on":[1]},{"number":4,"text":"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.","independent":false,"depends_on":[3]},{"number":5,"text":"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.","independent":false,"depends_on":[3]},{"number":6,"text":"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.","independent":false,"depends_on":[3]},{"number":7,"text":"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.","independent":false,"depends_on":[3]},{"number":8,"text":"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.","independent":false,"depends_on":[7]}],"description":"BACKGROUND\nMemory 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.\nBRIEF DESCRIPTION OF DRAWINGS\nVarious examples in accordance with the present disclosure will be described with reference to the drawings.\nFIG.\n1\nillustrates a computing system providing cryptographically isolated intra-process threads according to an implementation.\nFIG.\n2\nillustrates how a second level of address translation may be switched for changing key identifiers (IDs) used for memory accesses in an implementation.\nFIG.\n3\nillustrates a list of extended page tables (EPTs) according to an implementation.\nFIG.\n4\nA\nillustrates switching between a user space process and an operating system (OS) kernel according to an implementation.\nFIG.\n4\nB\nillustrates kernel processing according to an implementation.\nFIG.\n4\nC\nillustrates accessing shared data according to an implementation.\nFIG.\n5\nillustrates initializing a virtual machine manager (VMM) according to an implementation.\nFIG.\n6\nillustrates a compartment runtime registering with the VMM according to an implementation.\nFIG.\n7\nillustrates transferring control from a compartment to the kernel according to an implementation.\nFIG.\n8\nillustrates the kernel accessing data in user space according to an implementation.\nFIG.\n9\nillustrates switching back from accessing data in user space by the kernel according to an implementation.","inventors":[{"name":"Michael LeMay","slug":"michael-lemay","city":"Hillsboro","country":"US"},{"name":"David M. Durham","slug":"david-m-durham","city":"Beaverton","country":"US"},{"name":"Salmin Sultana","slug":"salmin-sultana","city":"Hillsboro","country":"US"},{"name":"Andrew V. Anderson","slug":"andrew-v-anderson","city":"Hillsboro","country":"US"},{"name":"Hans Goran Liljestrand","slug":"hans-goran-liljestrand","city":"Helsinki","country":"FI"}],"assignees":[{"name":"Intel Corporation","slug":"intel-corporation","country":"US"}],"examiners":[],"cpc_codes":["G06F 12/1408","H04L 9/0819"],"ipc_codes":["G06F 12/14","H04L 9/08"],"filing_date":"2022-12-28","pub_date":"2025-07-29","grant_date":"2025-07-29","expiration_date":"2042-12-28","family_members":[],"citations_made":[{"pub_number":"US8024730B2","category":"examiner"},{"pub_number":"US9213653B2","category":"applicant"},{"pub_number":"US9804870B2","category":"applicant"},{"pub_number":"US10146570B2","category":"applicant"},{"pub_number":"US10404674B1","category":"examiner"},{"pub_number":"US10776525B2","category":"examiner"},{"pub_number":"US20190087575A1","category":"examiner"},{"pub_number":"US20190095350A1","category":"examiner"},{"pub_number":"US20200201786A1","category":"examiner"},{"pub_number":"US20200310972A1","category":"examiner"},{"pub_number":"US20200372188A1","category":"examiner"},{"pub_number":"US20210064254A1","category":"applicant"},{"pub_number":"US20210109870A1","category":"examiner"},{"pub_number":"US20230030961A1","category":"applicant"},{"pub_number":"EP3614284A1","category":"applicant"},{"pub_number":"EP3688649A1","category":"applicant"}],"non_patent_literature":["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."],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":16,"npl_citations":3,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3483991,"pagerank_rank":3483991,"velocity_rank":3483991,"family_citations":0}}