Technology for secure silicon memory for trusted execution environments

By configuring the processor to support specialized access to the Trusted Execution Environment and leveraging NVRAM's access control policies, the problem of insufficient data protection in the enclave during sleep is solved, enabling durable and secure storage and recovery of sensitive data, enhancing Data security and performance.

CN108959932BActive Publication Date: 2024-10-18INTEL CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201810394386.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-04-27
Publication Date
2024-10-18
Estimated Expiration
2038-04-27

AI Technical Summary

Technical Problem

In devices utilizing a Trusted Execution Environment, enclaves may not be able to retain data after a sleep state, and existing off-chip persistent storage devices cannot provide a sufficient level of security, resulting in insufficient data protection for secure chip memory in this scenario.

Method used

By configuring the processor to support specialized access to the Trusted Execution Environment, leveraging the access control policy of the interface plug-in, restricting access to memory to the partition associated with the Trusted Execution Environment, and through non-volatile random access memory (NVRAM) ) to achieve durable and secure storage of sensitive data.

Benefits of technology

It realizes that sensitive data can be saved and restored safely even in sleep state, enhances the security of data and the performance of trusted execution environment, and ensures the lasting protection of sensitive data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108959932B_ABST
    Figure CN108959932B_ABST
Patent Text Reader

Abstract

Technologies for secure chip memory for a trusted execution environment are described. A processor may include memory configured to engage with a trusted execution environment. The processor may be configured to indicate to the trusted execution environment that the memory supports specialized access to the trusted execution environment. The processor may receive instructions from the trusted execution environment. The processor may implement an access control policy of an interface plug-in to limit access to the memory by the trusted execution environment to a partition of the memory associated with the trusted execution environment. Other embodiments are described and claimed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to techniques for providing secure chip memory for a trusted execution environment. Background Art

[0002] In some devices that utilize a trusted execution environment (TEE), sensitive portions of an application may be executed and / or stored in a secure environment called an enclave to protect the code and data from compromise. However, unlike conventional application environments, an enclave may not retain data after the device has entered certain sleep states. While many machines may include off-chip persistent storage that can be used by an enclave, it does not provide the necessary level of security to maintain the secure environment of the enclave. Therefore, improved techniques for secure chip memory for a trusted execution environment are desirable. Summary of the invention

[0003] A brief summary of the invention is presented below to provide a basic understanding of some novel embodiments described herein. This summary of the invention is not a comprehensive summary and is not intended to identify important / critical elements or to delimit its scope. Its sole purpose is to present some concepts in a brief form as a prelude to a more detailed description presented later.

[0004] Technologies for secure chip memory for a trusted execution environment are described. A processor may include memory configured to engage with a trusted execution environment. The processor may be configured to indicate to the trusted execution environment that the memory supports specialized access to the trusted execution environment. The processor may receive instructions from the trusted execution environment. The processor may implement an access control policy of an interface plug-in to limit access to the memory by the trusted execution environment to a partition of the memory associated with the trusted execution environment. Other embodiments are described and claimed.

[0005] To achieve the aforementioned and related purposes, certain illustrative aspects are described herein in conjunction with the following description and drawings. These aspects indicate various ways in which the principles disclosed herein can be practiced and all aspects and their equivalents are intended to be within the scope of the claimed subject matter. Other advantages and novel features will become apparent from the following detailed description when considered in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figure 1 An embodiment of an operating environment is shown.

[0007] Figure 2 An embodiment of a trusted execution environment is shown.

[0008] Figure 3 The architecture of a trusted execution environment is shown.

[0009] Figure 4 An embodiment of a system is shown.

[0010] Figure 5 A memory system according to an embodiment is shown.

[0011] Figure 6 An embodiment of a system is shown.

[0012] Figure 7 An embodiment of a system is shown.

[0013] Figure 8 A logic flow according to an embodiment is shown.

[0014] Fig. 9 An article of manufacture according to an embodiment is shown.

[0015] Fig.10 An embodiment of a centralized system is shown.

[0016] Fig.11 An embodiment of a distributed system is shown.

[0017] Fig.12 An embodiment of a computing architecture is shown.

[0018] Fig.13 An embodiment of a communication architecture is shown. DETAILED DESCRIPTION

[0019] Technologies for secure chip memory for a trusted execution environment are described. A processor may include memory configured to engage with a trusted execution environment. The processor may be configured to indicate to the trusted execution environment that the memory supports specialized access to the trusted execution environment. The processor may receive instructions from the trusted execution environment. The processor may implement an access control policy of an interface plug-in to limit access to the memory by the trusted execution environment to a partition of the memory associated with the trusted execution environment. Other embodiments are described and claimed.

[0020] Generally referring to the notations and nomenclature used in this article, the following detailed description can be presented from the perspective of program processes executed on a computer or computer network. These process descriptions and representations are used by those skilled in the art to most effectively convey the essence of their work to other technical personnel in the art.

[0021] A process is here and generally considered to be a self-consistent sequence of operations leading to a desired result. These operations are those requiring physical manipulation of physical quantities. Typically, but not necessarily, these quantities take the form of electrical, magnetic or optical signals capable of being stored, transferred, combined, compared and otherwise manipulated. Primarily for reasons of common usage, it proves convenient at times to refer to these signals as bits, values, elements, symbols, characters, terms, numbers or the like. It should be noted, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities.

[0022] In addition, the manipulations performed are often referred to in terms such as adding or comparing, which are often associated with mental operations performed by a human operator. In any of the operations described herein that form part of one or more embodiments, such capabilities of a human operator are not necessary or desirable in most cases. Instead, the operations are machine operations. Useful machines for performing the operations of the various embodiments include general purpose digital computers or similar devices.

[0023] Various embodiments also relate to devices or systems for performing these operations. The device may be specially constructed for the desired purpose, or it may include a general purpose computer as selectively activated or reconfigured by a computer program stored in the computer. The process presented herein is essentially independent of a specific computer or other device. Various general purpose machines may be used with programs written according to the teachings of this article, or it may prove convenient to construct more specialized devices to perform the desired method steps. The desired structures of various these machines will appear from the description given.

[0024] Figure 1 An example of an operating environment 100 that can represent some embodiments is shown. In an operating environment 100 that can include a secure chip memory for a trusted execution environment, a system 102 can include a server 110 and a processing device 105 coupled via a network 140. The server 110 and the processing device 105 can exchange data 130 via the network 140, and the data 130 can include executable instructions 132 for execution within the processing device 105. In some embodiments, the data 130 can include data values, executable instructions, and / or combinations thereof. The network 140 can be based on any of a variety of communication technologies (or combinations thereof) through which signals can be exchanged, including but not limited to wired technologies using electrical and / or optically conductive cables, and wireless technologies using infrared, radio frequency, and / or other forms of wireless transmission.

[0025] In various embodiments, the processing device 105 may include a processor component 150, a storage device 160, a control 125 (e.g., a manually operable control), a display 135, and / or a network interface 115 that couples the processing device 105 to a network 140. The processor component 150 may include a security credential 180, a security microcode 178, a metadata storage device 135 that stores metadata 136, a security subsystem 174, one or more processor cores 170, one or more caches 172, and / or a graphics controller 176. The storage device 160 may include a volatile storage device 164, a non-volatile storage device 162, and / or one or more storage controllers 165. The processing device 105 may include a controller 120 (e.g., a security controller), which may include the security credential 180. The controller 120 may also include one or more of the embodiments described herein for unified hardware acceleration of hash functions.

[0026] The volatile storage 164 may include one or more storage devices that are volatile to the same extent that they require a continuous supply of power to retain information stored therein. The operation of the storage device(s) of the volatile storage 164 may be controlled by a storage controller 165, which may receive commands from the processor component 150 and / or other components of the processing device 105 to store and / or retrieve information therein, and may convert such commands between a bus protocol and / or timing at which the commands are received and other bus protocols and / or timing at which the storage device(s) of the volatile storage 164 are coupled to the storage controller 165. By way of example, one or more storage devices of the volatile storage 164 may be comprised of a dynamic random access memory (DRAM) device coupled to the storage controller 165 via an interface, for example, wherein a row address and a column address are employed along with a byte enable signal to select a storage location, while commands received by the storage controller 165 may be transmitted thereto along one or more pairs of digital serial transmission lines.

[0027] The non-volatile storage 162 may be comprised of one or more storage devices that are non-volatile to the same extent that they are capable of retaining information stored therein in the absence of a continuous supply of electrical power. The operation of the storage device(s) of the non-volatile storage 162 may be controlled by a storage controller 165 (e.g., a different storage controller than that used to operate the volatile storage 164), which may receive commands from the processor component 150 and / or other components of the processing device 105 to store and / or retrieve information therein, and may convert such commands between a bus protocol and / or timing at which the commands are received and other bus protocols and / or timing at which the storage device(s) of the non-volatile storage 162 are coupled to the storage controller 165. By way of example, one or more storage devices of the non-volatile storage 162 may be comprised of a ferromagnetic disk-based drive (hard disk drive) operably coupled to the storage controller 165 via a digital serial interface, for example, where portions of storage space within each such storage device are addressed by reference to tracks and sectors. Rather, commands received by the memory controller 165 may be transmitted thereto along one or more pairs of digital serial transmission lines that transmit read commands and write commands, wherein these same portions of storage space within each such memory device are addressed in an entirely different manner.

[0028] The processor assembly 150 may include at least one processor core 170 that executes instructions of an executable routine in at least one execution thread. However, the processor assembly 150 may include more than one of the processor cores 170 and / or may employ other processing architecture techniques to support multiple execution threads that may execute instructions of more than one executable routine in parallel. The cache(s) 172 may include a multi-layer cache set that may include a separate first level (L1) cache for each processor core 170 and / or a larger second level (L2) cache for multiple processor cores in the processor core 170.

[0029] In some embodiments where the processing device 105 includes a display 135 and / or a graphics controller 176, the one or more cores 170 may operate the controls 125 and / or the display 135 to provide a user interface and / or perform other graphics-related functions as a result of executing executable instructions of one or more routines. The graphics controller 176 may include a graphics processor core (e.g., a graphics processing unit (GPU)) and / or components (not shown) that perform graphics-related operations, including, but not limited to, decompressing and presenting motion video, rendering 2D images of one or more objects of a three-dimensional (3D) model, and the like.

[0030] The non-volatile storage 162 may store data 130, including executable instructions 132. In the aforementioned exchange of data 130 between the processing device 105 and the server 110, the processing device 105 may maintain a copy of the data 130, for example, for long-term storage within the non-volatile storage 162. The volatile storage 164 may store encrypted data 134 and / or metadata 136. According to some embodiments described herein, the encrypted data 134 may consist of at least a portion of the data 130 stored in an encrypted and / or compressed form within the volatile storage 164. The executable instructions 132 may consist of one or more executable routines such as an operating system (OS), a device driver, and / or one or more application routines to be executed by one or more processor cores 170 of the processor component 150. Other portions of the data 130 may include data values ​​used by the one or more processor cores 170 as inputs to perform various tasks, where the one or more processor cores 170 are caused to perform the various tasks by executing the executable instructions 132.

[0031] As part of executing the executable instructions 132, one or more processor cores 170 may retrieve portions of the executable instructions 132 and store these portions in a more readily executable form within the volatile storage device 164, where addresses are derived, indirect references are resolved, and / or links are more fully defined in these portions in a process often referred to as loading. As is well known to those skilled in the art, such loading may occur under the control of a load routine and / or page management routine of the OS, which may be within the executable instructions 132. As portions of data 130 (including portions of executable instructions 132) are thus exchanged between the non-volatile storage device 162 and the volatile storage device 164, the security subsystem 174 may transform these portions of data 130 between their original uncompressed and unencrypted form, which may be stored within the non-volatile storage device 162, and a form in which the encrypted data 134 is at least encrypted and may be stored within the volatile storage device 164 as metadata 136.

[0032] The security subsystem 174 may include hardware logic that is configured or otherwise controlled by the security microcode 178 to implement logic that performs such transformations during normal operation of the processing device 105. The security microcode 178 may include instructions for making connections between logic circuits within the security subsystem 174 to form such logic. Alternatively or in addition, the security microcode 178 may include executable instructions that form such logic when so executed. Either security subsystem 174 may execute such instructions of the security microcode 178, or the security subsystem 174 may be controlled by at least one processor core 170 that executes these instructions. The security subsystem 174 and / or at least one processor core 170 may be provided with access to the security microcode 178 during initialization of the processing device 105, including during initialization of the processor component 150. In addition, the security subsystem 174 may include one or more of the embodiments described herein for unified hardware acceleration of hash functions.

[0033] Security credentials 180 may include one or more values ​​used by security subsystem 174 as input to its encryption of data 130 and / or decryption of encrypted data 134 as part of performing transformations therebetween during normal operation of processing device 105. More specifically, security credentials 180 may include any of various types of security credentials, including, but not limited to, public and / or private keys, seeds for generating random numbers, instructions for generating random numbers, certificates, signatures, passwords, etc. Security subsystem 174 may be provided with access to security credentials 180 during initialization of processing device 105.

[0034] Figure 2 An embodiment of a trusted enclave system 200 that may be used in some embodiments described herein is shown. Trusted enclave system 200 may include application 201, which may include one or more applications executed on a software and / or hardware platform. Several non-limiting examples of applications that may include secret data that needs to be protected are financial applications, electronic banking applications, and health or medical applications. In some embodiments, application 201 may include an untrusted partition 202, which may be a partition of application 201 that includes instructions and data that are generally not protected from attack. Privileged code 206 may include code of the platform that has special access rights or privileges to data within applications running on the platform. Privileged code may include, for example, an operating system, a virtual machine manager, a system BIOS, or a system management mode. Although these exemplary types of privileged code may be used herein, it may be appreciated that other types of code may permanently or temporarily include privileges.

[0035] If malicious code were to infect privileged system code 206, it could access untrusted partition 202 because privileged system code 206 generally has access to application 201. However, using a trusted enclave system, certain data may remain secret and secure, even from attacks originating from privileged system code 206. In an example, application 201 may create a trusted enclave 204 at 201 to protect secret data and secure data 216. The creation of trusted enclave 204 may generate a secure memory location (sometimes within a processor of a platform) that can be accessed using the techniques described herein. Trusted enclave 204 may be configured to support certain trusted functions that may be performed on secure data 216. Untrusted partition 202 may call a trusted function at 212 using call gate 214, which may be a combination of software and hardware configured to accept certain trusted function calls at trusted enclave 204. The results of the trusted function call may be returned from trusted enclave 204 to untrusted partition 202, while secure data 216 remains protected within trusted enclave 204. In this way, a limited set of trusted functions may be used to access secure data 216, which may still be used within application 201, however, privileged system code 208 may be prevented from accessing secure data 216 as shown by lockout 208. In some embodiments described herein, secure data 216 may be stored in on-chip persistent memory (e.g., NVRAM) and may be partitioned such that each partition is associated with a specific trusted execution environment.

[0036] Trusted enclave system 200 allows each application running on the platform to use a secure enclave to protect its own secret data, significantly reducing the attack surface available to malicious code, especially malicious code that has infiltrated privileged system code 206. Figure 2 The described embodiments show a single platform, but the trusted enclave system can be used within a networked distributed system such as the IoT. In these systems, a centralized trusted authority can be used to authenticate the secure enclave as described later.

[0037] Figure 3The architecture of a trusted enclave system 300 is shown. The trusted enclave system 300 may include an application environment 301, a privileged environment 302, and exposed hardware 304, each of which is now discussed in turn. The application environment 301 may include one or more enclaves 306, 308, each of which is accessed using one or more SGX user runtime modules 310, 312. In this way, each enclave 306, 308 can be accessed by the privileged environment 302 in a secure manner. The privileged environment 302 may include an SGX module 314 and a page table 316. The SGX module 314 may include a combination of software and hardware, and may be configured to request secret information from the enclave 306, 308 via the SGX user runtime 310, 312, or to perform trusted functions on the secret information. The page table 316 may store one or more memory locations for secret data stored, for example, within the exposed hardware 304. The exposed hardware 304 may include a computing platform 318, as described herein, and may include one or more processors configured to perform the techniques set forth therein.

[0038] The platform 318 may include a storage device NVRAM 324 that stores an enclave page cache (EPC) 320 and an enclave page cache map (EPCM) 322. The EPC 320 may be a memory including a structure EPCM 322 for associating a set of access permissions with an enclave. The EPC 320 may contain protected code and data in pages, which may be 4KB pages in a non-limiting example. The EPC 320 may store enclave pages and SGX structures, and the EPC pages may be valid or invalid. A valid EPC page may contain an enclave page or an SGX structure. The security attributes of each EPC page may be retained in an internal microarchitecture structure referred to as an EPCM discussed below.

[0039] EPCM 322 may contain metadata for enclave pages and may be a protected structure used by the processor to track the contents of EPC 320. EPCM 322 may consist of a series of entries, with exactly one entry for each page in EPC 320. It may be appreciated that alternative embodiments may not require a 1:1 correlation. EPCM 322 may be managed by the processor as part of various SGX instructions and may not be directly accessible to software or devices. The format of EPCM 322 may be microarchitectural and implementation-dependent. However, logically, each EPCM entry may retain one or more of the following: whether the EPC page is valid or invalid; the enclave instance that owns the page; the type of page (REG, TCS, VA, SECS); the virtual address through which the enclave can access the page; the enclave-specified read / write / execute permissions on the page; and / or whether the page is accessible (BLOCKED or UNBLOCKED). The EPCM structure may be used by the processor in the address translation flow to implement access control on enclave pages loaded into the EPC. Logically, in addition to the "traditional" segmentation, paging table and extended paging table mechanisms, additional access control security layers can be provided.

[0040] Figure 4 4 shows a block diagram of a system 400. In one embodiment, the system 400 may include one or more components. Figure 4 The system 400 is shown as having a limited number of elements in a certain topology, but it will be appreciated that the system 400 may include more or fewer elements in alternative topologies as desired for a given implementation. The system 400 may include a plurality of modules, each of which may include one or more processing units, storage units, network interfaces, or other hardware and software elements described in more detail herein. In some embodiments, these modules may be included within a single device. In other embodiments, one or more modules may be part of a distributed architecture, examples of which are described with respect to FIG. Fig.11 Give a description.

[0041] In an embodiment, each module of the system 400 may include, but is not limited to, a mobile computing device, a smart phone, a cellular phone, a device connected to the Internet of Things (IoT), a handheld, a personal digital assistant, a one-way pager, a two-way pager, a messaging device, a computer, a personal computer (PC), a desktop computer, a laptop computer, a notebook computer, a handheld computer, a tablet computer, or a wearable computing device such as a smart watch. In addition, a module may include a server, which may include, but is not limited to, a single server, an array or cluster of servers, a web server, a network server, an Internet server, a workstation, a microcomputer, a mainframe computer, a supercomputer, a network appliance, a web appliance, a multiprocessor system, a processor-based system, or any combination thereof.

[0042] In various embodiments, system 400 may include or implement multiple components or modules. As used herein, the terms "component" and "module" are intended to refer to computer-related entities, including hardware, a combination of hardware and software, software, or software in execution. For example, components and / or modules may be implemented as processes running on a processor, hard drives, multiple storage drives (of optical and / or magnetic storage media), objects, executable files, execution threads, programs, and / or computers. By way of illustration, both applications and servers running on servers may be components and / or modules. One or more components and / or modules may reside in a process and / or execution thread, and, as desired for a given implementation, components and / or modules may be located on a computer and / or distributed between two or more computers. Embodiments are not limited to this context.

[0043] Various devices within system 400 and components and / or modules within devices of system 400 can be communicatively coupled via various types of communication media, as indicated by various lines or arrows. Devices, components and / or modules can coordinate operations between each other. Coordination can involve unidirectional or bidirectional information exchange. For example, devices, components and / or modules can transmit information in the form of signals transmitted through communication media. Information can be implemented as signals assigned to various signal lines. In this assignment, each message is a signal. However, other embodiments can alternatively adopt data messages. Such data messages can be sent across various connections. Exemplary connections within the device include parallel interfaces, serial interfaces, and bus interfaces. Exemplary connections between devices can include network connections through wired or wireless communication networks.

[0044] In various embodiments, the various modules and storage devices of system 400 can be organized as a distributed system. A distributed system typically includes multiple autonomous computers that communicate through a computer network. Computers can interact with each other to facilitate achieving a common goal, for example, solving a computing problem. For example, a computing problem can be divided into multiple tasks, each of which is solved by a computer. A computer program running in a distributed system is called a distributed program, and distributed programming is the process of writing these programs. Examples of distributed systems may include, but are not limited to, client-server architecture, 3-tier architecture, N-tier architecture, tightly coupled or clustered architecture, peer-to-peer architecture, master-slave architecture, shared database architecture, and other types of distributed systems. It is worth noting that, although some embodiments may utilize distributed systems when describing various enhancement techniques for data retrieval, it can be appreciated that the enhancement techniques for data retrieval may also be implemented by a single computing device. The embodiments are not limited to this context.

[0045] The embodiments described herein describe techniques for a trusted execution environment (SGX, as an example) to access specialized on-chip memory (e.g., NVRAM) in order to provide improved security guarantees with performance benefits. Although examples such as SGX and NVRAM may be used herein to describe certain embodiments, it may be appreciated that other trusted execution environments and storage devices may be used in some embodiments. Exemplary benefits may include state recoverability of secure enclaves, which is achieved in part by storing security-sensitive data (e.g., keys) in a secure and persistent manner. In addition, the performance of the trusted execution environment may be improved due to the inclusion of on-chip storage. In addition, securely and persistently maintaining TEE-related data may allow state preservation for services such as monotonic counters, for example, which provides replay protection to persistent storage devices across reset cycles to implement applications such as digital rights management (DRM). The monotonic counter service may be provided as part of the SGX platform services, and a replay-protected persistent storage device may be required to store the root hash associated with the monotonic counter. Using the proposed disclosed technology, the on-chip NVRAM may be used as a persistent storage device.

[0046] As another example of a benefit, on-chip NVRAM can be used to store key wrapping keys (KWKs), which are used by the enclave via the EBIND instruction to generate a packed blob, which in turn can be used by the enclave to securely communicate with various devices on the platform. This can allow blobs to be saved and restored across sleep states. Additionally, the storage can also help reduce the TCB of the SGX TEE by providing storage for platform service metadata.

[0047] Go to Figure 44. As shown in the elements, system 400 may include a trusted execution environment specific software module 402 located on the software side of system 400. TEE 402 may include a virtual memory management application (SGX) or other types of TEEs. In an embodiment, TEE 402 may include a client application that can run on a client device as described herein and can use a secure enclave (e.g., an SGX enclave) to execute and / or store data. In some embodiments, the SGX enclave may reside on one or more processors of the client device. Although specific examples are used throughout, the described techniques can be used with any processor in various types of trusted execution environments.

[0048] In some embodiments, multiple TEEs of the same type or various types can be used with the techniques described herein. For example, using one or more instruction set architecture (ISA) extensions described in detail herein, the techniques can provide exclusive access 403 to on-chip NVRAM 408 for multiple untrusted TEEs (e.g., SGX, VMM). The proposed on-chip NVRAM 408 can be bound to a specific TEE 402 through the system BIOS as part of the platform manufacturing process to provide exclusive access to the TEE 402 to store secrets or security-sensitive data as persistent across deeper sleep states (e.g., S3 / S4). TEE 402 may require security state retention across sleep states for its operation. As an example, saving or restoring keys and other secret data across S3 / S4 sleep states can allow applications running within TEE 402 to operate seamlessly across sleep states.

[0049] NVRAM 408 may reside on the hardware side of system 400, and in some embodiments may reside within a processor of system 400. Although NVRAM is used as an exemplary embodiment, other types of storage devices may be used in other embodiments. In some embodiments, NVRAM 408 may be configured to Figure 5 In particular, NVRAM 408 can be partitioned for one or more TEEs, where each partition provides a static memory range for the associated TEE. In this way, multiple TEEs can have access to NVRAM 408 without providing access to other applications or other TEEs.

[0050] Management and access control of each NVRAM partition can be provided by an NVRAM controller 406, which can be configured to control access 403 to data stored in NVRAM 408 via an interface plug-in 404. The techniques described herein using ISA extensions can allow a trusted execution environment-specific software module 402 to access on-chip NVRAM 408, which is otherwise hidden from other system software and the operating system. Although some embodiments described herein utilize specific instructions for certain TEEs, it can be appreciated that in certain implementations a single instruction set can be used for multiple types of TEEs. The NVRAM controller 406 can be configured to send an indication to the TEE that it supports access to specialized on-chip memory for the TEE. For example, a CPUID can be sent, or the CPUID can be made available via a feature flag in the CPUID to allow the TEE to discover support for the techniques described herein.

[0051] The interface plugin 404 may be configured to receive instructions from the TEE 402 and may check the operating mode for the execution of the instruction to ensure which TEE is accessing the NVRAM 408. For example, if the instruction is executed while running within an enclave, the interface plugin 404 may check the enclave instruction, and if the instruction is executed while running in VMX mode, the interface plugin 404 may check the VMM instruction. In an embodiment, the interface plugin 404 may be configured to restrict the execution of the instruction to a specific enclave or a subset of enclaves (using SGX as an example). In this case, the interface plugin 404 may be configured by pre-provisioning measurements of the enclaves that are allowed to execute the instruction, and the instruction may be configured to verify that the measurement of the calling enclave is the same as the pre-provisioned measurement.

[0052] In an embodiment, the on-chip NVRAM 408 may be uCode exclusive and may be viewed as a RAM module with an interface plug-in 404 configured as a gatekeeper for the NVRAM controller 406. Of course, uCode exclusivity is not required in all embodiments. When required, uCode may be the only agent trusted by the NVRAM controller 406, and therefore, the TEE 402 may be required to call uCode in order to access the NVRAM 408 via directed instructions attached to the access control policy configured in the interface plug-in 404.

[0053] The interface plug-in 404 may be responsible for implementing access control policies associated with a specific TEE in hardware, accessed via a directed entry point such as a specific instruction. The access control policies may be associated with partitions in the NVRAM 408 to allow different TEEs to control different partitions. The access control policies of the interface plug-in 404 may include static read and write policies to be checked for all read / write transactions, which may be set by the BIOS during boot time. In some embodiments, these policies may not be dynamically reconfigured during runtime execution.

[0054] For each TEE, the access control policy can use the following information:

[0055] TEE-ID: Interface plugin 404 is used to enforce access control policies and check the identifiers that TEE-NVRAM is allowed to access.

[0056] TEE-INSTRUCTIONS: A set of instructions that are executed only by this TEE.

[0057] TEE-RANGE: Range register used to define the memory range in NVRAM used for the TEE.

[0058] The interface plugin 404 can use at least the above information to implement an access policy for a specific TEE requesting access to a partition of the NVRAM 408. For example, the interface plugin 404 can be configured to check whether the NVRAM address belongs to the TEE that generated the request. If the interface plugin 404 detects an access error, it can discard the request and send an error response back to the TEE.

[0059] Figure 5A memory system 500 according to an embodiment is shown. In this example, the memory system includes an on-chip NVRAM that can be divided into static memory ranges, each of which is associated with a TEE. In an embodiment, the system BIOS can divide the available NVRAM into supported memory ranges for each known TEE via a TEE-specific base / mask memory partitioning service (e.g., MSR). In an embodiment, the partitioning can be performed so that the partitioned memory ranges are non-overlapping ranges to implement isolation and security. One or more range registers may have a lock bit, and once set, the lock bit does not change. During the partitioning by the BIOS, the memory partitioning process may be configured to check the lock bit, and if the lock bit is set, a GP fault is given. If the lock bit is not set, it may be configured to check other range registers to ensure that other ranges are locked. The memory partitioning process may be configured to determine that the range value programmed into the on-chip NVRAM 500 for the TEE does not overlap with the lock value in other ranges. When the BIOS completes the partitioning, the on-chip NVRAM 500 may be locked and each corresponding partition may be accessed by the corresponding TEE.

[0060] In a non-limiting example, Figure 5 Hardware is shown including 256MB on-chip NVRAM 500 configured to support a first TEE-A (64MB) between TEE-A mask 502 and TEE-base 504 and a second TEE-B (64MB) between TEE-B base 506 and TEE-B base 508. Using the techniques described herein, an interface plug-in may be configured to check the attributes of each transaction access to the on-chip NVRAM 500.

[0061] NVRAM 500 may be configured as part of the platform manufacturing process. Thus, access to NVRAM 500 may be limited to specific agents, such as uCode. As configured according to the techniques described herein, each TEE may only be aware of the NVRAM registers associated with it and may not have information about the complete NVRAM configuration. Thus, each TEE may not be able to maliciously or accidentally access the NVRAM area of ​​another TEE.

[0062] Figure 6A system 600 according to an embodiment is shown. The system 600 may include an SGX enclave 602 located on the software side of the system 600. The SGX enclave 602 may be configured to access 603 a specific SGX-TEE memory range 610 of NVRAM 608 on the hardware side of the system 600 via an interface plugin 604 and an NVRAM controller 606. The system 600 operates primarily according to the techniques described above with respect to 4.

[0063] The techniques described herein may include instructions for different types of TEEs. Figure 6 The embodiments shown in the figure are particularly related to SGX and enclaves 602. In an exemplary embodiment, two instructions can be executed only by allowed enclaves. In this example, the instructions ENVRAM_RD (read) and ENVRAM_WR (write) can be used specifically by SGX. In the example, using these instructions, other functions such as starting enclave functions can use on-chip memory to save critical information required for save-restore of all enclaves.

[0064] The ENVRAM_WR instruction may be a ring 3 instruction (leaf of ENCLU) and may allow a particular enclave to perform writes to a particular memory range of NVRAM 608. In an example, writes may be limited to 64MB. The ENVRAM_WR instruction may include the following parameters, with exemplary values:

[0065] DS:EAX:wr_addr<32b address>

[0066] DS:EBX:wr_data0<32b write value>

[0067] DS:ECX:wr_data1<32b write value>

[0068] The ENVRAM_RD instruction may be a ring 3 instruction (leaf of ENCLU) and may allow a particular enclave to perform a read to a particular memory range of NVRAM 608. In an example, the read may be limited to 64MB. The ENVRAM_RD instruction may include the following parameters, with exemplary values:

[0069] DS:EAX:rd_addr<32b read address>

[0070] DS:EBX:rd_data0<32b read return value>

[0071] DS:ECX:rd_data1<32b read return value>

[0072] Figure 7FIG. 700 shows a system 700 according to an embodiment. The system 700 may include a VMM 706 corresponding to multiple VMMs 702 and 704 located on the software side of the system 700. Although two VMMs 702 and 704 are shown, it can be appreciated that more or fewer VMMs may be used. Additionally, although Figure 6 SGX is shown and Figure 7 the VMM is shown, it can be appreciated that SGX, the VMM, and other types of TEEs may coexist in certain embodiments.

[0073] The VMM 706 may be configured to access a specific SGX - TEE memory range 714 of the 703 NVRAM 712 on the hardware side of the system 700 via an interface plug - in 708 and an NVRAM controller 710. The system 700 operates mainly according to the techniques described above with respect to Figure 4 those described.

[0074] The techniques described herein may include instructions for different types of TEEs. Figure 7 The embodiments shown particularly relate to the VMM 706. In an exemplary embodiment, two instructions may be executed only by the permitted VMM. In this example, the instructions VMVRAM_RD (read) and VMVRAM_WR (write) may be specifically used by the VMM 706 and, in some embodiments, may be used only in the VM < M root mode. In the example, using these instructions, other functions such as starting an enclave instruction may use on - chip memory to save critical information required for saving - restoring all enclaves.

[0075] The first instruction VMRAM_WR may be a VMM root instruction for writing to a VMM - specific NVRAM range in hardware. The attributes of this instruction may include a write address and write data. If the instruction is executed in the VMX non - root operation mode, a GP error may occur. The second instruction VMRAM_RD may be a VMX root instruction for reading a VMM - specific NVRAM range in hardware. The attributes of this instruction may include a read address from which to fetch the read value. If the instruction is executed in the VMX non - root operation mode, a GP error may occur.

[0076] This article includes a set of flow charts representing exemplary methods for performing novel aspects of the disclosed architecture. Although for the purpose of simplifying the description, one or more methods shown in the form of a flow chart or flow diagram are shown and described as a series of actions, it should be understood and appreciated that the method is not limited by the order of the actions, because some actions can occur in a different order and / or occur simultaneously with other actions shown and described herein. For example, those skilled in the art will understand and appreciate that the method can be alternatively represented as a series of related states or events in a state diagram, for example. In addition, novel implementations do not necessarily require all actions shown in the method.

[0077] Figure 8 A logic flow 800 according to an embodiment is shown. At 802, a processor may indicate to a trusted execution environment that a memory such as an on-chip NVRAM supports specialized access to the trusted execution environment. As described herein, the TEE may be an SGX system or a VMM system, or other known TEE. In some embodiments, the VMM system may implement a virtual secure mode (VSM). The indication may be via a CPUID, which may be an identifier associated with a CPU that may be sent from a controller to a TEE, or may have one or more flags indicating capabilities that may be discovered by the TEE via reading appropriate flags.

[0078] In an embodiment, the memory may include multiple partitions, each of which is statically associated with a specific TEE and can be created by the system BIOS. In this way, a first TEE can be prevented from accidentally or maliciously accessing or corrupting secret data from another TEE co-located within the same on-chip NVRAM. Within a single on-chip NVRAM, memory ranges can be assigned to specific TEEs, and the interface plug-in of the NVRAM controller can be responsible for receiving instructions from one or more TEEs and implementing access control policies.

[0079] At 804, the processor may receive instructions from a trusted execution environment. The instructions may be specific to a particular TEE, such as described above with respect to Figure 6 and Figure 7 In some embodiments, a common instruction set may be available across different types of TEEs. In any event, the instructions may include information associated with an access control policy, such as one or more of: a trusted execution environment identifier, a trusted execution environment instruction, and a memory location range associated with the trusted execution environment.

[0080] Next, at 806, the interface plug-in of the NVRAM controller can implement the access control policy of the interface plug-in to limit access to the memory by the trusted execution environment to the partition of the memory associated with the trusted execution environment. The interface plug-in can implement the access control policy to limit the read and write access of the TEE to a specific memory range within the on-chip NVRAM. In some embodiments, each TEE and associated memory partition can have an associated access control policy and can have an associated instruction set. Similarly, in other embodiments, multiple TEEs, or multiple types of TEEs can share access control policies and / or instruction sets.

[0081] Fig. 9 An article of manufacture according to an embodiment is shown. Storage medium 900 may include any computer-readable storage medium or machine-readable storage medium, such as an optical, magnetic or semiconductor storage medium. In some embodiments, storage medium 900 may include a non-transitory storage medium. In various embodiments, storage medium 900 may include an article of manufacture. In some embodiments, storage medium 900 may store computer-executable instructions, such as computer-executable instructions for implementing, for example, logic flow 800. Examples of computer-readable storage media or machine-readable storage media may include any tangible medium capable of storing electronic data, including volatile or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writable or rewritable memory, etc. Examples of computer-executable instructions may include any suitable type of code, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, object-oriented code, visual code, etc. Embodiments are not limited to these examples.

[0082] Fig.10 Shown is a block diagram of a centralized system 1000. Centralized system 1000 may implement some or all of the structure and / or operations for web service system 1020 in a single computing entity (eg, entirely within a single device 1010).

[0083] Device 1010 may include any electronic device capable of receiving, processing, and sending information for web service system 1020. Examples of electronic devices may include, but are not limited to, client devices, personal digital assistants (PDAs), mobile computing devices, smart phones, cellular phones, electronic book readers, messaging devices, computers, personal computers (PCs), desktop computers, laptop computers, notebook computers, netbook computers, handheld computers, tablet computers, servers, server arrays or server farms, web servers, network servers, Internet servers, workstations, network appliances, web appliances, distributed computing systems, multiprocessor systems, processor-based systems, consumer electronic devices, programmable consumer electronic devices, gaming devices, televisions, set-top boxes, wireless access points, base stations, subscriber stations, mobile subscriber centers, radio network controllers, routers, hubs, gateways, bridges, switches, machines, or combinations thereof. Embodiments are not limited to this context.

[0084] Device 1010 can use processing component 1030 to perform processing operations or logic for web service system 1020. Processing component 1030 may include various hardware elements, software elements, or a combination of the two. Examples of hardware elements may include devices, logic devices, components, processors, microprocessors, circuits, processor circuits, circuit elements (e.g., transistors, resistors, capacitors, inductors, etc.), integrated circuits, application specific integrated circuits (ASICs), programmable logic devices (PLDs), digital signal processors (DSPs), field programmable gate arrays (FPGAs), memory cells, logic gates, registers, semiconductor devices, chips, microchips, chipsets, etc. Examples of software elements may include software components, programs, applications, computer programs, applications, system programs, software development programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, processes, software interfaces, application program interfaces (APIs), instruction sets, computing codes, computer codes, code segments, computer code segments, words, values, symbols, or any combination thereof. Determining whether an embodiment is implemented using hardware elements or software elements can vary depending on any number of factors, such as desired computational rates, power levels, thermal tolerances, processing cycle budgets, input data rates, output data rates, memory resources, data bus speeds, and other design or performance constraints, as desired for a given implementation.

[0085] Device 1010 can use communication component 1040 to perform communication operations or logic for web service system 1020. Communication component 1040 can implement any known communication technology and protocol, for example, suitable for use with packet switching network (for example, public network such as the Internet, private network such as enterprise intranet, etc.), circuit switching network (for example, public switched telephone network) or combination of packet switching network and circuit switching network (using suitable gateway and converter). Communication component 1040 can include various types of standard communication elements, for example, one or more communication interfaces, network interfaces, network interface cards (NICs), radios, wireless transmitters / receivers (transceivers), wired and / or wireless communication media, physical connectors, etc. By way of example and not limitation, communication media 1009, 1049 include wired communication media and wireless communication media. Examples of wired communication media can include wires, cables, metal conductors, printed circuit boards (PCBs), backplanes, switching structures, semiconductor materials, twisted pairs, coaxial cables, optical fibers, propagation signals, etc. Examples of wireless communication media can include acoustic, radio frequency (RF) spectrum, infrared and other wireless media.

[0086] Device 1010 may communicate with other devices 1005, 1045, respectively, via communication component 1040 using communication signals 1007, 1047, respectively, over communication media 1009, 1049. Devices 1005, 1045 may be internal or external to device 1010 as desired for a given implementation.

[0087] For example, device 1005 may correspond to a client device such as a phone used by a user. Signals 1007 sent over medium 1009 may thus include communications between the phone and web service system 1020, wherein the phone sends requests and receives web pages or other data in response.

[0088] Device 1045 may correspond to a second user device used by a different user than the first user described above. In one embodiment, device 1045 may submit information to web service system 1020 using signal 1047 sent via medium 1049 to construct an invitation for the first user to join the services provided by web service system 1020. For example, if web service system 1020 includes a social networking service, the information sent as signal 1047 may include the name and contact information of the first user, including a phone number or other information that web service system 1020 later uses to identify incoming requests from the user. In other embodiments, device 1045 may correspond to a device used by a different user who is a friend of the first user on the social networking service, and signal 1047 includes status information, news, images, contact information, or other social networking information that is ultimately sent to device 1005 for viewing by the first user as part of the social networking function of web service system 1020.

[0089] Fig.11 A block diagram of a distributed system 1100 is shown. The distributed system 1100 may distribute portions of the structure and / or operation for the disclosed embodiments across multiple computing entities. Examples of the distributed system 1100 may include, but are not limited to, client-server architectures, 3-tier architectures, N-tier architectures, tightly coupled or clustered architectures, peer-to-peer architectures, master-slave architectures, shared database architectures, and other types of distributed systems. The embodiments are not limited in this context.

[0090] Distributed system 1100 may include client device 1110 and server device 1140. Generally, client device 1110 and server device 1140 may be similar to those described above with reference to Fig.10 For example, the client device 1110 and the server system 1140 may each include processing components 1120, 1150 and communication components 1130, 1160, which are respectively similar to those described in reference. Fig.10 The processing component 1030 and the communication component 1040 described are the same or similar. In another example, the devices 1110, 1140 can communicate over the communication medium 1105 using communication signals 1107 via the communication components 1130, 1160.

[0091] The client device 1110 may include or employ one or more client programs that operate to perform various methods according to the described embodiments. In one embodiment, for example, the client device 1110 may implement Figure 8 Some of the steps described.

[0092] The server device 1140 may include or employ one or more server programs that operate to perform various methods according to the described embodiments. In one embodiment, for example, the server device 1140 may implement Figure 8 Some of the steps described.

[0093] Fig.12 An embodiment of an exemplary computing architecture 1200 suitable for implementing various embodiments as previously described is shown. In one embodiment, the computing architecture 1200 may include or be implemented as part of an electronic device. Examples of electronic devices may include those described herein. The embodiments are not limited in this context.

[0094] As used in this application, the terms "system" and "component" are intended to refer to a computer-related entity, which is hardware, a combination of hardware and software, software, or software execution, examples of which are provided by the exemplary computing architecture 1200. For example, a component can be, but is not limited to, a process running on a processor, a processor, a hard drive, multiple storage drives (optical and / or magnetic storage media), an object, an executable file, an execution thread, a program, and / or a computer. By way of illustration, both an application running on a server and a server can be a component. One or more components can reside in a process and / or an execution thread, and a component can be located on a computer and / or distributed between two or more computers. In addition, components can be communicatively coupled to each other through various types of communication media to coordinate operations. Coordination may involve unidirectional or bidirectional information exchange. For example, a component can transmit information in the form of a signal transmitted through a communication medium. Information can be implemented as a signal assigned to various signal lines. In such an assignment, each message is a signal. However, other embodiments may alternatively employ data messages. Such data messages can be sent across various connections. Exemplary connections include parallel interfaces, serial interfaces, and bus interfaces.

[0095] The computing architecture 1200 includes various common computing elements, such as one or more processors, multi-core processors, coprocessors, memory units, chipsets, controllers, peripheral devices, interfaces, oscillators, timing devices, video cards, audio cards, multimedia input / output (I / O) components, power supplies, etc. However, the embodiments are not limited to being implemented by the computing architecture 1200.

[0096] like Fig.12 As shown, computing architecture 1200 includes a processing unit 1204, a system memory 1206, and a system bus 1208. Processing unit 1204 can be any of a variety of commercially available processors, including but not limited to and processor; Application, embedded and security processors; and and Processors; IBM and Cell processor; Core(2) and Dual microprocessors, multi-core processors, and other multi-processor architectures may also be used as the processing unit 1204 .

[0097] The system bus 1208 provides an interface for system components including, but not limited to, the system memory 1206 and the processing unit 1204. The system bus 1208 may be any of a variety of types of bus structures, which may further interconnect to a memory bus (with or without a memory controller), a peripheral bus, and a local bus using any of a variety of commercially available bus architectures. Interface adapters may be connected to the system bus 1208 via a slot architecture. Example slot architectures may include, but are not limited to, Accelerated Graphics Port (AGP), Cardbus, (Extended) Industry Standard Architecture ((E)ISA), Micro Channel Architecture (MCA), NuBus, Peripheral Component Interconnect (Extended) (PCI(X)), PCI Express, Personal Computer Memory Card International Association (PCMCIA), and the like.

[0098] The computing architecture 1200 may include or implement various articles of manufacture. Articles of manufacture may include a computer-readable storage medium storing logic. Examples of computer-readable storage media may include any tangible medium capable of storing electronic data, including volatile or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writable or rewritable memory, etc. Examples of logic may include executable computer program instructions implemented using any suitable type of code, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, object-oriented code, visual code, etc. Embodiments may also be implemented at least in part as instructions contained in or on a non-transitory computer-readable medium, which may be read and executed by one or more processors to enable the operations described herein to be performed.

[0099] The system memory 1206 may include various types of computer-readable storage media in the form of one or more higher-speed memory units, such as read-only memory (ROM), random access memory (RAM), dynamic RAM (DRAM), double data rate DRAM (DDRAM), synchronous DRAM (SDRAM), static RAM (SRAM), programmable ROM (PROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, polymer memory such as ferroelectric polymer memory, bidirectional memory, phase change or ferroelectric memory, silicon-oxide-nitride-oxide-silicon (SONOS) memory, magnetic or optical cards, device arrays such as redundant array of independent disks (RAID) drives, solid-state memory devices (e.g., USB memory, solid-state drive (SSD)), and any other type of storage medium suitable for storing information. Fig.12 In the illustrative embodiment shown, system memory 1206 may include nonvolatile memory 1210 and / or volatile memory 1213. A basic input / output system (BIOS) may be stored in nonvolatile memory 1210.

[0100] The computer 1202 may include various types of computer-readable storage media in the form of one or more slower memory units, including an internal (or external) hard disk drive (HDD) 1214, a magnetic floppy disk drive (FDD) 1216 that reads from or writes to a removable disk 1018, and an optical drive 1220 that reads from or writes to a removable optical disk 1222 (e.g., a CD-ROM, DVD, or Blu-ray disc). The HDD 1214, FDD 1216, and optical drive 1220 may be connected to the system bus 1208 via a HDD interface 1224, a FDD interface 1226, and an optical drive interface 1228, respectively. The HDD interface 1224 for external drive implementations may include at least one or both of a Universal Serial Bus (USB) and IEEE 1394 interface technologies.

[0101] The drives and associated computer-readable media provide volatile and / or nonvolatile storage of data, data structures, computer-executable instructions, etc. For example, several program modules may be stored in the drives and memory units 1210, 1213, including an operating system 1230, one or more application programs 1232, other program modules 1234, and program data 1236. In one embodiment, the one or more application programs 1232, other program modules 1234, and program data 1236 may include, for example, various applications and / or components for implementing the disclosed embodiments.

[0102] A user may enter commands and information into the computer 1202 through one or more wired / wireless input devices (e.g., keyboard 1238) and pointing devices (e.g., mouse 1240). Other input devices may include a microphone, infrared (IR) remote control, radio frequency (RF) remote control, game pad, stylus, card reader, dongle, fingerprint reader, glove, graphic tablet device, joystick, keyboard, retina reader, touch screen (e.g., capacitive, resistive, etc.), trackball, track pad, sensor, stylus, etc. These and other input devices are typically connected to the processing unit 1204 through an input device interface 1242 coupled to the system bus 1208, but may be connected through other interfaces such as a parallel port, an IEEE 1394 serial port, a game port, a USB port, an IR port, and the like.

[0103] A display 1244 is also connected to the system bus 1208 via an interface, such as a video adapter 1246. The display 1244 may be internal or external to the computer 1202. In addition to the display 1244, computers typically include other peripheral output devices, such as speakers, printers, and the like.

[0104] The computer 1202 can operate in a networked environment using logical connections via wired and / or wireless communications with one or more remote computers (e.g., remote computer 1248). The remote computer 1248 can be a workstation, server computer, router, personal computer, portable computer, microprocessor-based entertainment appliance, peer device, or other public network node, and typically includes many or all of the elements described with respect to the computer 1202, but for simplicity purposes, only a memory / storage device 1250 is shown. The depicted logical connections include wired / wireless connections to a local area network (LAN) 1252 and / or a larger network such as a wide area network (WAN) 1254. Such LAN and WAN networking environments are common in offices and companies, and facilitate enterprise-wide computer networks such as intranets, all of which can be connected to global communication networks such as the Internet.

[0105] When used in a LAN networking environment, the computer 1002 is connected to the LAN 1252 through a wired and / or wireless communication network interface or adapter 1256. The adapter 1256 may facilitate wired and / or wireless communication to the LAN 1252, which may also include a wireless access point disposed thereon for communicating with the wireless functionality of the adapter 1256.

[0106] When used in a WAN networking environment, the computer 1202 may include a modem 1258, or be connected to a communications server on the WAN 1254, or have other means for establishing communications over the WAN 1254 (e.g., by way of the Internet). The modem 1258, which may be internal or external and may be a wired and / or wireless device, is connected to the system bus 1208 via the input device interface 1242. In a networking environment, program modules depicted with respect to the computer 1202, or portions thereof, may be stored in the remote memory / storage device 1250. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.

[0107] The computer 1202 is operable to communicate with wired and wireless devices or entities using the IEEE 802 family of standards, such as wireless devices operatively arranged for wireless communication (e.g., IEEE 802.11 over-the-air modulation techniques). This includes at least Wi-Fi (or Wireless Fidelity), WiMax, and Bluetooth. TM Wireless technology and others. Therefore, the communication can be a predefined structure with a conventional network or only with ad hoc communication between at least two devices. Wi-Fi networks use radio technology called IEEE802.11x (a, b, g, n, etc.) to provide secure, reliable, and fast wireless connections. Wi-Fi networks can be used to connect computers to each other, to the Internet, and to wired networks (which use IEEE 802.3 related media and functions).

[0108] Fig.13 A block diagram of an exemplary communication architecture 1300 suitable for implementing various embodiments as previously described is shown. The communication architecture 1300 includes various common communication elements, such as transmitters, receivers, transceivers, radios, network interfaces, baseband processors, antennas, amplifiers, filters, power supplies, etc. However, the embodiments are not limited to implementation by the communication architecture 1300.

[0109] like Fig.13 As shown, the communication architecture 1300 includes one or more clients 1310 and servers 1340. The client 1310 can implement, for example, a client device 1310. The server 1340 can implement, for example, a server device 1340. The client 1310 and the server 1340 are operably connected to one or more respective client data stores 1320 and server data stores 1350 that can be used to store information local to the respective client 1310 and server 1340 (e.g., cookies and / or associated contextual information).

[0110] Client 1310 and server 1340 can use communication framework 1330 to transmit information between each other. Communication framework 1330 can implement any well-known communication technology and protocol. Communication framework 1330 can be implemented as a packet switching network (e.g., a public network such as the Internet, a private network such as an intranet, etc.), a circuit switching network (e.g., a public switched telephone network), or a combination of a packet switching network and a circuit switching network (using appropriate gateways and converters).

[0111] The communication framework 1330 can implement various network interfaces arranged to receive, transmit and connect to the communication network. The network interface can be regarded as a special form of input and output interface. The network interface can adopt connection protocols including but not limited to direct connection, Ethernet (e.g., thick, thin, twisted pair 10 / 100 / 1000 basic T, etc.), token ring, wireless network interface, cellular network interface, IEEE 802.11ax network interface, IEEE 802.16 network interface, IEEE 802.20 network interface, etc. In addition, multiple network interfaces can be used to participate in various communication network types. For example, multiple network interfaces can be used to allow communication through broadcast, multicast and unicast networks. If the processing requirements specify a larger amount of speed and capacity, the distributed network controller architecture can be similarly used for pooling, load balancing and otherwise increasing the communication bandwidth required by the client 1310 and the server 1340. The communication network can be any one and combination of wired and / or wireless networks, including but not limited to direct interconnection, secure customized connection, private network (e.g., corporate intranet), public network (e.g., Internet), personal area network (PAN), local area network (LAN), metropolitan area network (MAN), operating mission as a node on the Internet (OMNI), wide area network (WAN), wireless network, cellular network and other communication networks.

[0112] Some embodiments may be described using the expressions "one embodiment" or "embodiment" and their derivatives. These terms mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment. The phrase "in one embodiment" appearing in various places in the specification does not necessarily all refer to the same embodiment. In addition, some embodiments may be described using the expressions "coupled" and "connected" and their derivatives. These terms are not necessarily intended to be synonymous with each other. For example, some embodiments may be described using the terms "connected" and / or "coupled" to indicate that two or more elements are in direct physical or electrical contact with each other. However, the term "coupled" may also mean that two or more elements are not in direct contact with each other, but still cooperate or interact with each other.

[0113] With general reference to the notations and nomenclature used herein, the specific embodiments herein can be presented in terms of program processes executed on a computer or computer network. These process descriptions and representations are used by those skilled in the art to most effectively convey the substance of their work to other persons skilled in the art.

[0114] A process is here and generally considered to be a self-consistent sequence of operations leading to a desired result. These operations are those requiring physical manipulation of physical quantities. Typically, but not necessarily, these quantities take the form of electrical, magnetic or optical signals capable of being stored, transferred, combined, compared and otherwise manipulated. Primarily for reasons of common usage, it proves convenient at times to refer to these signals as bits, values, elements, symbols, characters, terms, numbers or the like. It should be noted, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities.

[0115] In addition, the manipulations performed are often referred to in terms such as adding or comparing, which are often associated with mental operations performed by a human operator. In any of the operations described herein that form part of one or more embodiments, such capabilities of a human operator are not necessary or desirable in most cases. Instead, the operations are machine operations. Useful machines for performing the operations of the various embodiments include general purpose digital computers or similar devices.

[0116] Various embodiments also relate to devices or systems for performing these operations. The device may be specially constructed for the desired purpose, or it may include a general purpose computer as selectively activated or reconfigured by a computer program stored in the computer. The process presented herein is essentially independent of a specific computer or other device. Various general purpose machines may be used with programs written according to the teachings of this article, or it may prove convenient to construct more specialized devices to perform the desired method steps. The desired structures of various these machines will appear from the description given.

[0117] In the foregoing detailed description, it can be seen that various features are combined in a single embodiment for the purpose of making the disclosure fluent. The method of the disclosure should not be interpreted as reflecting the intention that the claimed embodiment requires more features than the features explicitly cited in each claim. On the contrary, as reflected in the accompanying claims, the subject matter of the invention lies in less than all the features of a single disclosed embodiment. Therefore, the accompanying claims are hereby incorporated into the detailed description, wherein each claim is independently used as a separate embodiment. In the accompanying claims, the terms "including" and "in which" are used as the colloquial English equivalents of the corresponding terms "comprising" and "wherein", respectively. In addition, the terms "first", "second", "third", etc. are used only as labels, and are not intended to impose numerical requirements on their objects.

[0118] What has been described above includes examples of the disclosed architecture. Of course, it is not possible to describe every conceivable combination of components and methodologies, but one of ordinary skill in the art may recognize that many additional combinations and permutations are possible.

[0119] Example 1. A system for coupling a trusted execution environment with a memory, comprising: a processor including a memory configured to couple with the trusted execution environment, the processor configured to: indicate to the trusted execution environment that the memory supports exclusive access to the trusted execution environment; receive instructions from the trusted execution environment; and implement an access control policy of an interface plug-in to limit access to the memory by the trusted execution environment to a partition of the memory associated with the trusted execution environment.

[0120] Example 2. The system of Example 1, wherein the memory is non-volatile random access memory (NVRAM).

[0121] Example 3. The system of Example 1, wherein the partition of memory associated with the trusted execution environment is created by the system BIOS.

[0122] Example 4. The system of Example 1, wherein the trusted execution environment is a Software Guard Extensions (SGX) system.

[0123] Example 5. The system of Example 1, wherein the trusted execution environment is a virtual machine manager (VMM) system.

[0124] Example 6. The system of Example 1, wherein the memory comprises a plurality of partitions, each of the plurality of partitions being statically associated with a trusted execution environment.

[0125] Example 7. The system of Example 1, wherein the partition of memory associated with the trusted execution environment includes save-restore information for one or more enclaves.

[0126] Example 8. The system of Example 1, wherein the access control policy is specifically associated with the trusted execution environment.

[0127] Example 9. The system of Example 1, wherein the access control policy is specifically associated with a partition of memory associated with the trusted execution environment.

[0128] Example 10. The system of Example 1, wherein the access control policy comprises a read instruction for reading data stored in a partition of the memory associated with the trusted execution environment.

[0129] Example 11. The system of Example 1, wherein the access control policy includes a write instruction for writing data to a partition of the memory associated with the trusted execution environment.

[0130] Example 12. The system of Example 1, wherein the access control policy comprises one or more of: a trusted execution environment identifier, a trusted execution environment instruction, and a range of memory locations associated with the trusted execution environment.

[0131] Example 13. A computer-implemented method for coupling a trusted execution environment with a memory, comprising: indicating by a processor to the trusted execution environment that the processor's memory supports exclusive access to the trusted execution environment; receiving instructions from the trusted execution environment; and implementing an access control policy of an interface plug-in to limit access to the memory by the trusted execution environment to a partition of the memory associated with the trusted execution environment.

[0132] Example 14. The computer-implemented method of Example 13, wherein the memory is non-volatile random access memory (NVRAM).

[0133] Example 15. The computer-implemented method of Example 13, wherein the partition of memory associated with the trusted execution environment is created by a system BIOS.

[0134] Example 16. The computer-implemented method of Example 13, wherein the trusted execution environment is a Software Guard Extensions (SGX) system.

[0135] Example 17. The computer-implemented method of Example 13, wherein the trusted execution environment is a virtual machine manager (VMM) system.

[0136] Example 18. The computer-implemented method of Example 13, wherein the memory comprises a plurality of partitions, each partition of the plurality of partitions being statically associated with a trusted execution environment.

[0137] Example 19. The computer-implemented method of Example 13, wherein the partition of memory associated with the trusted execution environment includes save-restore information for one or more enclaves.

[0138] Example 20. The computer-implemented method of Example 13, wherein the access control policy is specifically associated with a trusted execution environment.

[0139] Example 21. The computer-implemented method of Example 13, wherein the access control policy is specifically associated with a partition of memory associated with the trusted execution environment.

[0140] Example 22. The computer-implemented method of Example 13, wherein the access control policy comprises a read instruction for reading data stored within a partition of the memory associated with the trusted execution environment.

[0141] Example 23. The computer-implemented method of Example 13, wherein the access control policy comprises a write instruction for writing data to a partition of the memory associated with the trusted execution environment.

[0142] Example 24. The computer-implemented method of Example 13, wherein the access control policy comprises one or more of: a trusted execution environment identifier, a trusted execution environment instruction, and a range of memory locations associated with the trusted execution environment.

[0143] Example 25. An article comprising a non-transitory computer-readable storage medium storing instructions for execution by a processing circuit of a computing device for coupling a trusted execution environment with a memory, the instructions causing the computing device to: indicate by a processor to the trusted execution environment that the processor's memory supports exclusive access to the trusted execution environment; receive instructions from the trusted execution environment; and implement an access control policy of an interface plug-in to limit access to the memory by the trusted execution environment to a partition of the memory associated with the trusted execution environment.

[0144] Example 26. The article of Example 25, wherein the memory is non-volatile random access memory (NVRAM).

[0145] Example 27. The article of Example 25, wherein the partition of memory associated with the trusted execution environment is created by the system BIOS.

[0146] Example 28. The computer-implemented method of Example 13, wherein the trusted execution environment is a Software Guard Extensions (SGX) system.

[0147] Example 29. The computer-implemented method of Example 13, wherein the trusted execution environment is a virtual machine manager (VMM) system.

[0148] Example 30. The article of Example 25, wherein the memory comprises a plurality of partitions, each of the plurality of partitions being statically associated with a trusted execution environment.

[0149] Example 31. The article of Example 25, wherein the partition of memory associated with the trusted execution environment includes save-restore information for one or more enclaves.

[0150] Example 32. The article of Example 25, wherein the access control policy is specifically associated with the trusted execution environment.

[0151] Example 33. The article of Example 25, wherein the access control policy is specifically associated with a partition of memory associated with the trusted execution environment.

[0152] Example 34. The article of Example 25, wherein the access control policy includes a read instruction for reading data stored in a partition of the memory associated with the trusted execution environment.

[0153] Example 35. The article of Example 25, wherein the access control policy includes write instructions for writing data to a partition of memory associated with the trusted execution environment.

[0154] Example 36. The article of Example 25, wherein the access control policy includes one or more of: a trusted execution environment identifier, a trusted execution environment instruction, and a range of memory locations associated with the trusted execution environment.

[0155] Example 37. A computing device for coupling a trusted execution environment with a memory, comprising: a unit for indicating to the trusted execution environment that the processor's memory supports exclusive access to the trusted execution environment; a unit for receiving instructions from the trusted execution environment; and a unit for implementing an access control policy of an interface plug-in to limit the trusted execution environment's access to the memory to a partition of the memory associated with the trusted execution environment.

[0156] Example 38. The computing device of Example 37, wherein the memory is non-volatile random access memory (NVRAM).

[0157] Example 39. The computing device of Example 37, wherein the partition of memory associated with the trusted execution environment is created by a system BIOS.

[0158] Example 40. The computing device of Example 37, wherein the trusted execution environment is a Software Guard Extensions (SGX) system.

[0159] Example 41. The computing device of Example 37, wherein the trusted execution environment is a virtual machine manager (VMM) system.

[0160] Example 42. The computing device of Example 37, wherein the memory comprises a plurality of partitions, each of the plurality of partitions being statically associated with a trusted execution environment.

[0161] Example 43. The computing device of Example 37, wherein the partition of memory associated with the trusted execution environment includes save-restore information for one or more enclaves.

[0162] Example 44. The computing device of Example 37, wherein the access control policy is specifically associated with the trusted execution environment.

[0163] Example 45. The computing device of Example 37, wherein the access control policy is specifically associated with a partition of memory associated with the trusted execution environment.

[0164] Example 46. The computing device of Example 37, wherein the access control policy includes a read instruction for reading data stored in a partition of the memory associated with the trusted execution environment.

[0165] Example 47. The computing device of Example 37, wherein the access control policy includes a write instruction for writing data to a partition of memory associated with the trusted execution environment.

[0166] Example 48. The computing device of Example 37, wherein the access control policy comprises one or more of: a trusted execution environment identifier, a trusted execution environment instruction, and a range of memory locations associated with the trusted execution environment.

[0167] Example 49. A device for coupling a trusted execution environment with a memory, comprising: at least one memory; at least one processor; and logic configured to couple the trusted execution environment with the memory, at least a portion of the logic being included in hardware and executed by at least one processor, the logic being used to: indicate to the trusted execution environment that the processor's memory supports specialized access to the trusted execution environment; receive instructions from the trusted execution environment; and implement an access control policy of an interface plug-in to limit access to the memory by the trusted execution environment to a partition of the memory associated with the trusted execution environment.

[0168] Example 50. The apparatus of Example 49, wherein the memory is non-volatile random access memory (NVRAM).

[0169] Example 51. The apparatus of Example 49, wherein the partition of memory associated with the trusted execution environment is created by a system BIOS.

[0170] Example 52. The apparatus of Example 49, wherein the trusted execution environment is a Software Guard Extensions (SGX) system.

[0171] Example 53. The apparatus of Example 49, wherein the trusted execution environment is a virtual machine manager (VMM) system.

[0172] Example 54. The apparatus of Example 49, wherein the memory comprises a plurality of partitions, each of the plurality of partitions being statically associated with a trusted execution environment.

[0173] Example 55. The apparatus of Example 49, wherein the partition of memory associated with the trusted execution environment includes save-restore information for one or more enclaves.

[0174] Example 56. The apparatus of Example 49, wherein the access control policy is specifically associated with a trusted execution environment.

[0175] Example 57. The apparatus of example wherein the access control policy is specifically associated with a partition of memory associated with a trusted execution environment.

[0176] Example 58. The apparatus of Example 49, wherein the access control policy comprises a read instruction for reading data stored in a partition of the memory associated with the trusted execution environment.

[0177] Example 59. The apparatus of Example 49, wherein the access control policy comprises write instructions for writing data to a partition of memory associated with the trusted execution environment.

[0178] Example 60. The apparatus of Example 49, wherein the access control policy comprises one or more of: a trusted execution environment identifier, a trusted execution environment instruction, and a range of memory locations associated with the trusted execution environment.

Claims

1. A system for coupling a trusted execution environment with a memory, comprising: A processor comprising a processor circuit module and the memory configured to interface with a plurality of trusted execution environments, the memory comprising a plurality of partitions, wherein one of the plurality of partitions is statically associated with one of the plurality of trusted execution environments, the processor being configured to: indicating to a trusted execution environment of the plurality of trusted execution environments that the memory supports exclusive access to the one of the plurality of trusted execution environments; receiving an instruction from the one of the plurality of trusted execution environments; and Implement an access control policy of the interface plug-in, wherein the access control policy allows access by the one of the multiple trusted execution environments to the one of the multiple partitions of the memory that is associated with the one of the multiple trusted execution environments, and restricts access by other trusted execution environments among the multiple trusted execution environments to the one of the multiple partitions.

2. The system according to claim 1, wherein: The memory is non-volatile random access memory (NVRAM).

3. The system according to claim 1, wherein: The one of the plurality of partitions of the memory associated with the one of the plurality of trusted execution environments is created by a system BIOS.

4. The system according to claim 1, wherein: The one of the multiple trusted execution environments is a Software Guard Extensions (SGX) system.

5. The system according to claim 1, wherein: The one of the plurality of trusted execution environments is a virtual machine manager (VMM) system.

6. The system according to claim 1, wherein: The one of the plurality of partitions of the memory associated with the one of the plurality of trusted execution environments includes save-restore information for one or more enclaves.

7. The system according to claim 1, wherein: The access control policy includes read instructions for reading data stored within the one of the plurality of partitions of the memory that is associated with the one of the plurality of trusted execution environments.

8. The system according to claim 1, wherein: The access control policy includes write instructions for writing data to the one of the plurality of partitions of the memory associated with the one of the plurality of trusted execution environments.

9. The system according to claim 1, wherein: The access control policy includes one or more of: a trusted execution environment identifier associated with the one of the plurality of trusted execution environments, trusted execution environment instructions, and a range of memory locations.

10. A computer-implemented method for coupling a trusted execution environment with a memory, the memory comprising a plurality of partitions, wherein: A partition of the plurality of partitions is statically associated with a trusted execution environment of the plurality of trusted execution environments, the method comprising: indicating, by the processor, to the one of the plurality of trusted execution environments that the memory supports exclusive access to the one of the plurality of trusted execution environments; receiving an instruction from the one of the plurality of trusted execution environments; and Implement an access control policy of the interface plug-in, wherein the access control policy allows access to the one of the multiple partitions of the memory that is associated with the one of the multiple trusted execution environments by the one of the multiple trusted execution environments, and restricts access to the one of the multiple partitions of the memory that is associated with the one of the multiple trusted execution environments by other trusted execution environments among the multiple trusted execution environments.

11. The computer-implemented method of claim 10, wherein: The memory is non-volatile random access memory (NVRAM).

12. The computer-implemented method of claim 10, wherein: The one of the plurality of partitions of the memory associated with the one of the plurality of trusted execution environments is created by a system BIOS.

13. The computer-implemented method of claim 10, wherein: The one of the multiple trusted execution environments is a Software Guard Extensions (SGX) system.

14. The computer-implemented method of claim 10, wherein: The one of the plurality of trusted execution environments is a virtual machine manager (VMM) system.

15. The computer-implemented method of claim 10, wherein: The one of the plurality of partitions of the memory associated with the one of the plurality of trusted execution environments includes save-restore information for one or more enclaves.

16. The computer-implemented method of claim 10, wherein: The access control policy includes read instructions for reading data stored within the one of the plurality of partitions of the memory that is associated with the one of the plurality of trusted execution environments.

17. The computer-implemented method of claim 10, wherein: The access control policy includes write instructions for writing data to the one of the plurality of partitions of the memory associated with the one of the plurality of trusted execution environments.

18. The computer-implemented method of claim 10, wherein: The access control policy includes one or more of: a trusted execution environment identifier associated with the one of the plurality of trusted execution environments, trusted execution environment instructions, and a range of memory locations.

19. An apparatus for coupling a trusted execution environment with a memory, comprising: at least one memory; at least one processor; as well as Logic configured to interface a plurality of trusted execution environments with the at least one memory, the at least one memory comprising a plurality of partitions, wherein one of the plurality of partitions is statically associated with one of the plurality of trusted execution environments, at least a portion of the logic being included in hardware and executed by the at least one processor, the logic to: indicating to the one of the plurality of trusted execution environments that the at least one memory supports exclusive access to the one of the plurality of trusted execution environments; receiving an instruction from the one of the plurality of trusted execution environments; and Implement an access control policy of the interface plug-in, wherein the access control policy allows access by the one of the multiple trusted execution environments to the one of the multiple partitions of the at least one memory that is associated with the one of the multiple trusted execution environments, and restricts access by other trusted execution environments among the multiple trusted execution environments to the one of the multiple partitions.

20. A computer program product having stored thereon a computer program which, when executed by a processor, enables the processor to perform the method according to any one of claims 10-18.

Citation Information

Patent Citations

  • Systems and methods for using synthetic instructions in a virtual machine

    US20050081199A1

  • Multi-level security system for enabling secure file sharing across multiple security levels and method thereof

    US20160117519A1

  • Methods and systems for utilizing cryptographic functions of a cryptographic co-processor

    US7986786B2

  • Execution context migration method and apparatus

    WO2016149895A1