The increasing number of financial and personal transactions being performed on local or remote computers has instigated a need for the establishment of trustable or secure environments. More particularly, the secure environment attempts to address a problem of loss of privacy. For example, private data like credit card data, medical report data, bank account data, or the like, stored on a computer to facilitate transactions, or even to manage personal finances, may be accessed, corrupted or abused by another user of the same computer or by a networked system via a local area network (LAN), a wide area network (WAN), or by system interconnections established through access to the Internet. Users do not want their private data made public, altered or used in inappropriate transactions, regardless of whether the private data resides only on their personal computer or on a remote computer as a result of a transaction involving the private data across a network.
Existing systems provide little protection for private data unless the system is an isolated system. Isolated systems may utilize a closed set of only trusted software. Although these systems do not account for attacks from within the computer or network, such systems provide protection against outside attacks from potentially hostile code. These systems, however, are disadvantageous to the extent that they do not allow the simultaneous use of common, commercially available operating system and application software. Further, the establishment of larger networks degrades the protections offered for the private data and a side effect of the isolation, for example, prevents exchange of private data with an on-line banking system.
Other systems allow potentially hostile code or hardware to access private data by directly or indirectly accessing the memory storing the private data through, for instance, direct memory access (DMA) channels or a graphics aperture. DMA is a technique for transferring data between main memory and a device without passing it through the processor. Some expansion boards, such as CD-ROM cards, are capable of accessing the computer's DMA channel. The graphics aperture is a range of addresses that can be translated by an input-output (I/O) hub. The addresses accessed by a graphics card, for example, may be non-contiguous in main memory so the addresses may be translated via an address translation table such as a graphics address relocation table (GART) or a cache copy of the address translation table such as in a GART translation look-aside buffer (GTLB). The potentially hostile code or hardware can also access targeted memory locations indirectly by modifying the address translation table or by updating an operating system with code to make modifications to the targeted memory location or the address translation table. Modifying an address translation table can cause private data to be written to a memory location directly accessible to the hostile code or device or can allow addresses available for DMA to translate into a memory address for private data, comprising the security for the private data.
In the accompanying drawings, like references may indicate similar elements:
The following is a detailed description of example embodiments of the invention depicted in the accompanying drawings. The example embodiments are in such detail as to clearly communicate the invention. However, the amount of detail offered is not intended to limit the anticipated variations of embodiments. The variations of embodiments anticipated for the present invention are too numerous to discuss individually so the detailed descriptions below are designed to make such embodiments obvious to a person of ordinary skill in the art.
Methods and arrangements to interface memory are described. Many embodiments comprise comparing a transaction or access from a source to memory addresses associated with the source to determine whether an address associated with the transaction is accessible by the source. Some embodiments may comprise defining protected memory. Several embodiments may comprise defining protected memory by, for example, determining a configuration for memory. Such embodiments may comprise protecting a memory location or limiting access to memory addresses associated with a protected memory location. Some of these embodiments may comprise accessing registers to define protected memory and verifying accesses to a memory location according to the definition of protected memory. Further embodiments may comprise generating an association between a source of an access and a memory location and storing the association to facilitate access to the memory location by the source.
Referring now to
Bus 105 may comprise a bus and corresponding circuitry to facilitate access to system memory 160. In the present embodiment, bus 105 may comprise hardware to facilitate transactions to and from more than one processor.
Hub 110 may interface system memory 160 for processors 100, 101, 102, and 103 and I/O devices like graphics device 140 and I/O device 150. Hub 110 may comprise memory logic 115 and configuration memory 130. Memory logic 115 may couple with system memory 160 to associate memory addresses with the locations 165 and 170 in response to a request, to associated a source of an access with the locations 165 and 170 based on the request, and to approve the access by the source to system memory 160 after verification that the access is consistent with an association between the source and the locations 165 and 170. The source may comprise, for instance, microcode executed by a processor, code or a thread executed by one or more processors 100, 101, 102, and 103, code such as operating system or application software, or a device such as an I/O device. For example, hub 110 may initiate a secure environment in response to a request from an initiating logical processor (ILP) such as processor 100 or a thread executed by processor 100, 101, 102, and/or 103. The ILP and/or a remote logical processor (RLP) such as processors 101, 102, and 103 or a thread may request or initiate a request in hub 110 to define protected memory. In some embodiments, defining protected memory may comprise defining a protected memory location 165, an unprotected memory location 170, or both by associating a memory address with protected memory location 165 or unprotected memory location 170. After defining protected memory, the ILP and/or a remote logical processor or a thread may execute a code such as SVMM to manage a secure environment, store the code in protected memory location 165, and associated the protected memory location 165 with the code such that the code may access the protected memory location 165.
Memory logic 115 may define protected memory and verify an access based upon the definition of protected memory. Memory logic 115 may comprise configuration circuitry 120 and verification circuitry 125. Configuration circuitry 120 may generate data to associate the source of an access with the locations 165 and 170 in response to a request to define protected memory. In such embodiments, configuration circuitry 120 may store the data based upon a request to define protected memory, wherein the request may comprise a reference to a code or other device as the source of an access to associate the source with unprotected memory location 170 and/or protected memory location 165. For example, an I/O device such as graphics device 140 and/or I/O device 150 may request to define protected memory and configuration circuitry 120 may generate a definition of protected memory for the I/O device. Configuration circuitry 120 may determine a memory location accessible by the device in response to the request and may generate data to associate the device with the memory location. The memory location may comprise a memory address associated with part of protected memory location 165 and/or may comprise a memory address to define as protected memory location 165 for the device. In some embodiments, configuration circuitry 120 may generate data in the form of a table for the device and store the data in system memory 160. In other embodiments, configuration circuitry 120 may store data to associate a code or device with a protected memory location 165 and/or an unprotected memory location 170 in configuration memory 130.
In many embodiments, configuration circuitry 120 may store the data in a table to associate a memory location with a source of an access. The data may describe memory addresses that are accessible or are not accessible by the source. In such embodiments, configuration circuitry 120 may store the data based upon an access by the source to associate the source with protected memory location 165 and/or unprotected memory location 170 with the table. For instance, a port or I/O interface may request to define protected memory based upon an access by a source and the request may associate a source with a part of protected memory location 165 based upon the request.
Verification circuitry 125 may couple with configuration circuitry 120 to receive an access and determine whether the access is permissible in accordance with the definition of protected memory. For example, verification circuitry 125 may receive an access from SVMM to write to protected memory location 165. In response, verification circuitry 125 may compare the write request with the definition of protected memory generated by configuration circuitry 120. When the definition associates SVMM with a write to the protected memory location 165 of the access, verification circuitry 120 may approve the access. On the other hand, another code of the secure environment may request a write to part of protected memory location 165 that may comprise code for SVMM. Verification circuitry 125 may determine that a write to that part of protected memory location 165 is not associated with the code and verification circuitry 125 may not approve the access. In some embodiments, a read for the same part of protected memory location 165 may be associated with the code so an access by the code comprising a read request may be approved.
In several embodiments, verification circuitry 125 may approve an access based upon a table to associate the source of the access with the locations 165 and 170, wherein the access is associated with the locations 165 and 170. In many of these embodiments, configuration circuitry 120 may store data to associate a source of an access with a device or code in the table. The table may comprise one or more registers configured to associate the device with the locations 165 and 170 or may comprise a table in system memory 160. In one embodiment, the table may be stored in protected memory location 165. Verification circuitry 125 may compare the access with data in the table to determine whether the memory location associated with the access is accessible by the source. In further embodiments, verification circuitry 125 may compare the type of access, e.g. a read request or a write request, to the type of access associated with the source in the table.
In another embodiment, verification circuitry 125 may comprise circuitry to determine an address translation associated with an access to determine whether the access may be approved. For instance, an access from graphics device 140 may comprise an abbreviated memory address or an alias for a memory address in system memory 160. Verification circuitry 125 may translate the abbreviated memory address or alias via an address translation table and compare the translated address to the definition of protected memory generated by configuration circuitry 120.
In some embodiments, memory logic 115 may comprise configuration memory 130. Configuration memory 130 may couple with memory logic 115 to store an association between the memory addresses and the locations 165 and 170. In many embodiments, configuration memory 130 may receive data to describe a definition of protected memory and store the data to associate memory addresses of system memory 160 with locations 165 and 170. In a number of these embodiments, the definition may associate memory addresses with the protected memory location 165 and the remainder of the system memory 160 may comprise the memory addresses associated with unprotected memory location 170, or vice versa.
In several embodiments, configuration memory 130 may comprise a register. The register may be configured by memory logic 115 to associate the locations 165 and 170 with memory addresses. In some embodiments, storing an association in a register may indicate a source that has access to the memory address. In other embodiments, configuration memory 130 may store an association in a register to indicate that memory address may not be accessible by a source associated with the register. In further embodiments, configuration memory 130 may comprise a buffer, queue, or the like to store the association and/or the memory address.
Graphics device 140 may comprise an I/O device for graphics and may couple with hub 110 via a bus such as an accelerated graphics bus (AGP) or the like. Graphics device 140 couple with hub 110 to access memory addresses of system memory 160. In some embodiments graphics device 140 may request a memory location in system memory 160 via hub 110. Hub 110 may determine memory addresses within system memory 160 that are accessible by graphics device 140 and may generate data to facilitate access by graphics device 140. For example, graphics device 140 may comprise a limited amount of memory and may request access to system memory 160 to store more data. In response to the request, hub 110 may select part of protected memory location 165 or associate additional addresses with protected memory location 165 to provide graphics device 140 with more memory. Hub 110 may associate the selected or added part of protected memory location 165 with graphics device 140. After receiving an access from graphics device 140, hub 110 may verify that the memory address associated with the access is associated with graphics device 140 and may approve the access, without, for instance, requesting further approval for the access by the secure environment.
I/O device 150 may comprise, for instance, a peripheral component interconnect (PCI) card, universal serial bus (USB) card, switch, or the like to provide access to system memory 160 by I/O devices or may comprise an I/O device such as third generation I/O architecture (3GIO) cards, integrated drive electronics (IDE) cards, audio controllers (AC) like AC 97, USB devices, or the like. For example, I/O device 150 may interconnect one or more point-to-point bus for an I/O device to hub 110 to provide access to system memory 160. In response to an access or a request to determine a memory location accessible by the I/O device 150, or a device coupled with I/O device 150, hub 110 may determine a memory location such as part of protected memory location 165 and/or part of unprotected memory location 170. Hub 110 may then associate the part(s) with I/O device 150 and/or an I/O device coupled with I/O device 150 to facilitate access to the memory location. As a result, hub 110 may be capable of verifying an access via I/O device 150 without requesting verification by a processor 100, 101, 102 and 103 or a thread operating on processors 100, 101, 102 and/or 103.
System memory 160 may comprise volatile or non-volatile memory such as random access memory (RAM), flash memory, or the like. In one embodiment, system memory 160 may comprise dynamic random access memory (DRAM). After generating a definition of protected memory, system memory 160 may comprise memory addresses associated with protected memory location 165 and unprotected memory location 170.
Referring now to
Configuration circuitry 202 may receive request 201 to define protected memory and may generate a definition of protected memory based upon request 201. In one embodiment, in particular, configuration circuitry 202 may determine a memory location accessible by a device based upon request 201 for a memory location and may generate data to associate the memory location with the device. In alternative embodiments, configuration circuitry 202 may determine a memory location that may not be accessible by the device.
In some embodiments, configuration circuitry 202 may receive the request 201 from port 200. In other embodiments, configuration circuitry 202 may receive request 201 from a processor or a thread executed by a processor. For example, configuration circuitry 202 may receive request 201 to define protected memory for port 200, determine unallocated memory addresses of memory 240, and associate the memory addresses with a memory location for accesses via port 200. Approval to access the memory location may comprise approval by verification circuitry 270 to reduce the latency of accesses via port 200. Further, a device coupled with port 200 may request a memory location to be associated with the device rather than with port 200 in general.
Configuration circuitry 202 may comprise selection circuitry 205, determination circuitry 210, generation circuitry 215, and storage circuitry 220. Selection circuit 205 may select an address of memory 240 to associate with protected memory location 260 in response to request 201. For example, configuration circuitry 202 may receive request 201 to define protected memory. In response, selection circuitry 205 may determine unallocated memory addresses, contiguous or non-contiguous, and associate the memory addresses with protected memory location 260 and/or unprotected memory location 262 for access by a source of accesses associated with request 201.
Determination circuitry 210 may determine a protected memory location 260 and/or an unprotected memory location 262 to associate the protected memory location 260 and/or unprotected memory location 262 with a permissible access based upon the request 201. In some instances, determination circuitry 210 may determine whether memory addresses associated with an existing protected memory location 260 and/or unprotected memory location 262 may be accessible by the device. For example, an existing protected memory location 260 and/or unprotected memory location 262 may comprise memory locations established for a secure environment and/or for port 200. Determination circuitry 210 may check the definition of protected memory that established the locations 260 and 262 to determine the memory addresses that may be accessible to the device and associate the device with those locations 260 and 262. Further, based upon the request 201, determination circuitry 210 may establish additional locations 260 and/or 262 for port 200 or the device.
Generation circuitry 215 may generate an association between an address of memory and protected memory location 260 or unprotected memory location 262. Further, generation circuitry 215 may generate an association between a device and a memory location to facilitate access to memory 240. In many embodiments, generating an association may comprise generating data such as a memory address to store in register 230, generated table 245, and/or address translation table 255. For example, configuration circuitry 202 may define protected memory by assigning a memory address to protected memory location 260. After selecting a memory address, the memory address may be stored in register 230. The memory address may be accessible to port 200 for read requests but not for write requests, so data such as the memory address may be generated to associate a read request from port 200 with the memory address and the data may be stored in generated table 245. In some instances, the memory address received from a device to couple with port 200 may initiate access 272 with an abbreviated memory address so generation circuitry 215 may generate data such as an address translation to associate the abbreviated memory address with the memory address and store the data in address translation table 255.
In some embodiments, store circuitry 220 may store an association between an address of memory and protected memory location 260. For instance, port 200 may forward request 201 to configuration circuitry 202 to define a protected memory location 260. After generating an association between the memory addresses and protected memory location 260, storage circuitry 220 may store the memory addresses in register 230 to associated the memory addresses with protected memory location 260. In several embodiments, storage circuitry 220 may configure or extend register 230 to store the association.
In many embodiments, storage circuitry 220 may store the association between the device and the memory location. In some of these embodiments, storing an association between the device and the memory location may comprise storing the association in generated table 245 and/or in address translation table 255. In further embodiments, storing an association may comprise storing data such as a memory address, memory address translation, device identification (ID), or the like in memory 240 to provide low latency accesses for access 272 or another access. In other embodiments, storing an association may comprise storing data to associate a memory address with a device or code in memory other than memory 240.
Register 230 may comprise memory to associate a device or code with a protected memory location 260 and/or an unprotected memory location 262. In some embodiments, register 230 may comprise a control register or the like. In other embodiments, register 230 may comprise a buffer or the like. In further embodiments, register 230 may comprise memory to associate a device or code with memory addresses that may not be accessible to the device or code.
Referring still to
Verification circuitry 270 may comprise comparison circuitry 276 and approval circuitry 278. Comparison circuitry 276 may compare the access 272 to the definition of protected memory or to data to associate addresses with a memory location. For example, verification circuitry 270 may receive an access 272 from an embedded USB controller. Data associating the USB controller with a memory location accessible by the USB controller may be stored in a table format in I/O device table 250. Comparison circuitry 276 may determine that I/O device table 250 comprises the memory address associated with access 272.
Under other circumstances, comparison circuitry 276 may determine an address translation to compare access 272 to a definition of protected memory. Access 272 may comprise an alias for a memory address of memory 240. Comparison circuitry 276 may translate the alias based upon an entry in address translation table 255 and compare the translated address to an address associated with port 200.
Approval circuitry 278 may approve the access 272 based upon the definition of protected memory and/or based upon an associated or data, and in some embodiments, facilitate access 272 by forwarding the access 272 to access facilitation circuitry 290. In other embodiments, approval circuitry 278 may forward an approval of access 272 to access facilitation circuitry 290. For instance, approval circuitry 278 may receive the results of a comparison of an address associated with access 272 and approve the access to proceed based upon an association between a device such as a graphics device and the memory address associated with access 272. Approval circuitry 278 may signal access facilitation circuitry 290 to indicate that access 272 is approved.
In many embodiments, verification circuitry 270 may comprise a queue or buffer to store access 272 until access 272 is approved to facilitate another access. For example, approval circuitry 278 may store access 272 in a queue after receipt of access 272. While comparison circuitry 276 may determine an address translation for an alias associated with access 272, a subsequent access may be received. Circuitry of comparison circuitry 276 may begin to compare an address of the subsequent access with generated table 245 while awaiting an address translation for access 272. Then comparison circuitry 276 may receive a positive result for comparison of the subsequent access and forward the result to approval circuitry 278. After approval circuitry 278 approves the subsequent access, approval circuitry 278 may approve access 272. Then, access facilitation circuitry 290 may receive an indication to proceed with the subsequent access before receiving an indication to proceed with access 272. On the other hand, after determining an address associated with access 272 may not be stored in generated table 245, approval circuitry 278 may ignore access 272, with hold approval for access 272, forward access 272, or the like.
In further embodiments approval circuitry 278 may prevent access 272 when access 272 comprises a request to modify an address translation wherein the address translation is based upon the definition of protected memory. Withholding approval of access 272 may indicate that access 272 is erroneous or that access 272 may be an attempt to gain access to data protected from the source of access 272. For example, a hostile code or device may initiate an access 272 to modify address translation table 255 to allow access to data intended for protected memory location 260 or to cause an access determined to be an access for unprotected memory location 262 to access protected memory location 260. In either case, approval circuitry 278 may prevent access 272 by implementing a protection mechanism such as setting a flag to indicate the erroneous or potentially hostile access by the source of the access 272, blocking subsequent access by the source of access 272, shutting down a secure environment associated with the corresponding protected memory location 260, shutting down the system, encrypting the data contained by protected memory location 260, or the like.
Memory 240 may comprise storage for data. Memory 240 may comprise generated table 245, address translation table 255, protected memory location 260, and unprotected memory location 262. Generated table 245 may store data to associate memory addresses of memory 240 with devices or code such as I/O devices, an operating system, secure environment code, application code, or the like. Generated table 245 may comprise graphics table 247, I/O device table 250, and/or port table 252. Graphics table 247 may comprise one or more tables associated with a graphics port to indicate addresses associated with the graphics port. In many embodiments, graphics table 247 may comprise data like addresses or references to addresses that are accessible by transactions received via a graphics port such as port 200.
I/O device table 250 may comprise one or more tables of data to associate I/O devices with memory addresses such as memory addresses associated with protected memory location 260 and unprotected memory location 262. In some embodiments, I/O device table 250 may be associated with a device ID or a range of device ID's. Port table 252 may comprise data to associate port 200 and/or another port with memory locations such as protected memory location 260 or unprotected memory location 262.
Address translation table 255 may store data to associate or translate an abbreviated address or alias with a memory address of memory 240. Address translation table 255 may comprise one or more tables to store the data. For instance, address translation table 255 may comprise a table for each device that may use an alias or abbreviated address in an access for memory 240.
In alternative embodiments, generated table 245, a table within generated table 245, or address translation table 255 may be located in other memory such as flash memory, integrated synchronous random access memory (SRAM), integrated DRAM, core memory or the like. Integrated SRAM or DRAM, for example, may comprise memory integrated in an apparatus such as a hub or chipset.
Protected memory location 260 may be associated with one or more devices or code and may comprise an association of contiguous and/or non-contiguous memory addresses. The contiguous and/or non-contiguous memory addresses may provide protected or access-limited memory to store data. For instance, one or more devices or code may store data in protected memory location 260 and authorize access to the data to a limited number of devices and/or code modules. In some embodiments, generated table 245 and/or address translation table 255 may be located in memory addresses associated with protected memory location 260. Unprotected memory location 262 may comprise an association of contiguous and/or non-contiguous memory addresses to store data for access by devices or code. In some embodiments, unprotected memory location 262 may comprise the memory addresses that are not associated with protected memory location 260, or vice versa.
Access facilitation circuitry 290 may perform access 272 in response to approval of access 272 by verification circuitry 270. In some embodiments, access facilitation circuitry 290 may respond to the access 272 via port 200 with data such as data 295. In other embodiments, access facilitation circuitry 290 may perform access 272, such as a read request, and respond to access 272 based upon approval by verification circuitry 270. For instance, when access 272 comprise a write request, a completion may be returned to port 200 to indicate that the write request has been performed. In other embodiments, data 295 may comprise a pattern of bits such as all zeroes, all ones, or a known bad data pattern. In further embodiments, no response to the transaction may be transmitted. In many of these embodiments, the lack of a response may hang the system when the system is under attack. In some embodiments, the system or part thereof, may be reset.
In several embodiments, access facilitation circuitry 290 may comprise queue 292, buffer or the like to store access 272 and/or a response to access 272 while awaiting approval. In some embodiments, access facilitation circuitry 290 may receive an access 272 and wait for an approval from verification circuitry 270 to proceed with the access 272. In such embodiments, access 272 may be received directly from port 200. In further embodiments, access facilitation circuitry 290 may comprise circuitry such as disapproval circuitry. For instance, approval circuitry 278 may transmit a signal to indicate that access 272 may not have been approved. In response, access facilitation circuitry 290 may not implement access 272 and disapproval circuitry may implement a protection mechanism such as setting a flag to indicate the erroneous or potentially hostile access by the source of the access 272, blocking subsequent access by the source of access 272, shutting down a secure environment associated with the corresponding protected memory location 260, shutting down the system, encrypting the data contained by protected memory location 260, or the like.
Referring now to
Defining protected memory based upon the request 310 may associate a memory address or location with a protected memory location or an unprotected memory location and may associated the memory location with a device or code. Defining protected memory based upon the request 310 may comprise configuring a register to associated a memory address with the memory location 315 and determining the memory location to be accessible by a source associated with the access 320. Configuring a register to associate a memory address with the memory location 315 may comprise storing an association such as a memory address, abbreviated memory address, or data associated with a memory address in one or more registers to indicate that access to that memory location may be limited or to indicate that access to that memory location may be approved for one or more sources such as devices or code.
Determining the memory location to be accessible by a source associated with the access 320 may comprise determining whether part of an unprotected or a protected memory location may be accessible by the source. In some embodiments, determining the memory location to be accessible by a source associated with the access 320 may comprise determining whether part of an unprotected or a protected memory location may be inaccessible by the source.
In further embodiments, determining the memory location to be accessible by a source associated with the access 320 may comprise selecting memory addresses to associate with a protected memory location or an unprotected memory location. Many of these embodiments may comprise selecting unused or unallocated memory addresses to associate with a memory location. Selecting unused or unallocated memory addresses to associate with a memory location may select contiguous and/or non-contiguous memory addresses. In some of these embodiments, determining the memory location to be accessible by a source associated with the access 320 may comprise selecting a number of memory addresses based upon a request to define protected memory.
Generating a definition of allowable access to a memory location in accordance with said defining protected memory 330 may generate data to associate a memory location or memory addresses with a source that may have access to the memory location or addresses. Generating a definition of allowable access to a memory location in accordance with said defining protected memory 330 may comprise storing data to associate the memory location with a source associated with the access 335. Storing data to associate the memory location with a source associated with the access 335 may store one or more addresses or data corresponding to one or more addresses in memory.
Storing data to associate the memory location with a source associated with the access 335 may comprise generating a table for the source to indicate that access by the source to the memory location is consistent with said defining protected memory 340. Generating a table for the source to indicate that access by the source to the memory location is consistent with said defining protected memory 340 may comprise storing data to associate memory addresses accessible to the source and/or inaccessible to the source along with data corresponding to the source. For instance, a table may be associated with a device ID and the addresses stored within the table may comprise a memory location accessible to the source.
Approving an access to the memory location after verification that the access conforms with the definition of allowable access 350 may check a memory address associated with an access to determine whether the access is approved. In some embodiments, approving an access 350 may forward an approval to circuitry to facilitate the access.
Approving an access to the memory location after verification that the access conforms with the definition of allowable access 350 may comprise comparing the access to the definition to verify that the access is consistent with the definition 355 and determining when the access comprises a request to change an address translation to allow access to a content for a protected memory location to contravene the definition 360. Comparing the access to the definition to verify that the access is consistent with the definition 355 may comprise comparing an address associated with the access to the contents of a table associated with the source of the access or the memory address to verify that access to the address has been approved for the source of the access.
Determining when the access comprises a request to change an address translation to allow access to a content for a protected memory location to contravene the definition 360 may comprise determining an address or data corresponding to an address may cause a change to an address translation. In some situations, determining when the access comprises a request to change an address translation to allow access to a content for a protected memory location to contravene the definition 360 may also comprise determining that the change to the address translation may cause data intended to be written to a protected memory location to be written to an unprotected memory location. In other situations, determining when the access comprises a request to change an address translation to allow access to a content for a protected memory location to contravene the definition 360 may also comprise determining that change may allow an access to an unprotected memory location to access a protected memory location. In many of these embodiments, the access may be ignored or an error may be returned to the source. In further embodiments, a protection mechanism may be initiated to prevent potentially hostile code from accessing the content of a protected memory location.
Referring now to
Comparing an address associated with the transaction to a memory location associated with the port 420 may compare the address targeted by the transaction to a memory location associated with the port. For instance, the addresses of system memory may be associated with the port to indicate that the port may access the memory addresses. In some embodiments, more than one memory location may be associated with the port based upon logical ports associated with the port. For example, devices or groups of devices may be associated with logical ID's and each logical ID may be associated with a memory location. In one embodiment, a logical ID may comprise the last bit of a device address so a memory location may be established for even numbered devices and a different memory location may be established for odd numbered devices. After a transaction or access is received by the port, the address of the transaction may be compared with the corresponding memory location.
Comparing an address associated with the transaction to a memory location associated with the port 420 may comprise comparing the address to a graphics table, wherein the graphics table indicates addresses accessible by the port 425. Comparing the address to a graphics table, wherein the graphics table indicates addresses accessible by the port 425 may compare the address to addresses indicated by the graphics table to determine whether the address may be accessible to transactions from the port. For instance, the port may comprise a port for a graphics controller and the graphics table may comprise references to addresses in system memory that may be accessed by the graphics port. In such embodiments, comparing the address to a graphics table, wherein the graphics table indicates addresses accessible by the port 425 may determine whether or not a reference for the address is stored in the graphics table.
Determining whether the port has access to the address based upon said comparing 430 may determine that the transaction may proceed based upon whether or not the address of the transaction is indicated by the graphics table as an address accessible by the port. Some embodiments may determine that the transaction may proceed when the address of the transaction is indicated for the source of the transaction. Further embodiments may determine that the transaction may proceed when the address of the transaction is indicated for the type of access represented by the transaction such as a read request or a write request.
Determining whether the port has access to the address based upon said comparing 430 may comprise determining that the address is associated with the memory location based upon said comparing 435 and determining that the address is associated with an unprotected memory location to verify that the address is accessible by the port 440. Determining that the address is associated with an unprotected memory location to verify that the address is accessible by the port 440, after determining that the address is not associated with a protected memory location for the port, may comprise determining that the transaction is permitted in accordance with a definition of protected memory. The definition of protected memory may comprise an associated of protected and/or unprotected memory locations with addresses in system memory or other memory. In many embodiments, when the address is associated with an unprotected memory location, the transaction may proceed. In these embodiments, the unprotected memory location may be accessible to the port although a protected memory location that is not associated with the port may be inaccessible with regards to transactions received via the port.
Further embodiments may comprise blocking the transaction based upon a determination that the address is inaccessible by the port 450. Blocking the transaction based upon a determination that the address is inaccessible by the port 450 may prevent a transaction from completing when the address associated with the transaction is not associated with the port. For example, a read request may be received via the port for an address that is associated with a protected memory location. The protected memory location may be associated with a code module or device that does not transmit transactions via the port. Accesses via the port may be blocked to prevent potentially hostile code from reading and/or writing to the address. Thus, blocking the transaction based upon a determination that the address is inaccessible by the port 450 may prevent data read from the address from being returned to the port in response to the transaction.
Blocking the transaction based upon a determination that the address is inaccessible by the port 450 may comprise resetting part of a platform 455 and responding to the transaction with a pattern of bits 460. Resetting part of a platform 455 may, in some embodiments, reset the system, such as the computer system, security system, or the like after determining that the transaction may not access the address.
Responding to the transaction with a pattern of bits 460 may return bad data or null data in response to the transaction. In other embodiments, no response may be transmitted to the port to hang the system in response to the attack. For example, when the transaction comprises a write request and the address is not associated with the port or an unprotected memory location. The response to the transaction may comprise zeroes or ones. In some embodiments, the response may comprise a pattern of bad data.
Referring now to
In particular,
Further, instructions for generating data to associate a source of an access with a memory address 510 may comprise determining a definition of protected memory based upon the request for a memory location. The request may comprise or be associated with a source allowed to access the trusted code such as a secure virtual machine monitor (SVMM). SVMM may be trusted to update trusted code for the secure environment.
In further embodiments, the request may comprise a request from a source such as device or code to establish a protected memory location and/or an unprotected memory location for the source. For instance, instructions for generating data to associate a source of an access with a memory address 510 may comprise generating data to associate a protected memory location and/or an unprotected memory location for use by a device such as a bridge. The bridge may comprise an I/O bridge such as a bridge for a PCI bus. For example, the latency of access for the bridge may be reduced by associating memory addresses accessible to the bridge with a memory location for the bridge in accordance with the secure environment and facilitating access to the memory location for that bridge without verifying the access with a secure environment for each access. The bridge may then forward an access to memory logic and the memory logic, based upon the memory location associated with the bridge, may approve the access.
Instructions for storing the data to facilitate access by the source to the memory address 520 may comprise instructions to generate a table of memory addresses or of data associated with memory addresses accessible by the source. Verification circuitry may compare an access from the source with the table to determine whether the source may read from and/or write to the address associated with the access. After verifying that the source may read from the memory location associate with the access, the verification circuitry may approve the access. On the other hand, when the address associated with the access is not found in the table, the verification circuitry may withhold approval for the access and the access may be ignored, responded to with an error, or forwarded to the secure environment to determine whether the access may be approved.
Instructions for determining a translation for an address associated with the access 530 may translate an address of the access via an address translation table to determine whether the address is associated with the source of the access. For instance, a graphics device may initiate an access with an abbreviated memory address for a system memory address. Verification circuitry may receive the access, interpret the address via the address translation table associated with the graphics device and determine whether the access is approved for the system memory address.
Instructions for comparing the translation to the memory address to verify that the translation is the memory address 540 may comprise instructions to determine whether an address in system memory is approved for access by a source after receiving a translation of the address of the access by comparing the translated address to a memory location associated with the source. For example, the source may comprise the operating system and an access by the operating system may comprise an alias for an address associated with a memory location accessible by the operating system. The access, for instance, may comprise a request to read an address associated with a protected memory location for the secure environment. A table generated to associated the operating system with memory accessible to the operating system may associate the operating system with the memory address with an indication that the operating system may read the protected memory location. Verification circuitry may check the table, determine that a read request conforms to the definition of protected memory for the secure environment, and determine that the access is a read to approve the access based upon the translated address associated with the access.
In further embodiments, comparing the translation to the memory address to verify that the translation is the memory address 540 may comprise instructions for determining a translated address associated with the access comprises an address to an address translation table. In many of these circumstances, if the access is a write, the data associated with the access may be further compared with the address translation table to determine whether the new address translation may translate a memory address of a protected memory location to an unprotected memory location or vice versa. For instance, a hostile source may attempt to modify an address translation table to cause a write to a protected memory location to be written to an unprotected memory location. Writing to the unprotected memory location may allow a hostile source to gain access to the protected memory. On the other hand, a hostile source may attempt to modify an address translation table to translate an access to an unprotected memory location. Modifying the address translation may allow the source to access a protected memory location with an address associated with an unprotected location, circumventing the protection for the memory address. In many of these instances, comparing the translation to the memory address to verify that the translation is the memory address 540 may cause the access may fail to verify and thus the access may not be approved or approval may be withheld.
Instructions for approving the access after verification that the access is associated with the memory address based upon the data 550 may comprise allowing an access to be performed based upon a determination that the access is approved for the source at the memory address associated with the access. In some embodiments, approving the access after verification that the access is associated with the memory address based upon the data 550 may comprise withholding approval when the access is not verified and/or may comprise initiating a protection mechanism.
Some embodiments may further comprise instructions to facilitate the access. Instructions to facilitate the access may comprise instructions to perform the access of the memory address and, in many embodiments, return a completion to the source to indicate that the access is completed. In some instances, the completion may comprise an indication that a write to the memory address has been executed and, in other circumstances, the completion may comprise data read from the memory address.
Number | Name | Date | Kind |
---|---|---|---|
3699532 | Schaffer et al. | Oct 1972 | A |
3996449 | Attanasio et al. | Dec 1976 | A |
4037214 | Birney et al. | Jul 1977 | A |
4162536 | Morley | Jul 1979 | A |
4207609 | Luiz et al. | Jun 1980 | A |
4247905 | Yoshida et al. | Jan 1981 | A |
4276594 | Morley | Jun 1981 | A |
4307447 | Provanzano et al. | Dec 1981 | A |
4319233 | Matsuoka et al. | Mar 1982 | A |
4319323 | Ermolovich et al. | Mar 1982 | A |
4347565 | Kaneda et al. | Aug 1982 | A |
4403283 | Myntti et al. | Sep 1983 | A |
4419724 | Branigin et al. | Dec 1983 | A |
4430709 | Schleupen | Feb 1984 | A |
4571672 | Hatada et al. | Feb 1986 | A |
4759064 | Chaum | Jul 1988 | A |
4795893 | Ugon | Jan 1989 | A |
4802084 | Ikegaya et al. | Jan 1989 | A |
4975836 | Hirosawa et al. | Dec 1990 | A |
5007082 | Cummins | Apr 1991 | A |
5079737 | Hackbarth | Jan 1992 | A |
5187802 | Inoue et al. | Feb 1993 | A |
5230069 | Brelsford et al. | Jul 1993 | A |
5237616 | Abraham et al. | Aug 1993 | A |
5287363 | Wolf et al. | Feb 1994 | A |
5293424 | Holtey et al. | Mar 1994 | A |
5295251 | Wakui et al. | Mar 1994 | A |
5317705 | Gannon et al. | May 1994 | A |
5319760 | Mason et al. | Jun 1994 | A |
5361375 | Ogi | Nov 1994 | A |
5386552 | Garney | Jan 1995 | A |
5388264 | Tobias et al. | Feb 1995 | A |
5437033 | Inoue et al. | Jul 1995 | A |
5455909 | Blomgren et al. | Oct 1995 | A |
5459867 | Adams et al. | Oct 1995 | A |
5469557 | Salt et al. | Nov 1995 | A |
5504922 | Seki et al. | Apr 1996 | A |
5506975 | Onodera | Apr 1996 | A |
5511217 | Nakajima et al. | Apr 1996 | A |
5522075 | Robinson et al. | May 1996 | A |
5555385 | Osisek | Sep 1996 | A |
5555414 | Hough et al. | Sep 1996 | A |
5559883 | Williams | Sep 1996 | A |
5560013 | Scalzi et al. | Sep 1996 | A |
5564040 | Kubals | Oct 1996 | A |
5574936 | Ryba et al. | Nov 1996 | A |
5582717 | Di Santo | Dec 1996 | A |
5604805 | Brands | Feb 1997 | A |
5606617 | Brands | Feb 1997 | A |
5628022 | Ueno et al. | May 1997 | A |
5633929 | Kaliski, Jr. | May 1997 | A |
5668971 | Neufeld | Sep 1997 | A |
5684948 | Johnson et al. | Nov 1997 | A |
5706469 | Kobayashi | Jan 1998 | A |
5737604 | Miller et al. | Apr 1998 | A |
5737760 | Grimmer, Jr. et al. | Apr 1998 | A |
5740178 | Jacks et al. | Apr 1998 | A |
5752046 | Oprescu et al. | May 1998 | A |
5757919 | Herbert et al. | May 1998 | A |
5809546 | Greenstein et al. | Sep 1998 | A |
5825880 | Sudia et al. | Oct 1998 | A |
5852717 | Bhide et al. | Dec 1998 | A |
5854913 | Goetz et al. | Dec 1998 | A |
5872994 | Akiyama et al. | Feb 1999 | A |
5901225 | Ireton et al. | May 1999 | A |
5919257 | Trostle | Jul 1999 | A |
5935242 | Madany et al. | Aug 1999 | A |
5935247 | Pai et al. | Aug 1999 | A |
5949436 | Horan et al. | Sep 1999 | A |
5953502 | Helbig, Sr. | Sep 1999 | A |
5956408 | Arnold | Sep 1999 | A |
5970147 | Davis et al. | Oct 1999 | A |
5978475 | Schneier et al. | Nov 1999 | A |
6035374 | Panwar et al. | Mar 2000 | A |
6044478 | Green | Mar 2000 | A |
6055637 | Hudson et al. | Apr 2000 | A |
6061794 | Angelo et al. | May 2000 | A |
6075938 | Bugnion et al. | Jun 2000 | A |
6085296 | Karkhanis et al. | Jul 2000 | A |
6088262 | Nasu | Jul 2000 | A |
6092095 | Maytal | Jul 2000 | A |
6093213 | Favor et al. | Jul 2000 | A |
6101584 | Satou et al. | Aug 2000 | A |
6108644 | Goldschlag et al. | Aug 2000 | A |
6115816 | Davis | Sep 2000 | A |
6125430 | Noel et al. | Sep 2000 | A |
6131166 | Wong-Isley | Oct 2000 | A |
6148379 | Schimmel | Nov 2000 | A |
6173417 | Merrill | Jan 2001 | B1 |
6175924 | Arnold | Jan 2001 | B1 |
6182089 | Ganapathy et al. | Jan 2001 | B1 |
6188257 | Buer | Feb 2001 | B1 |
6192455 | Bogin et al. | Feb 2001 | B1 |
6199152 | Kelly et al. | Mar 2001 | B1 |
6212635 | Reardon | Apr 2001 | B1 |
6222923 | Schwenk | Apr 2001 | B1 |
6249872 | Wildgrube et al. | Jun 2001 | B1 |
6252650 | Nakamura | Jun 2001 | B1 |
6269392 | Cotichini et al. | Jul 2001 | B1 |
6272533 | Browne | Aug 2001 | B1 |
6272637 | Little et al. | Aug 2001 | B1 |
6275933 | Fine et al. | Aug 2001 | B1 |
6282650 | Davis | Aug 2001 | B1 |
6292874 | Barnett | Sep 2001 | B1 |
6301646 | Hostetter | Oct 2001 | B1 |
6314409 | Schneck et al. | Nov 2001 | B1 |
6321314 | Van Dyke | Nov 2001 | B1 |
6327652 | England et al. | Dec 2001 | B1 |
6330670 | England et al. | Dec 2001 | B1 |
6339815 | Feng et al. | Jan 2002 | B1 |
6339816 | Bausch | Jan 2002 | B1 |
6357004 | Davis | Mar 2002 | B1 |
6363485 | Adams | Mar 2002 | B1 |
6374286 | Gee et al. | Apr 2002 | B1 |
6374317 | Ajanovic et al. | Apr 2002 | B1 |
6378068 | Foster | Apr 2002 | B1 |
6378072 | Collins et al. | Apr 2002 | B1 |
6389537 | Davis et al. | May 2002 | B1 |
6397242 | Devine et al. | May 2002 | B1 |
6397379 | Yates, Jr. et al. | May 2002 | B1 |
6412035 | Webber | Jun 2002 | B1 |
6421702 | Gulick | Jul 2002 | B1 |
6445797 | McGough et al. | Sep 2002 | B1 |
6463535 | Drews et al. | Oct 2002 | B1 |
6463537 | Tello | Oct 2002 | B1 |
6499123 | McFarland et al. | Dec 2002 | B1 |
6505279 | Phillips et al. | Jan 2003 | B1 |
6507904 | Ellison et al. | Jan 2003 | B1 |
6529909 | Bowman-Amuah | Mar 2003 | B1 |
6535988 | Poisner | Mar 2003 | B1 |
6557104 | Vu et al. | Apr 2003 | B1 |
6560627 | McDonald et al. | May 2003 | B1 |
6609199 | DeTreville | Aug 2003 | B1 |
6615278 | Curtis | Sep 2003 | B1 |
6633962 | Burton et al. | Oct 2003 | B1 |
6633963 | Ellison et al. | Oct 2003 | B1 |
6633981 | Davis | Oct 2003 | B1 |
6647387 | McKean et al. | Nov 2003 | B1 |
6651171 | England et al. | Nov 2003 | B1 |
6678825 | Ellison et al. | Jan 2004 | B1 |
6684326 | Cromer et al. | Jan 2004 | B1 |
20010021969 | Burger et al. | Sep 2001 | A1 |
20010027511 | Wakabayashi et al. | Oct 2001 | A1 |
20010027527 | Khidekel et al. | Oct 2001 | A1 |
20020007456 | Peinado et al. | Jan 2002 | A1 |
20020023032 | Pearson et al. | Feb 2002 | A1 |
20020147916 | Strongin et al. | Oct 2002 | A1 |
20020166061 | Falik et al. | Nov 2002 | A1 |
20020169717 | Challener | Nov 2002 | A1 |
20020199071 | Kitamura et al. | Dec 2002 | A1 |
20030018892 | Tello | Jan 2003 | A1 |
20030074548 | Cromer et al. | Apr 2003 | A1 |
20030115453 | Grawrock | Jun 2003 | A1 |
20030126442 | Glew et al. | Jul 2003 | A1 |
20030126453 | Glew et al. | Jul 2003 | A1 |
20030159056 | Cromer et al. | Aug 2003 | A1 |
20030188179 | Challener et al. | Oct 2003 | A1 |
20030196085 | Lampson et al. | Oct 2003 | A1 |
Number | Date | Country |
---|---|---|
4217444 | Dec 1992 | DE |
0473913 | Mar 1992 | EP |
0600112 | Aug 1994 | EP |
0892521 | Jan 1999 | EP |
0930567 | Jul 1999 | EP |
0961193 | Dec 1999 | EP |
0965902 | Dec 1999 | EP |
1 030 237 | Aug 2000 | EP |
1055989 | Nov 2000 | EP |
1056014 | Nov 2000 | EP |
1085396 | Mar 2001 | EP |
1146715 | Oct 2001 | EP |
1271277 | Jan 2003 | EP |
02000076139 | Mar 2000 | JP |
WO9524696 | Sep 1995 | WO |
WO 9729567 | Aug 1997 | WO |
WO9812620 | Mar 1998 | WO |
WO9834365 | Aug 1998 | WO |
WO9844402 | Oct 1998 | WO |
WO9905600 | Feb 1999 | WO |
WO9909482 | Feb 1999 | WO |
WO9918511 | Apr 1999 | WO |
WO9957863 | Nov 1999 | WO |
WO9965579 | Dec 1999 | WO |
WO0021238 | Apr 2000 | WO |
WO0062232 | Oct 2000 | WO |
WO 0127723 | Apr 2001 | WO |
WO 0127821 | Apr 2001 | WO |
WO0163994 | Aug 2001 | WO |
WO 01 75564 | Oct 2001 | WO |
WO 0175565 | Oct 2001 | WO |
WO 0175595 | Oct 2001 | WO |
WO0201794 | Jan 2002 | WO |
WO 02 17555 | Feb 2002 | WO |
WO02060121 | Aug 2002 | WO |
WO 02 086684 | Oct 2002 | WO |
WO03058412 | Jul 2003 | WO |
Number | Date | Country | |
---|---|---|---|
20030204693 A1 | Oct 2003 | US |