A system on chip (SOC) is an integrated circuit that integrates all components of a computer or other electronic system. These components include a central processing unit (CPU), memory, input/output (IO) ports and secondary storage, which are all included on a single substrate or microchip. Additionally, SOCs enable the integration of third party components via a standardized on-die interconnect protocol. However, the addition of such components may lead to security vulnerabilities.
So that the manner in which the above recited features can be understood in detail, a more particular description, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments and are therefore not to be considered limiting of its scope, for the disclosure may admit other equally effective embodiments.
In the following description, numerous specific details are set forth to provide a more thorough understanding of various embodiments. However, it will be apparent to one of skill in the art that the present embodiments nay be practiced without one or more of these specific details. In other instances, well-known features have not been described in order to avoid obscuring any of the techniques.
In embodiments, an on-chip secure micro controller is provided to intercept memory access grant requests initiated by boot firmware and perform an alias check of the memory map. In further embodiments, the micro controller performs an attestation of the memory map to one or more hosts or other system components.
References to “one embodiment”, “an embodiment”, “example embodiment”, “various embodiments”, etc., indicate that the embodiment(s) so described may include particular features, structures, or characteristics, but not every embodiment necessarily includes the particular features, structures, or characteristics. Further, some embodiments may have some, all, or none of the features described for other embodiments.
In the following description and claims, the term “coupled” along with its derivatives, may be used. “Coupled” is used to indicate that two or more elements co-operate or interact with each other, but they may or may not have intervening physical or electrical components between them.
As used in the claims, unless otherwise specified, the use of the ordinal adjectives “first”, “second”, “third”, etc., to describe a common element, merely indicate that different instances of like elements are being referred to, and are not intended to imply that the elements so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
It is to be appreciated that a lesser or more equipped system than the example described above may be preferred for certain implementations. Therefore, the configuration of computing device 100 may vary from implementation to implementation depending upon numerous factors, such as price constraints, performance requirements, technological improvements, or other circumstances.
Embodiments may be implemented as any or a combination of: one or more microchips or integrated circuits interconnected using a parentboard, hardwired logic, software stored by a memory device and executed by a microprocessor, firmware, an application specific integrated circuit (ASIC), and/or a field programmable gate array (FPGA). The terms “logic”, “module”, “component”, “engine”, and “mechanism” may include, by way of example, software or hardware and/or a combination thereof, such as firmware.
Embodiments may be implemented using one or more memory chips, controllers, CPUs (Central Processing Unit), microchips or integrated circuits interconnected using a motherboard, an application specific integrated circuit (ASIC), and/or a field programmable gate array (FPGA). The term “logic” may include, by way of example, software or hardware and/or combinations of software and hardware.
According to embodiment, IP agents 230 may include general purpose processors (e.g., in-order or out-of-order cores), fixed function units, graphics processors, I/O controllers, display controllers, etc. In such an embodiment, each IP agent 230 includes a hardware interface 235 to provide standardization to enable the IP agent 230 to communicate with SOC 210 components. For example, in an embodiment in which IPA agent 230 is a third party visual processing unit (VPU), interface 235 provides a standardization to enable the VPU to access memory 108 via fabric 205.
SOC 210 also includes a security controller 240 that operates as a security engine to perform various security operations (e.g., security processing, cryptographic functions, etc.) for SOC 210. In one embodiment, security controller 240 comprises an IP agent 230 that is implemented to perform the security operations. Further, SOC 210 includes a non-volatile memory 250. Non-volatile memory 250 may be implemented as a Peripheral Component Interconnect Express (PCIe) storage drive, such as a solid state drives (SSD) or Non-Volatile Memory Express (NVMe) drives. In one embodiment, non-volatile memory 250 Basic Input/output System (BIOS) firmware 255 operates as boot firmware to perform hardware initialization during a power-on startup (or booting process).
Typically boot firmware is implemented to construct a system memory map for one or more SOC 210 memory devices (e.g., memory 108). A memory map is a data structure (e.g., typically included in the memory) that indicates how the memory is configured. Currently, the memory map programming performed by BIOS is programmed at the IP agents. However in this design the memory map is not verified prior to enabling memory access to the host CPU. This enforces security centric IP agents (e.g., security controller 240) to individually check aliases. Not having a centralized mechanism to perform alias checking and communicating an attestation to a host and other security elements is a big security gap, which forces security centric IPs to use alias checking code inside the SOC. Accordingly, the current alias checking process within an SOC is prone to security bugs and reduces responsiveness time.
According to one embodiment, SOC 210 includes a micro controller 260 to receive memory access grant requests initiated by BIOS 255 and enforce memory map checks and alias checks. In such an embodiment, BIOS boot firmware programs the memory map for all IP agents 230 prior to enabling host access (e.g., CPU 112) to memory 108. In a further embodiment, micro controller 260 attests a verified memory map result for each platform IP agent 230. In yet a further embodiment, a security centric IP agent (e.g., security controller 240) accepts and implements the memory map attested by micro controller 260, thus avoiding alias check duplication.
Upon receiving the request, secure map logic 310 performs the memory alias check by comparing a memory range across all IP agents 230 and verifying that one or more rules are adhered to (e.g., no range overlap, consistent range across all IP's, alignment rules etc.) across the IP agents 230. Once the alias check has been performed, secure map logic 310 locks registers associated with the memory map. In embodiments, secure map logic 310 locks the registers from further updates by setting IP agent 230 lock bits directly, or by requesting an IP agent 230 to lock registers itself and sending an acknowledgment to secure map logic 310 once locked. In a further embodiment, a Write Once register model is implemented for lock bits architecture. However in other embodiments, secure access policies to deny Host CPU access may be implemented.
Secure map logic 310 also performs a memory attestation process to verify the integrity of the memory map generated by boot firmware. In one embodiment, secure map logic 310 performs the attestation by storing integrity data and alias checking the results in an architectural defined status register. According to one embodiment, secure map logic 310 permits a host to access memory upon a determination that the attestation has passed (e.g., the integrity has been verified).
In yet a further embodiment, secure map logic 310 blocks access to memory upon determining that the attestation has failed (e.g., the integrity has not been verified). In such an embodiment, secure map logic 310 blocks access to memory via a hardware locking mechanism. Secure map logic 310 may block access by communicating with a memory controller at an IP agent 230, which sets architecture registers to grant or block access to memory.
Micro controller 260 also includes a publisher 320 to publish the results of the attestation to BIOS 255. In one embodiment, the results are published via a specification defined mechanism, such as model specific registers. Subsequently, BIOS polls the defined interface to take necessary actions based on platform 200 policy settings (e.g. success: REGULAR BOOT PATH, failure: FORCED HALT/RECOVERY PATH).
The above-described mechanism provides a one stop attestation and alias check solution in a SOC platform that permits host memory access only upon a determination that the attestation and alias check has passed. Accordingly, security threats to the SOC platform is mitigated.
The computing device 600 may additionally include one or more of the following: cache 662, a graphical processing unit (GPU) 612 (which may be the hardware accelerator in some implementations), a wireless input/output (I/O) interface 620, a wired I/O interface 630, memory circuitry 640, power management circuitry 650, non-transitory storage device 660, and a network interface 670 for connection to a network 672. The following discussion provides a brief, general description of the components forming the illustrative computing device 600. Example, non-limiting computing devices 600 may include a desktop computing device, blade server device, workstation, or similar device or system.
In embodiments, the processor cores 618 are capable of executing machine-readable instruction sets 614, reading data and/or instruction sets 614 from one or more storage devices 660 and writing data to the one or more storage devices 660. Those skilled in the relevant art will appreciate that the illustrated embodiments as well as other embodiments may be practiced with other processor-based device configurations, including portable electronic or handheld electronic devices, for instance smartphones, portable computers, wearable computers, consumer electronics, personal computers (“PCs”), network PCs, minicomputers, server blades, mainframe computers, and the like.
The processor cores 618 may include any number of hardwired or configurable circuits, some or all of which may include programmable and/or configurable combinations of electronic components, semiconductor devices, and/or logic elements that are disposed partially or wholly in a PC, server, or other computing system capable of executing processor-readable instructions.
The computing device 600 includes a bus or similar communications link 616 that communicably couples and facilitates the exchange of information and/or data between various system components including the processor cores 618, the cache 662, the graphics processor circuitry 612, one or more wireless I/O interfaces 620, one or more wired I/O interfaces 630, one or more storage devices 660, and/or one or more network interfaces 670. The computing device 600 may be referred to in the singular herein, but this is not intended to limit the embodiments to a single computing device 600, since in certain embodiments, there may be more than one computing device 600 that incorporates, includes, or contains any number of communicably coupled, collocated, or remote networked circuits or devices.
The processor cores 618 may include any number, type, or combination of currently available or future developed devices capable of executing machine-readable instruction sets.
The processor cores 618 may include (or be coupled to) but are not limited to any current or future developed single- or multi-core processor or microprocessor, such as: on or more systems on a chip (SOCs); central processing units (CPUs); digital signal processors (DSPs); graphics processing units (GPUs); application-specific integrated circuits (ASICs), programmable logic units, field programmable gate arrays (FPGAs), and the like. Unless described otherwise, the construction and operation of the various blocks shown in
The system memory 640 may include read-only memory (“ROM”) 642 and random access memory (“RAM”) 646. A portion of the ROM 642 may be used to store or otherwise retain a basic input/output system (“BIOS”) 644. The BIOS 644 provides basic functionality to the computing device 600, for example by causing the processor cores 618 to load and/or execute one or more machine-readable instruction sets 614. In embodiments, at least some of the one or more machine-readable instruction sets 614 cause at least a portion of the processor cores 618 to provide, create, produce, transition, and/or function as a dedicated, specific, and particular machine, for example a word processing machine, a digital image acquisition machine, a media playing machine, a gaming system, a communications device, a smartphone, or similar.
The computing device 600 may include at least one wireless input/output (I/O) interface 620. The at least one wireless I/O interface 620 may be communicably coupled to one or more physical output devices 622 (tactile devices, video displays, audio output devices, hardcopy output devices, etc.). The at least one wireless I/O interface 620 may communicably couple to one or more physical input devices 624 (pointing devices, touchscreens, keyboards, tactile devices, etc.). The at least one wireless I/O interface 620 may include any currently available or future developed wireless I/O interface. Example wireless I/O interfaces include, but are not limited to: BLUETOOTH®, near field communication (NFC), and similar.
The computing device 600 may include one or more wired input/output (I/O) interfaces 630. The at least one wired I/O interface 630 may be communicably coupled to one or more physical output devices 622 (tactile devices, video displays, audio output devices, hardcopy output devices, etc.). The at least one wired I/O interface 630 may be communicably coupled to one or more physical input devices 624 (pointing devices, touchscreens, keyboards, tactile devices, etc.). The wired I/O interface 630 may include any currently available or future developed I/O interface. Example wired I/O interfaces include, but are not limited to: universal serial bus (USB), IEEE 1394 (“FireWire”), and similar.
The computing device 600 may include one or more communicably coupled, non-transitory, data storage devices 660. The data storage devices 660 may include one or more hard disk drives (HDDs) and/or one or more solid-state storage devices (SSDs). The one or more data storage devices 660 may include any current or future developed storage appliances, network storage devices, and/or systems. Non-limiting examples of such data storage devices 660 may include, but are not limited to, any current or future developed non-transitory storage appliances or devices, such as one or more magnetic storage devices, one or more optical storage devices, one or more electro-resistive storage devices, one or more molecular storage devices, one or more quantum storage devices, or various combinations thereof. In some implementations, the one or more data storage devices 660 may include one or more removable storage devices, such as one or more flash drives, flash memories, flash storage units, or similar appliances or devices capable of communicable coupling to and decoupling from the computing device 600.
The one or more data storage devices 660 may include interfaces or controllers (not shown) communicatively coupling the respective storage device or system to the bus 616. The one or more data storage devices 660 may store, retain, or otherwise contain machine-readable instruction sets, data structures, program modules, data stores, databases, logical structures, and/or other data useful to the processor cores 618 and/or graphics processor circuitry 612 and/or one or more applications executed on or by the processor cores 618 and/or graphics processor circuitry 612. In some instances, one or more data storage devices 660 may be communicably coupled to the processor cores 618, for example via the bus 616 or via one or more wired communications interfaces 630 (e.g., Universal Serial Bus or USB); one or more wireless communications interfaces 620 (e.g., Bluetooth®, Near Field Communication or NFC); and/or one or more network interfaces 670 (IEEE 802.3 or Ethernet, IEEE 802.11, or Wi-Fi®, etc.).
Processor-readable instruction sets 614 and other programs, applications, logic sets, and/or modules may be stored in whole or in part in the system memory 640. Such instruction sets 614 may be transferred, in whole or in part, from the one or more data storage devices 660. The instruction sets 614 may be loaded, stored, or otherwise retained in system memory 640, in whole or in part, during execution by the processor cores 618 and/or graphics processor circuitry 612.
The computing device 600 may include power management circuitry 650 that controls one or more operational aspects of the energy storage device 652. In embodiments, the energy storage device 652 may include one or more primary (i.e., non-rechargeable) or secondary (i.e., rechargeable) batteries or similar energy storage devices. In embodiments, the energy storage device 652 may include one or more supercapacitors or ultracapacitors. In embodiments, the power management circuitry 650 may alter, adjust, or control the flow of energy from an external power source 654 to the energy storage device 652 and/or to the computing device 600. The power source 654 may include, but is not limited to, a solar power system, a commercial electric grid, a portable generator, an external energy storage device, or any combination thereof.
For convenience, the processor cores 618, the graphics processor circuitry 612, the wireless I/O interface 620, the wired I/O interface 630, the storage device 660, and the network interface 670 are illustrated as communicatively coupled to each other via the bus 616, thereby providing connectivity between the above-described components. In alternative embodiments, the above-described components may be communicatively coupled in a different manner than illustrated in
Embodiments may be provided, for example, as a computer program product which may include one or more machine-readable media having stored thereon machine-executable instructions that, when executed by one or more machines such as a computer, network of computers, or other electronic devices, may result in the one or more machines carrying out operations in accordance with embodiments described herein. A machine-readable medium may include, but is not limited to, floppy diskettes, optical disks, CD-ROMs (Compact Disc-Read Only Memories), and magneto-optical disks, ROMs, RAMs, EPROMs (Erasable Programmable Read Only Memories), EEPROMs (Electrically Erasable Programmable Read Only Memories), magnetic or optical cards, flash memory, or other type of media/machine-readable medium suitable for storing machine-executable instructions.
Moreover, embodiments may be downloaded as a computer program product, wherein the program may be transferred from a remote computer (e.g., a server) to a requesting computer (e.g., a client) by way of one or more data signals embodied in and/or modulated by a carrier wave or other propagation medium via a communication link (e.g., a modem and/or network connection).
Throughout the document, term “user” may be interchangeably referred to as “viewer”, “observer”, “speaker”, “person”, “individual”, “end-user”, and/or the like. It is to be noted that throughout this document, terms like “graphics domain” may be referenced interchangeably with “graphics processing unit”, “graphics processor”, or simply “GPU” and similarly, “CPU domain” or “host domain” may be referenced interchangeably with “computer processing unit”, “application processor”, or simply “CPU”.
It is to be noted that terms like “node”, “computing node”, “server”, “server device”, “cloud computer”, “cloud server”, “cloud server computer”, “machine”, “host machine”, “device”, “computing device”, “computer”, “computing system”, and the like, may be used interchangeably throughout this document. It is to be further noted that terms like “application”, “software application”, “program”, “software program”, “package”, “software package”, and the like, may be used interchangeably throughout this document. Also, terms like “job”, “input”, “request”, “message”, and the like, may be used interchangeably throughout this document.
In various implementations, the computing device may be a laptop, a netbook, a notebook, an ultrabook, a smartphone, a tablet, a personal digital assistant (PDA), an ultra mobile PC, a mobile phone, a desktop computer, a server, a set-top box, an entertainment control unit, a digital camera, a portable music player, or a digital video recorder. The computing device may be fixed, portable, or wearable. In further implementations, the computing device may be any other electronic device that processes data or records data for processing elsewhere.
The drawings and the forgoing description give examples of embodiments. Those skilled in the art will appreciate that one or more of the described elements may well be combined into a single functional element. Alternatively, certain elements may be split into multiple functional elements. Elements from one embodiment may be added to another embodiment. For example, orders of processes described herein may be changed and are not limited to the manner described herein. Moreover, the actions of any flow diagram need not be implemented in the order shown; nor do all of the acts necessarily need to be performed. Also, those acts that are not dependent on other acts may be performed in parallel with the other acts. The scope of embodiments is by no means limited by these specific examples. Numerous variations, whether explicitly given in the specification or not, such as differences in structure, dimension, and use of material, are possible. The scope of embodiments is at least as broad as given by the following claims.
Embodiments may be provided, for example, as a computer program product which may include one or more transitory or non-transitory machine-readable storage media having stored thereon machine-executable instructions that, when executed by one or more machines such as a computer, network of computers, or other electronic devices, may result in the one or more machines carrying out operations in accordance with embodiments described herein. A machine-readable medium may include, but is not limited to, floppy diskettes, optical disks, CD-ROMs (Compact Disc-Read Only Memories), and magneto-optical disks, ROMs, RAMs, EPROMs (Erasable Programmable Read Only Memories), EEPROMs (Electrically Erasable Programmable Read Only Memories), magnetic or optical cards, flash memory, or other type of media/machine-readable medium suitable for storing machine-executable instructions.
Some embodiments pertain to Example 1 that includes an apparatus to facilitate memory map security in a system on chip (SOC) comprising a memory device, a plurality of agents configured to access the memory device and a micro controller to receive a request to grant a host device access to the memory device and perform an alias checking process for each of the plurality of agents to verify accuracy of a memory map of the memory device.
Example 2 includes the subject matter of Example 1, wherein the micro controller locks registers associated with the memory map.
Example 3 includes the subject matter of Examples 1 and 2, further comprising a Basic Input/output System (BIOS) firmware to program the memory map for a plurality of agents.
Example 4 includes the subject matter of Examples 1-3, wherein the micro controller further performs an attestation process to verify the integrity of the memory map.
Example 5 includes the subject matter of Examples 1-4, wherein the micro controller permits the host device to access the memory device upon a determination that the integrity has been verified.
Example 6 includes the subject matter of Examples 1-5, wherein the micro controller blocks access to the host device upon a determination that the integrity has not been verified.
Example 7 includes the subject matter of Examples 1-6, wherein the micro controller blocks access to the host device via a hardware locking mechanism.
Example 8 includes the subject matter of Examples 1-7, wherein the micro controller publishes the results of the attestation to the BIOS firmware.
Some embodiments pertain to Example 9 that includes a method to facilitate memory map security in a system on chip (SOC), comprising receiving a request at a micro controller from Basic Input/output System (BIOS) firmware to grant a host device access to a memory device and perform access grant requests initiated by boot firmware, the micro controller performing an alias checking process to verify accuracy of a memory map of the memory device and the micro controller performing an attestation process to verify the integrity of the memory map.
Example 10 includes the subject matter of Example 9, further comprising the micro controller locking registers associated with the memory map.
Example 11 includes the subject matter of Examples 9 and 10, further comprising the micro controller permitting the host device to access the memory device upon a determination that the integrity has been verified.
Example 12 includes the subject matter of Examples 9-11, further comprising the micro controller blocking access to the host device upon a determination that the integrity has not been verified.
Example 13 includes the subject matter of Examples 9-12, wherein the micro controller blocks access to the host device via a hardware locking mechanism.
Example 14 includes the subject matter of Examples 9-13, further comprising the micro controller publishing the results of the attestation to the BIOS firmware.
Some embodiments pertain to Example 15 that includes a computing device comprising a processor, a memory device comprising a memory map, Basic Input/output System (BIOS) firmware to program the memory map for a plurality of agents, a fabric interface coupled between the processor, the memory device and the BIOS firmware and a micro controller, coupled to the fabric interface, to receive a request from the BIOS firmware to grant the processor access to the memory device and perform access grant requests initiated by boot firmware and perform an alias checking process to verify accuracy of a memory map of the memory device.
Example 16 includes the subject matter of Example 15, wherein the micro controller further performs an attestation process to verify the integrity of the memory map.
Example 17 includes the subject matter of Examples 15 and 16, wherein the micro controller permits the processor to access the memory device upon a determination that the integrity has been verified.
Example 18 includes the subject matter of Examples 15-17, wherein the micro controller blocks access to the processor device upon a determination that the integrity has not been verified.
Example 19 includes the subject matter of Examples 15-18, wherein the micro controller blocks access to the host device via a hardware locking mechanism.
Example 20 includes the subject matter of Examples 15-19, further comprising the plurality of IP agents coupled to the fabric interface.
The embodiments of the examples have been described above with reference to specific embodiments. Persons skilled in the art, however, will understand that various modifications and changes may be made thereto without departing from the broader spirit and scope as set forth in the appended claims. The foregoing description and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
Number | Name | Date | Kind |
---|---|---|---|
6343324 | Hubis | Jan 2002 | B1 |
11005936 | Liu | May 2021 | B1 |
20050086508 | Moran | Apr 2005 | A1 |
20150271139 | Lukacs | Sep 2015 | A1 |
20150317089 | Ho | Nov 2015 | A1 |
20160216893 | Chen | Jul 2016 | A1 |
20180025150 | Shivanna | Jan 2018 | A1 |
20190042780 | Brannock | Feb 2019 | A1 |
20200285403 | Kotary et al. | Sep 2020 | A1 |
20200334171 | Meier | Oct 2020 | A1 |
20210091952 | Wentz | Mar 2021 | A1 |
20210334222 | Wood | Oct 2021 | A1 |
Number | Date | Country |
---|---|---|
113448886 | Sep 2021 | CN |
Entry |
---|
“Computer Dictionary,” 1994, Microsoft Press, 2nd Edition, p. 218, definition for “interface” (Year: 1994). |
Number | Date | Country | |
---|---|---|---|
20200285403 A1 | Sep 2020 | US |