Technologies for trusted I/O with a channel identifier filter and processor-based cryptographic engine
Abstract
Technologies for trusted I/O include a computing device having a processor, a channel identifier filter, and an I/O controller. The I/O controller may generate an I/O transaction that includes a channel identifier and a memory address. The channel identifier filter verifies that the memory address of the I/O transaction is within a processor reserved memory region associated with the channel identifier. The processor reserved memory region is not accessible to software executed by the computing device. The processor encrypts I/O data at the memory address in response to invocation of a processor feature and copies the encrypted data to a memory buffer outside of the processor reserved memory region. The processor may securely clean the processor reserved memory region before encrypting and copying the data. The processor may wrap and unwrap programming information for the channel identifier filter. Other embodiments are described and claimed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 0.
Claims (24 — 3 Independent, 21 Dependent)
- Claim 1Independent Claim
An apparatus comprising: a memory controller; and processor circuitry coupled to the memory controller, the processor circuitry to: receive an unprivileged processor instruction with programming information, which is to have been generated by one or more unprivileged software components of a trusted execution environment, as a parameter, the programming information including a direct memory access (DMA) channel identifier and a channel key; generate wrapped programming information based on the programming information in response to the unprivileged processor instruction, wherein the channel key is to be encrypted using a key-wrapping key to generate an encrypted channel key, wherein the wrapped programming information includes the encrypted channel key and the DMA channel identifier, wherein a trusted input/output (I/O) processor reserved memory region has a plurality of ranges including a first range characterized by a first base and a first size mapped to the DMA channel identifier and a second range characterized by a second base and a second size mapped to another DMA channel identifier, and wherein the processor reserved memory region is inaccessible to the one or more unprivileged software components; and perform operations corresponding to a second instruction that is to indicate the wrapped programming information, including to decrypt the encrypted channel key to generate the channel key, program the channel key to a cryptographic unit of a processor core having the processor circuitry, and program the DMA channel identifier to a channel filter.
- Claim 2Depends on #1
The apparatus of claim 1, wherein the unprivileged processor instruction is invoked using an unprivileged software component of the one or more unprivileged software components, and wherein the key-wrapping key is private to the processor circuitry.
- Claim 3Depends on #1
The apparatus of claim 1, wherein the processor circuitry is further to assign, via a firmware environment, the trusted I/O processor reserved memory region.
- Claim 4Depends on #1
The apparatus of claim 1, wherein the second instruction is a privileged instruction, and wherein the operations corresponding to the second instruction include to program the first range to the channel filter.
- Claim 5Depends on #3
The apparatus of claim 3, wherein the processor circuitry is further to: store a trusted I/O processor reserved memory region setting in a firmware variable in response to assignment of the trusted I/O processor reserved memory region; and integrity-protect the firmware variable with a trusted platform module of a computing device.
- Claim 6Depends on #4
The apparatus of claim 4, wherein the processor circuitry is further to: invoke a third privileged processor instruction with the first range as a parameter; and securely clear the first range in response to invocation of the third privileged processor instruction.
- Claim 7Depends on #4
The apparatus of claim 4, wherein the processor circuitry is further to: verify the wrapped programming information wherein to invoke the second privileged processor instruction comprises to invoke the second privileged processor instruction in response to verification of the wrapped programming information.
- Claim 8Depends on #4
The apparatus of claim 4, wherein the processor circuitry is further to: read a cryptographic response from the processor in response to invocation of the first second privileged processor instruction; and prevent a privileged software component from accessing the first range associated with the DMA channel identifier, and wherein the privileged software component comprises a kernel mode driver.
- Claim 9Independent Claim
A method comprising: receiving an unprivileged processor instruction with programming information, which is to have been generated by one or more unprivileged software components of a trusted execution environment, as a parameter, the programming information including a direct memory access (DMA) channel identifier and a channel key; generating wrapped programming information based on the programming information in response to the unprivileged processor instruction, wherein the channel key is to be encrypted using a key-wrapping key to generate an encrypted channel key, wherein the wrapped programming information includes the encrypted channel key and the DMA channel identifier, wherein a trusted input/output (I/O) processor reserved memory region has a plurality of ranges including a first range characterized by a first base and a first size mapped to the DMA channel identifier and a second range characterized by a second base and a second size mapped to another DMA channel identifier, and wherein the processor reserved memory region is inaccessible to the one or more unprivileged software components; and performing operations corresponding to a second instruction indicating the wrapped programming information, including decrypting the encrypted channel key to generate the channel key, programing the channel key to a cryptographic unit of a processor core that received the unprivileged processor instruction, and programing the DMA channel identifier into a channel filter.
- Claim 10Depends on #9
The method of claim 9, and wherein the unprivileged processor instruction is invoked using an unprivileged software component of the one or more unprivileged software components, and wherein key-wrapping key is private to a processor that receives the unprivileged processor instruction.
- Claim 11Depends on #9
The method of claim 9, further comprising assigning, via a firmware environment, the trusted I/O processor reserved memory region, wherein processor circuitry is further to establish a secure enclave.
- Claim 12Depends on #9
The method of claim 9, wherein the second instruction is a privileged instruction, and wherein the operations corresponding to the second instruction include to program the first range to the channel filter.
- Claim 13Depends on #11
The method of claim 11, further comprising: storing a trusted I/O processor reserved memory region setting in a firmware variable in response to assignment of the trusted I/O processor reserved memory region; and integrity-protecting the firmware variable with a trusted platform module of a computing device.
- Claim 14Depends on #12
The method of claim 12, further comprising: invoking a third privileged processor instruction with the first range as a parameter; and securely clearing the first range in response to invocation of the third privileged processor instruction.
- Claim 15Depends on #12
The method of claim 12, further comprising: verifying the wrapped programming information, wherein to invoke the second privileged processor instruction comprises to invoke the second privileged processor instruction in response to verification of the wrapped programming information.
- Claim 16Depends on #12
The method of claim 12, further comprising: reading a cryptographic response from the processor in response to invocation of the first second privileged processor instruction; and preventing a privileged software component from accessing the first range associated with the DMA channel identifier, and wherein the privileged software component comprises a kernel mode driver.
- Claim 17Independent Claim
At least one computer-readable medium having stored thereon instructions which, when executed, cause a computing device to perform operations including to: generate programming information by one or more unprivileged software components of a trusted execution environment; invoke an unprivileged processor instruction with the programming information as a parameter, the programming information including a direct memory access (DMA) channel identifier and a channel key; generate wrapped programming information based on the programming information in response to the unprivileged processor instruction, wherein the channel key is to be encrypted using a key-wrapping key to generate an encrypted channel key, wherein the wrapped programming information includes the encrypted channel key and the DMA channel identifier, wherein a trusted input/output (I/O) processor reserved memory region has a plurality of ranges including a first range characterized by a first base and a first size mapped to the DMA channel identifier and a second range characterized by a second base and a second size mapped to another DMA channel identifier, and wherein the processor reserved memory region is inaccessible to the one or more unprivileged software components; and perform operations corresponding to a second instruction that is to indicate the wrapped programming information, including to decrypt the encrypted channel key to generate the channel key, program the channel key to a cryptographic unit of a processor core that is to generate the wrapped programming information, and program the DMA channel identifier to a channel filter.
- Claim 18Depends on #17
The at least one computer-readable medium of claim 17, wherein the unprivileged processor instruction is to be invoked using the unprivileged software component, and wherein key-wrapping key is private to a processor.
- Claim 19Depends on #17
The at least one computer-readable medium of claim 17, wherein the operations further comprise to assign, via a firmware environment, the trusted I/O processor reserved memory region.
- Claim 20Depends on #17
The at least one computer-readable medium of claim 17, wherein the second instruction is a privileged instruction, and wherein the operations corresponding to the second instruction include to program the first range to the channel filter.
- Claim 21Depends on #19
The at least one computer-readable medium of claim 19, wherein the operations further include to: store I/O processor reserved memory region setting in a firmware variable in response to assignment of the trusted I/O processor reserved memory region; and integrity-protect the firmware variable with a trusted platform module of the computing device.
- Claim 22Depends on #20
The at least one computer-readable medium of claim 20, wherein the operations further comprise: invoking a third privileged processor feature instruction with the first range as a parameter; and securely clearing the first range in response to invocation of the third privileged processor instruction.
- Claim 23Depends on #20
The at least one computer-readable medium of claim 20, wherein the operations further comprise: verifying the wrapped programming information, wherein to invoke the first second privileged processor instruction comprises to invoke the first second privileged processor instruction in response to verification of the wrapped programming information.
- Claim 24Depends on #20
The at least one computer-readable medium of claim 20, wherein the operations further comprise: reading a cryptographic response from the processor in response to invocation of the first privileged processor instruction; and preventing the privileged software component from accessing the first range associated with the DMA channel identifier, and wherein the privileged software component comprises a kernel mode driver.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This Application is a continuation of and claims the benefit of and priority to U.S. application Ser. No. 16/931,543, entitled TECHNOLOGIES FOR TRUSTED I/O WITH A CHANNEL IDENTIFIER FILTER AND PROCESSOR-BASED CRYPTOGRAPHIC ENGINE, by Reshma Lal, et al., filed Jul. 17, 2020, now pending, which is a continuation of and claims the benefit of and priority to U.S. application Ser. No. 15/628,008, entitled “ TECHNOLOGIES FOR TRUSTED I/O WITH A CHANNEL IDENTIFIER FILTER AND PROCESSOR-BASED CRYPTOGRAPHIC ENGINE, ” by Reshma Lal, et al., filed Jun. 20, 2017, now issued as U.S. Pat. No. 10,789,371, and which claims the benefit of and priority to U.S. Provisional Patent Application Nos. 62/352,356 and 62/352,357, which were both filed Jun. 20, 2016, the entire contents of which are incorporated herein by reference. BACKGROUND Current processors may provide support for a trusted execution environment such as a secure enclave. Secure enclaves include segments of memory (including code and/or data) protected by the processor from unauthorized access including unauthorized reads and writes. In particular, certain processors may include Intel ® Software Guard Extensions (SGX) to provide secure enclave support. In particular, SGX provides confidentiality, integrity, and replay-protection to the secure enclave data while the data is resident in the platform memory and thus provides protection against both software and hardware attacks. The on-chip boundary forms a natural security boundary, where data and code may be stored in plaintext and assumed to be secure. Intel ® SGX does not protect I/O data that moves across the on-chip boundary. Trusted I/O (TIO) technology enables an application to send and/or receive I/O data securely to/from a device. In addition to the hardware that produces or consumes the I/O data, several software and firmware components in the I/O pipeline might also process the data. HCTIO (Hardware Cryptography-based Trusted
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (22)
Non-Patent Literature (10)
- Final Office Action, U.S. Appl. No. 15/628,008, Oct. 17, 2019, 33 pages.
- Final Office Action, U.S. Appl. No. 16/931,543, Nov. 9, 2022, 15 pages.
- Final Office Action, U.S. Appl. No. 17/820,628, Feb. 7, 2024, 11 pages.
- Non-Final Office Action, U.S. Appl. No. 15/628,006, May 15, 2019, 6 pages.
- Non-Final Office Action, U.S. Appl. No. 15/628,008, Apr. 4, 2019, 27 pages.
- Non-Final Office Action, U.S. Appl. No. 16/704,168, Dec. 10, 2021, 6 pages.
- Non-Final Office Action, U.S. Appl. No. 16/931,543, Mar. 31, 2022, 17 pages.
- Non-Final Office Action, U.S. Appl. No. 17/820,628, Sep. 13, 2023, 9 pages.
- Notice of Allowance, U.S. Appl. No. 15/628,006, Sep. 27, 2019, 18 pages.
- Notice of Allowance, U.S. Appl. No. 15/628,008, May 28, 2020, 10 pages.