Memory access confirmation
By enforcing privilege level verification in the memory system, unprivileged access vulnerabilities caused by branch prediction and speculative execution are solved, side channel attacks are prevented, and system security is enhanced.
Patent Information
- Application Number
- CN201980036609.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-06-15
- Filing Date
- 2019-04-29
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2039-04-29
AI Technical Summary
In the existing technology, branch prediction and speculative execution have security loopholes in the computer architecture, allowing unprivileged entities to illegally access privileged data, resulting in side-channel attacks such as meltdown and ghost attacks, affecting system security.
By enforcing privilege level verification in the memory system, it receives memory commands and privilege bits, identifies the privilege level associated with the memory address, and decides whether to perform a memory operation based on the comparison result to prevent unauthorized access.
Effectively prevent unprivileged entities from illegally accessing privileged data, enhance system security, avoid side channel attacks, and ensure privileged access to data.
Smart Images

Figure CN112204535B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to memory, and more particularly to apparatus and methods associated with determining access privileges to memory. Background Art
[0002] Memory devices are typically provided as internal semiconductor integrated circuits in computers or other electronic devices. There are many different types of memory, including volatile and non-volatile memory. Volatile memory may require power to maintain its data, and includes random access memory (RAM), dynamic random access memory (DRAM), and synchronous dynamic random access memory (SDRAM), etc. Non-volatile memory can provide persistent data by retaining stored data when power is off, and can include NAND flash, NOR flash, read-only memory (ROM), electrically erasable programmable ROM (EEPROM), erasable programmable ROM (EPROM), and resistance variable memory, such as phase change random access memory (PCRAM), resistance random access memory (RRAM) and magnetoresistive random access memory (MRAM), etc.
[0003] Memory is also used as volatile and nonvolatile data storage for various electronic applications. Nonvolatile memory can be used, for example, in personal computers, portable memory sticks, digital cameras, cellular phones, portable music players such as MP3 players, movie players, and other electronic devices. Memory cells can be arranged in an array, which is used in a memory device.
[0004] Various computing systems include a number of processing resources coupled to a memory (e.g., a memory system) that is accessed in association with executing a set of instructions (e.g., a program, application, etc.) Computer architectural features can be exploited to access data stored in the memory, often for malicious purposes, regardless of whether the application or program seeking to access the data is authorized or expected to do so. Summary of the invention
[0005] In one example, a method for memory access verification includes receiving signaling including a memory command 134, 138 and a memory address; identifying a first value indicating a first privilege level associated with the memory address; identifying a second value indicating a second privilege level associated with the memory command; and executing the memory command at the memory address or refraining from executing the memory command based at least in part on comparing the first value to the second value.
[0006] In another example, an apparatus for memory access verification includes a memory device 120, 162, 220 and memory access verification logic 202, 302 coupled to the memory device. The memory access verification logic is configured to: receive a command 134, 138 including a memory operation and a plurality of privilege bits; identify a privilege level associated with a memory address corresponding to the memory operation; determine whether the memory operation can access the memory address using the plurality of privilege bits and the privilege level; and process the memory operation in response to determining that the memory operation can access the memory address.
[0007] In yet another example, an apparatus for memory access verification includes: a plurality of registers 137, 139, 316, a cache 162, and memory access verification logic 202, 302 coupled to the cache. The memory access verification logic is configured to: receive a command to perform a plurality of memory operations on the cache; identify a plurality of memory addresses of the cache associated with the plurality of memory operations; access a first privilege level associated with the plurality of memory addresses; access a second privilege level associated with the command, wherein the second privilege level is stored in a plurality of registers; determine whether the plurality of memory operations can access the plurality of memory addresses using the first privilege level and the second privilege level; and in response to determining that the plurality of memory operations can access the plurality of memory addresses, process the plurality of memory operations to provide access to the plurality of memory addresses of the cache.
[0008] In yet another example, a method for memory access verification includes: receiving a command 134, 138 at memory access verification logic 202, 302 associated with a cache 162, wherein the command includes a memory operation and a first privilege level; identifying a second privilege level associated with multiple memory addresses of the cache, wherein the multiple memory addresses are associated with the memory operation; using the first privilege level and the second privilege level to determine whether the memory operation is capable of accessing the multiple memory addresses; and in response to determining that the memory operation is capable of accessing the multiple memory addresses, processing the memory operation to provide access to the multiple memory addresses of the cache. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1A is a block diagram of a device in the form of a computing system that includes a memory system and is capable of verifying memory access privileges in accordance with several embodiments of the present disclosure.
[0010] Figure 1B is a block diagram of a device in the form of a computing system that includes a memory system and is capable of verifying memory access privileges in accordance with several embodiments of the present disclosure.
[0011] Figure 1Cis a block diagram of a device in the form of a computing system that includes a cache system and is capable of verifying memory access privileges in accordance with several embodiments of the present disclosure.
[0012] Figure 2 is a block diagram of a memory system capable of verifying memory access privileges according to several embodiments of the present disclosure.
[0013] Figure 3A is a block diagram of memory access verification logic according to several embodiments of the present disclosure.
[0014] Figure 3B is a block diagram of memory access verification logic according to several embodiments of the present disclosure.
[0015] Figure 4 An example flow chart of a method for memory access authentication according to the present disclosure is shown.
[0016] Figure 5 An example flow chart of a method for memory access authentication according to the present disclosure is shown. DETAILED DESCRIPTION
[0017] The present disclosure includes devices and methods related to memory access verification. As described herein, a memory architecture can be used to avoid problems that arise when features of a computer (e.g., a central processing unit (CPU)) architecture are used for unprivileged access to data. A memory system can include privileged and non-privileged data. Privileged data is data protected by privileges, while non-privileged data is not protected by privileges. Processing resources can access privileged data and non-privileged data. Processing resources can access privileged data and non-privileged data during speculative execution. As described herein, tools and techniques can be used at or with a memory system to help control or limit access to privileged data.
[0018] An example method may include receiving a request including a memory command and a plurality of privilege bits, and identifying a privilege level associated with a memory address corresponding to the memory command. The method may also include determining whether a memory operation corresponding to the memory command can access the memory address using the plurality of privilege bits and the privilege level, and processing the memory operation in response to determining that the memory operation can access the memory address.
[0019] Computing systems can utilize branch prediction and / or speculative execution to improve performance. Branch prediction is a method of computer architecture that attempts to reduce branch costs. As used herein, a branch is a possible execution flow of a conditional statement. A conditional statement may contain one or more branches that can direct the execution of a program to different flows based on the outcome of the conditional statement. A conditional statement may contain, for example, if-then-else statements or case statements, as well as other types of conditional statements. A conditional statement may contain a Boolean condition that can be used to select a branch for further execution.
[0020] In branch prediction, a processing resource may select a branch and execute the branch, where the branch depends on the operation being performed. For example, a processing resource may select a branch and process the command corresponding to the branch while waiting for an operation (e.g., a read operation) to complete. After completing the operation, the processing resource may discard the predicted branch or commit speculative computations associated with the predicted branch.
[0021] Speculation, which may be referred to as speculative execution or speculative computing, is an optimization technique in which a processing resource executes commands that are not currently needed. The execution of a command is performed before it is known whether the command is actually needed, so as to prevent delays caused by executing it after it is known that the command is needed. For example, after a branch is predicted as the most likely branch to be selected, speculative computing may include execution tasks derived from the selection of the branch. Speculative computing refers to the out-of-order execution of instructions (e.g., commands / operations). As used herein, a processing resource may issue a command to a memory resource. A memory resource may process a command and perform a memory operation corresponding to the command.
[0022] In various instances, speculative execution may lead to security vulnerabilities. For example, speculative execution may provide an unprivileged entity (e.g., a user) with an opportunity to access privileged data. As used herein, privileged data refers to data that is protected via a specific privilege level and is designed to be inaccessible to entities (e.g., unprivileged users) that are not granted access to data with a specific privilege level. Speculative computing may provide an unprivileged entity with an opportunity to access privileged data through an indirect channel or "side channel" by moving the privileged data to a cache without verifying the privilege level used to access the privileged data.
[0023] A computation performed by a physical device can leave observable side effects beyond the nominal output of the computation. Side channel attacks exploit this side effect to extract privileged data that would otherwise be unavailable. For example, branch prediction and speculative computation may involve moving privileged data to cache and / or registers available to processing resources. A discard prediction may not involve discarding (e.g., clearing) data stored in a cache. A side channel attack may involve accessing privileged data stored in a cache.
[0024] Two examples of side-channel attacks that exploit vulnerabilities in branch prediction and speculative execution include a type of attack called Meltdown and a type of attack called Spectre. Meltdown attacks are a side-channel attack that enables data values to be discerned from cache misses. Spectre attacks allow speculative execution of instructions to perform privileged operations that leak information. While the vulnerabilities exploited in both attacks can eventually be identified and addressed, these attacks execute instructions to access privileged information.
[0025] Meltdown-type attacks rely on speculative execution to reveal the contents of a memory location (e.g., an address). A processing resource may map a kernel into a user's address space to facilitate faster capture and access. However, the processing resource may not have permission to access (e.g., operate on) the kernel address space. The processing resource is capable of issuing otherwise unprivileged (e.g., illegal) memory commands when validating a branch to be selected. Upon recovery of one or more illegal memory operations corresponding to the memory command, the processing resource may issue or return (e.g., throw) an exception. Through the processing resource, malicious code may allow access to privileged data by suppressing the exception and determining which array cache line is currently in the cache.
[0026] Spectre-type attacks may exploit speculative execution and mistrain a branch target buffer (BTB) of a processing resource. The BTB is a portion of a processing resource that predicts the target of a taken conditional or unconditional branch instruction before the target of the branch instruction is calculated by the execution unit of the processing resource. Again, in a Spectre-type attack, a processing resource may be configured to place privileged data in a cache that may then be fetched from the cache by an unprivileged entity.
[0027] Several different approaches can be used to address vulnerabilities associated with branch prediction and speculative execution. For example, branch prediction and / or speculative execution can be disabled, or rules can be provided to prevent speculation from cross-page errors. However, both of these options limit the ability to perform branch prediction and speculative execution, which can provide a significant performance impact on the system.
[0028] In several embodiments, privileges may be enforced at a storage device to determine whether a memory operation is to be performed. For example, privileges may be enforced using various embodiments described herein.
[0029] In the following detailed description of the present disclosure, reference is made to the accompanying drawings which form a part thereof, and in which several embodiments of the present disclosure are illustrated by way of illustration. These embodiments are described in sufficient detail to enable one of ordinary skill in the art to practice the embodiments of the present disclosure, and it should be understood that other embodiments may be utilized and process, electrical and / or structural changes may be made without departing from the scope of the present disclosure. As used herein, the indicator "N" indicates that a number of specific features so specified may be included in several embodiments of the present disclosure.
[0030] As used herein, "several" things may refer to one or more of such things. For example, several storage devices may refer to one or more of the storage devices. "Multiple" something means two or more. In addition, as used herein, indicators such as "N" specifically with respect to reference numerals in the accompanying drawings indicate that a number of particular features so specified may be included in several embodiments of the present disclosure.
[0031] The drawings herein follow a numbering convention in which the first or first few digits correspond to the figure number, and the remaining digits identify the elements or components in the figure. Similar elements or components between different figures can be represented by using similar numbers. It should be understood that the elements shown in the various embodiments herein can be added, exchanged and / or eliminated to provide several additional embodiments of the present disclosure. In addition, the ratios and relative proportions of the elements provided in the drawings are intended to illustrate various embodiments of the present disclosure, rather than for limiting purposes.
[0032] Figure 1A is a block diagram of a device in the form of a computing system 160 that includes a memory system 120 and is capable of verifying memory access privileges according to several embodiments of the present disclosure. As used herein, a "device" may refer to, but is not limited to, various structures or combinations of structures, such as a circuit or circuit system, a die or dies, one or more modules, one or more devices, or one or more systems. For example, the host 102 and / or the memory system 120 may be individually referred to as a "device."
[0033] The memory system 120 may include a plurality of channels, each channel having a number of devices (eg, chips, dies, etc.) corresponding thereto. Each of the devices may include a plurality of banks (eg, of memory cells). Figure 1A Although not shown, the memory system 120 may include a controller that can service multiple memory channels. Alternatively, the controller may be implemented as multiple separate controllers (e.g., one controller for each of the multiple channels). For example, the memory system 120 may include multiple modules (e.g., dual in-line memory modules (DIMMs)).
[0034] Host 102 may communicate with memory system 120 through an appropriate interface (e.g., via a controller). Computing system 160 may be a laptop, personal computer, digital camera, digital recording and playback device, mobile phone, PDA, memory card reader, interface hub, sensor, Internet of Things (IoT) enabled device, and other systems, and host 102 may include a number of processing resources (e.g., one or more processors) that are capable of accessing memory system 120 (e.g., via a controller). Host 102 may be responsible for executing an operating system (OS) and / or various applications that may be loaded thereon (e.g., from memory system 120).
[0035] The controller may receive memory access requests (e.g., in the form of read and write commands, which may be referred to as load commands and store commands, respectively) from the host 102. The controller may transmit commands and / or data between the host 102 and the memory system 120 via one or more interfaces, which may include a physical interface such as a bus using an appropriate protocol. Such protocols may be customized or proprietary, or one or more interfaces may use standardized protocols, such as DDR4, DDR5, HMC, HBM (or similar / subsequent storage interface standards), Peripheral Component Interconnect Express (PCIe), Gen-Z, CCIX, DDR-based synchronous storage protocols, etc.
[0036] For example, the interface may include a combined address, command and data bus or a separate bus for respective address, command and data signals. The controller may include a control circuit in the form of hardware, firmware or software or any combination of the three. For example, the controller may include a state machine, a sequencer and / or some other type of control circuit, which may be implemented in the form of an application specific integrated circuit (ASIC) coupled to a printed circuit board. In several embodiments, the controller may be in the same position as the host 102 (e.g., in a system on chip (SOC) configuration). In addition, the controller may be in the same position as the memory system 120.
[0037] The memory system 120 may include a number of memory devices. The memory devices may include a number of physical memory "chips" or dies, which may each include a number of memory cell arrays (e.g., memory banks) and corresponding support circuits associated with accessing the arrays (e.g., reading data from the arrays and writing data to the arrays) (e.g., address circuits, I / O circuits, control circuits, read / write circuits, etc.). For example, the memory devices may include a number of DRAM devices, SRAM devices, PCRAM devices, RRAM devices, FeRAM, phase change memory, 3DXP, and / or flash memory devices. In several embodiments, the memory system 120 may serve as the main memory of the computing system.
[0038] The host 102 may provide the command 134 and / or the voucher to the memory system 120. The command 134 may include address information. In some instances, the host 102 sends a signaling including a memory command and memory address information via a command / address bus, and receives the memory command and memory address information at each or corresponding pin of the memory system 120. Such a scheme may be adopted by a system operating according to a double data rate protocol specification (e.g., DDR4, DDR5, etc.). The voucher may include a privilege bit defining a privilege level of the command 134 and / or the corresponding operation. The command 134 may have a corresponding memory operation to be performed in the memory system 120. The command provided from the host 102 to the memory system 120 may include a privilege level. The privilege level may describe the privilege level of the application and / or thread providing the command 134 through the host 102. As used herein, an application may describe a computer-readable instruction that may be executed to perform coordinated functions, tasks, and / or activities. A thread may describe the value of a register corresponding to a processing resource. The value stored in the register may be used to control the execution of one or more applications or parts of the one or more applications. Functions, tasks, and / or activities may be performed to read data and / or write data to memory using memory operations corresponding to memory commands 134. For example, functions, tasks, and / or activities may include read operations and / or write operations, as well as other operations corresponding to commands 134, such as logical operations performed in memory system 120 using data stored in the memory system. A number of privilege bits may be used to describe the privilege level.
[0039] The privileged bits may be provided with each command provided to the memory system 120. For example, the host 102 may be configured to generate and provide the privileged bits with each memory command 134. In some instances, the privileged bits may be integrated with the memory operations provided by the memory commands 134. For example, the privileged bits may be provided using pins corresponding to the pins used to provide the memory commands. The privileged bits may be independent of the memory commands 134. For example, the privileged bits may be provided separately from the commands 134. The privileged bits may be provided using pins that do not correspond to the pins used to provide the commands.
[0040] The memory system 120 may also be configured to receive privileged bits and memory operations. The privileged bits and memory operations may be received in the form of requests and / or commands 134. For example, the memory command 134 may include a memory operation and / or a privileged bit. In other instances, a memory operation may be selected / generated based on the received command 134. The command 134 may include a memory address associated with the memory operation. For example, if the memory command 134 is a read command and the corresponding memory operation is a read operation, the memory address may be a base address to be read. The memory operation may also include multiple memory addresses associated with the memory operation. Multiple memory addresses may define a range of memory addresses to be read or written. Multiple memory addresses may be continuous (e.g., sequential) addresses and / or non-continuous addresses. In some instances, multiple memory addresses may be provided using a single memory operation and / or command 134 to request that each of the multiple memory addresses be used to repeat the memory operation individually. For example, if two memory addresses are provided with the memory operation, the memory operation may be performed for the first time at the first memory address and for the second time at the second memory address.
[0041] The memory address identifier privilege level may be provided for the memory command 134. The privilege level may indicate the privilege level required to access the memory address. The privilege level associated with the memory address and the privilege bit associated with the memory operation may be compared to determine whether the memory operation has the appropriate privilege level required to access the memory address. For example, the privilege bit corresponding to the memory operation may be a first number of privilege bits, and the privilege level corresponding to the memory address may be used to generate a second number of privilege bits. The first number of privilege bits may be compared with the second number of privilege bits. The memory operation may be performed in response to determining that the first number of privilege bits matches the second number of privilege bits. For example, the memory operation may be performed in response to determining that the memory operation can access the memory address. If the first number of privilege bits matches the second number of privilege bits, the memory operation can access the memory address. In various examples, in response to determining that the first number of privilege bits does not match the second number of privilege bits, the memory operation is prevented from being performed.
[0042] In some embodiments, the memory system 120 may generate an exception through the memory access verification logic in response to determining that the memory operation cannot access the memory address (e.g., due to insufficient privilege level). This may be referred to as "throwing an exception", and the execution of one or more memory operations may be suspended. As used herein, an exception may indicate an error condition or state caused by an abnormal program control flow. That is, an exception may interrupt the execution flow of one or more of the memory operations. The host 102 may execute a pre-registered exception handler through processing resources in response to generating and / or receiving an exception. In some instances, the processing resources of the memory system 120 may generate an exception and may execute an exception handler. The processing resources of the host 102 may receive an exception and may execute an exception handler.
[0043] For example, the exception may be thrown and handled before data is moved from the memory system 120 to the host 102. For example, the exception may prevent data from being moved from the memory system to a cache corresponding to the host 102.
[0044] In some examples, memory system 120 may interrupt execution of a memory operation by providing predetermined data that is different from the privileged data being accessed by the memory operation. For example, in response to determining that the privileged bits provided with the memory operation do not correspond to the privilege level corresponding to the memory address, memory system 120 may provide a data pattern that includes all zeros and / or all ones. Providing the data pattern may allow execution flow associated with the memory operation to continue without providing the privileged data.
[0045] The privilege level associated with privileged data stored in the memory system 120 may be stored as a privilege bit in the privilege register 137 and / or in a storage device (e.g., a memory cell array) of the memory system 120. In some examples, the privilege level may be derived from a memory address provided with the memory command 134. For example, the memory system 120 may be configured to identify an address as privileged and a privilege level without accessing bits from the privilege register 137 and / or the storage device. For example, the memory system 120 may generate the privilege bit from the memory address.
[0046] The data pattern may identify that the memory operation is unable to access the memory address. For example, the processing resource may be configured to determine whether the memory operation is able to access the memory address by analyzing data provided by the memory system 120. The processing resource may identify a fault and / or metadata from the data provided by the memory system 120 based on the data pattern provided by the memory system 120. For example, a first data pattern may describe a memory operation as being unable to access an address range, and a second data pattern may describe a memory operation as being unable to access a portion of the address range rather than the entire address range. The examples described herein are not limited by the pattern type and / or metadata that may be associated with the data pattern type.
[0047] The command 134 (e.g., request) including the memory operation and / or permission bit can be part of a predicted branch and can be speculative. For example, the BTB can predict a branch and the processing resource can select a speculative memory operation and / or memory command 134 corresponding to the branch. The processing resource can generate a request including a memory operation and a default privilege bit. The default privilege bit can be the lowest privilege level and / or can correspond to the thread being executed by the processing resource. The memory system 120 can use the default privilege bit as described above to determine whether a memory operation can access a memory address.
[0048] Figure 1B is a block diagram of a device in the form of a computing system that includes a memory system and is capable of verifying memory access privileges according to several embodiments of the present disclosure. Figure 1B In an example of, the privilege level associated with command 138 may be provided in a separate message and / or special command 136-1.
[0049] The special command 136-1 may be a message provided from the host 102 to the memory system 120 that defines a privilege level for a number of memory commands 138 provided separately from the special command 136-1. The special command 136-1 may provide a privilege level to be stored in a mode register (e.g., mode register 139) of the memory system 120. The privilege level may be reset using a special command 136-2. The special command 136-2 may also be provided from the host 102 to the memory system 120. The memory system 120 may reset the mode register 139 of the system 120 in response to receiving the special command 136-2.
[0050] Upon receiving the special command 136-1, the memory system 120 may extract the privilege bit provided with the special command 136-1 through the memory access verification logic. For example, the privilege bit may identify the privilege level of any memory command following the special command 136-1. The memory system 120 may store the privilege bit in a mode register 139 of the memory system 120. The mode register 139 may define a privilege mode that may be used to identify the privilege level of the memory command 138.
[0051] The memory system 120 may include a plurality of mode registers 139 that may be separate or integrated. For example, the memory system 120 may include a plurality of continuous registers (e.g., mode registers 139) that are divided into portions that provide mode registers corresponding to specific threads and / or processing resources. The memory system 120 may also include a plurality of discontinuous mode registers 139, wherein each of the plurality of mode registers 139 corresponds to one or more of the threads and / or processing resources. The memory system 120 may utilize the plurality of mode registers 139 to store privileged modes for a plurality of different threads and / or processing resources in the form of privileged bits. For example, the memory system 120 may store a first privileged mode in a first privileged register corresponding to a first thread and / or processing resource, and the memory system 120 may store a second privileged mode in a second privileged register corresponding to a second thread and / or processing resource. In some instances, this allows the memory system 120 to track privileged modes of different threads and / or processing resources, and allows the memory system 120 to implement privilege-based restrictions on access to memory resources corresponding to different privileged modes.
[0052] Implementing privileged modes corresponding to different threads and / or processing resources may include using a thread ID and / or a processing resource ID to identify a privileged mode, or determining that a privileged mode does not exist for a corresponding thread ID and / or processing ID. In such an instance, special command 136-1 may include a privileged mode and an identification (ID). The privileged mode may be stored in mode register 139 using an ID. For example, a first ID and a first privileged mode may be stored in a first mode register, and a second ID and a second privileged mode may be stored in a second mode register.
[0053] In some embodiments, mode register 139 may be associated with different IDs. For example, a first mode register may store a privileged mode corresponding to a first ID (e.g., a thread ID and / or a processing resource ID), and a second mode register may store a privileged mode corresponding to a second ID. Associating mode register 139 with an ID may reduce the amount of data stored by eliminating the need to store an ID corresponding to a privileged mode. For example, a first mode register may store a privileged mode corresponding to a first ID without storing the first ID, and a second mode register may store a privileged mode corresponding to a second ID without storing the second ID. Although the privileged mode and ID are described as being stored in mode register 139, the privileged mode and ID may also be stored in a memory resource of a memory system 120 such as a storage device.
[0054] In response to receiving a memory command 138 that includes a memory operation and, in some instances, includes an ID, the memory system 120 may determine whether to utilize a stored privileged mode to process the memory command 138. For example, the memory system 120 may retrieve the privileged mode from the mode register 139 in response to receiving the memory command 138. The retrieved privileged mode may correspond to the memory command 138. For example, if multiple privileged modes are stored in the mode register 139, the memory system 120 may retrieve the privileged mode using the ID provided with the memory command 138. If a single privileged mode is stored in the mode register 139, the memory system 120 may retrieve the privileged mode without utilizing the ID.
[0055] The memory system 120 may compare the privileged mode received from the host 102 with the privileged mode corresponding to the memory address. If the privileged mode corresponding to the memory command 138 identifies the same privilege level as the privilege level identified by the privileged mode corresponding to the memory address, the memory system may process the memory command by processing the corresponding memory operation provided with the memory command 138. If the privileged mode corresponding to the memory command 138 does not identify the same privilege level as the privileged mode corresponding to the memory address, the memory system 120 may refrain from processing the memory operation provided with the memory command 138.
[0056] The memory system 120 may utilize the privileged mode received via the special command 136-1 to verify the privilege level of the plurality of privileged commands 138. The transfer of the privileged mode via the special command 136-1 provides the ability to transfer the privileged mode without changing the communication protocol between the host 102 and the memory system 120. That is, the application executed in the thread by the processing resources of the host 102, rather than the host 102, may be responsible for providing the privilege level via the special command 136-1.
[0057] Mode register 139 may be reset using special command 136 - 2 . For example, when providing memory command 138 that utilizes a privileged mode, an application may provide special command 136 - 2 through host 102 to reset the privilege level of future memory commands provided from host 102 .
[0058] For example, special command 136-2 may include a number of bits representing a privileged mode. In some examples, special command 136-2 may include a first number of bits representing a privileged mode and a second number of bits representing an ID (eg, thread ID and / or processor ID) corresponding to the privileged mode.
[0059] In some instances, the mode register 139 may be reset without receiving the special command 136-2. For example, the memory system 120 may reset the mode register 139 after a predetermined duration has passed since the host 102 provided the memory command 138. In some instances, the memory system 120 may reset the mode register 139 after a predetermined duration has passed since the host 102 provided the memory command 138 having an ID corresponding to the mode register 139.
[0060] In some embodiments, the host 102 may provide the memory command 138 without providing the special command 136-1 when performing branch prediction and / or speculation. The special command 136-1 may be part of a comparison operation, and thus if the memory command 138 is generated before the comparison operation is completed, the special command 136-1 may not be executed. In these instances, the host 102 may provide the memory command 138, and the memory system 120 may determine that the special command 136-1 is not provided and / or may determine that the privileged mode is not set in the mode register 139. The memory device 120 may utilize a default privileged mode to determine whether the memory command 138 can access privileged data stored in the memory address range included in the memory command 138 when a privileged mode is not identified in the mode register 139.
[0061] In some examples, the memory system 120 may access a first privilege level associated with a memory address provided in the memory command 138 from the mode register 139. The memory system 120 may access a second privilege level associated with the request (e.g., the special command 136-1). The second privilege level may be accessed from a storage device, register, and / or memory resource of the memory system 120. The second privilege level may be stored as a privileged mode, but may also be used as a privileged level. The memory system 120 may compare the first privilege level and the second privilege level to determine whether the memory operation provided by the memory command 138 can access the memory address. The memory system 120 may perform the comparison using the first privilege level and the second privilege level.
[0062] In response to determining that the memory operation can access the memory address, the memory system 120 can process the memory operation to perform the memory operation. In response to determining that the memory operation cannot access the memory address, the memory system 120 can refrain from processing the memory operation. The second privilege level can correspond to a privilege level of a thread that issued the memory command 138, a processor that issued the memory command 138, and / or an application that issued the memory command 138. In some instances, the second privilege level associated with the memory command 138 can be a privilege level of an operating system (OS), a hypervisor, or a privileged system application that issued the request.
[0063] Comparing the first privilege level to the second privilege level may include comparing a first number of privileged bits stored in mode register 139 to a second number of privileged bits stored in memory system 120. Comparing the first privilege level to the second privilege level may further include determining whether the first privilege level is equal to the second privilege level. In response to determining that the first privilege level is equal to the second privilege level, memory system 120 may determine that the memory operation is able to access the memory address.
[0064] Figure 1C 1 is a block diagram of a device in the form of a computing system that includes a cache system 162 and is capable of verifying memory access privileges according to several embodiments of the present disclosure. The cache system 162 includes caches 146-1 to 146-N (e.g., a level 1 cache, a level 2 cache, ..., a last level cache), referred to as caches 146. Figure 1C Also included are processing resources 144 - 1 and 144 - 2 , referred to as processing resource 144 .
[0065] The cache system 162 may be a memory system. Figure 1A and 1BThe example provided by the memory system 120 in FIG. 1 may be applied to a cache system 162. The cache system 162 may include hardware or software components that store data so that further requests for data can be serviced more quickly. Caches 146-1 and 146-2 may include a first-level cache. Cache 146-1 may correspond to processing resource 144-1, and cache 146-2 may correspond to processing resource 144-2. Each of the processing resources 144 may utilize its corresponding cache. For example, processing resource 144-1 may utilize cache 146-1 but not cache 146-2, and processing resource 144-2 may utilize cache 146-2 but not cache 146-1. Caches 146-2 to 146-N may be public caches. That is, caches 146-2 to 146-N may be utilized by both processing resources 144.
[0066] Data from cache 146 may be moved between caches 146 based on usage. For example, frequently accessed data may be stored in cache 146, while infrequently accessed data may be stored in cache 146-N.
[0067] Data may be copied from memory system 120 to cache system 162. In some instances, processing resources 144-1 and 144-2 may retrieve data from the memory system. Data retrieved from the memory system may be stored in cache 146. Thus, cache 146 may include privileged data.
[0068] Privileged data may be stored in any of caches 146. For example, privileged data may be stored in cache 146-1, cache 146-2, cache 146-3, ..., and / or cache 146-N. In this way, access to any cache may be verified to determine whether the memory operation has a privilege level sufficient to access the data stored in cache 146.
[0069] The cache system 162 may include: Figure 2 The cache system 162 may utilize, for example, Figure 1A The privilege bits provided with each memory operation and / or memory command described above authenticate memory accesses. The cache system 162 may authenticate memory accesses using, for example, privilege bits provided in special commands.
[0070] In some examples, access to data may include moving data from one of caches 146 to another of caches 146. For example, if data is moved from cache 146-N to caches 146-1, 146-2, and / or 146-3, the access may be validated. If data is moved from cache 146-1 to caches 146-2, 146-3, and / or 146-N, the data may also be validated.
[0071] In some examples, cache system 162 may receive a command at memory access verification logic. The command may include a memory operation and a first privilege level. The command and / or the memory operation may include multiple addresses accessed by the memory operation. The first privilege level may be represented using a privilege bit.
[0072] Cache system 162 may identify a second privilege level associated with a plurality of memory addresses of the cache, wherein the plurality of memory addresses are associated with the memory operation. Cache system 162 may use the first privilege level and the second privilege level to determine whether the memory operation is capable of accessing the plurality of memory addresses. In response to determining that the memory operation is capable of accessing the plurality of memory addresses, cache system 162 may process the memory operation to provide access to the plurality of memory addresses of cache 146.
[0073] In some examples, cache system 163 may use a hierarchy of privilege levels, a first privilege level, and a second privilege level to determine whether a memory operation can access multiple memory addresses. The hierarchy of privilege levels may define multiple privilege levels and relationships between multiple privilege levels. For example, the hierarchy of privilege levels may define that a memory operation with a highest privilege level can access data with a lower privilege level, and a memory operation with a lowest privilege level cannot access data with a higher privilege level. Thus, the hierarchy of privilege levels may prioritize the privilege levels of memory operations and the privilege levels of data. The hierarchy of privilege levels may be applied to Figure 1A and 1B , so that the memory system 120 can implement a hierarchy of privilege levels to determine whether a memory operation and / or memory command can access data.
[0074] Cache system 162 may use the hierarchy of privilege levels to determine whether the first privilege level has an equal privilege level or a higher privilege level than the second privilege level. Cache system 162 may also use the hierarchy of privilege levels to determine whether the first privilege level has a lower privilege level than the second privilege level.
[0075] In response to determining that the first privilege level has a privilege level equal to or higher than the second privilege level, cache system 162 may determine that the memory operation is capable of accessing the plurality of memory addresses. In response to determining that the first privilege level has a privilege level lower than the second privilege level, cache system 162 may also determine that the memory operation is not capable of accessing the plurality of memory addresses.
[0076] The cache system 162 can also utilize Figure 1B 136-1 and special command 136-2 described in the embodiment of the present invention are used to evaluate privileges. For example, special commands can be used to provide privilege levels for memory commands so that a single privilege level can correspond to multiple memory commands including memory operations. The privilege levels associated with multiple memory commands and / or memory operations can be described as privileged modes. Cache 146 can store privilege modes and / or priority levels in a storage device or memory system, in cache 146, and / or in registers corresponding to processing resources 144 and / or cache system 162.
[0077] For example, cache system 162 may receive a command (e.g., a request) to perform a plurality of memory operations on a cache. A plurality of memory addresses of the cache associated with the plurality of memory operations may be identified. A first privilege level associated with the plurality of memory addresses may be accessed from cache 146, a register of processing resource 144, and / or a register of cache system 162. A second privilege level associated with the request may be accessed. The second privilege level may be stored in cache 146, in a register of processing resource 144, and / or in a register of cache system 162.
[0078] Cache system 162 may use the first privilege level and the second privilege level to determine whether the plurality of memory operations can access the plurality of memory addresses. In response to determining that the plurality of memory operations can access the plurality of memory addresses, cache system 162 may process the plurality of memory operations to provide access to the plurality of memory addresses of cache 146.
[0079] Figure 2 2 is a block diagram of a memory system 220 capable of verifying memory access privileges according to several embodiments of the present disclosure. The memory system 220 includes memory access verification logic 202, a row decoder 204, a column decoder 206, and a memory page 208.
[0080] For clarity, the memory system 220 has been simplified to focus on features that are particularly relevant to the present disclosure. The memory array 208 may be, for example, a DRAM array, an SRAM array, an STT RAM array, a PCRAM array, a TRAM array, an RRAM array, a NAND flash array, and / or a NOR flash array. The array 208 may include memory cells arranged in rows coupled by access lines (which may be referred to herein as word lines or select lines) and columns coupled by sense lines. Although in Figure 2 A single array 208 is shown in FIG. 2 , but embodiments are not limited thereto. For example, the memory system 220 may include multiple memory devices, each memory device including several arrays 208 (eg, several banks of DRAM cells).
[0081] The memory system 220 includes address circuits to latch address signals provided on an I / O bus (e.g., a data bus) through an I / O circuit. The address signals are received and decoded by a row decoder 204 and a column decoder 206 to access a memory array 208. Data can be read from the memory array 208 by sensing voltage and / or current changes on a data line using a sensing circuit. The sensing circuit can read and latch a page (e.g., a row) of data from the memory array 206. The I / O circuit can be used for bidirectional data communication with a host through an I / O bus.
[0082] The controller decodes the signals provided by the control bus from the host. These signals may include chip enable signals, write enable signals, and address latch signals, which are used to control operations performed on the storage array 208, including data read, data write, and data erase operations. In various embodiments, the controller is responsible for executing instructions from the host. The controller may be a state machine, a sequencer, or some other type of controller.
[0083] The memory access verification logic 202 may be coupled to the row decoder 204 and / or the column decoder 206 to perform memory operations performed on the memory array 208. The memory access verification logic 202 may also be a state machine, a sequencer, or some other type of controller and may be referred to as a processing resource. The memory access verification logic 202 may verify access to data stored in the memory array 208. The memory access verification logic 202 may perform Figures 1A to 1C The example described in .
[0084] When the access is verified, the memory access verification logic 202 may process the memory operation and / or memory command by providing signals consistent with the memory command to the row decoder 204 and / or the column decoder 206. If the access is not verified, the memory access verification logic 202 may throw an exception and / or provide predetermined data through an output stream, where the predetermined data is not the requested data.
[0085] In some examples, the controller and / or memory access verification logic 202 may be executed Figures 1A to 1C For example, the controller may determine whether access is permitted and provide the determination to the memory access verification logic 202. The memory access verification logic may process the memory operation and / or throw an exception and / or provide predetermined data. The controller and / or the memory access verification logic 202 may be used to implement Figures 1A to 1C The rest of the example provided in .
[0086] The memory access verification logic 202 may include: Figure 3A and 3B The decision logic described in the . The decision logic can be implemented Figures 1A to 1C Part of the example described in .
[0087] Figure 3A 3 is a block diagram of memory access verification logic 302 according to several embodiments of the present disclosure. The memory access verification logic 302 may include decision logic 310, metadata description module 312, current mode module 314, and register 316.
[0088] The decision logic 310 may determine whether access is permitted. For example, the decision logic 310 may receive an address. The decision logic 310 may access metadata associated with the address via the metadata description module 312. The metadata associated with the address may include a privilege level associated with the address, etc. The metadata description module 312 may access metadata from a register and / or a storage array of the memory system.
[0089] The metadata may include a number of bits. For example, the metadata may include a single bit that provides a privilege level. A 0 bit may represent a user privilege level, and a 1 bit may represent a kernel privilege level. The metadata may also include more than one bit. For example, the metadata may include a plurality of bits, wherein a portion of the plurality of bits is a privilege bit that represents a privilege level or a privilege mode.
[0090] Decision logic 310 may also utilize mode module 314 to retrieve privileged bits associated with memory operations. In some instances, privileged bits may represent privilege levels. Privileged bits may also be viewed as privileged modes. Mode module 314 may retrieve privileged bits from register 316. Register 316 may be a privileged register and / or a mode register.
[0091] Register 316 may be located in a memory system or locally in a host. For example, if decision logic 310 is implemented in a host, register 316 may be located locally in the host. If decision logic 310 is implemented in a memory system, register 316 may be located locally in the memory system.
[0092] Decision logic 310 may compare the metadata to the privileged mode to determine whether access to the address is permitted.
[0093] Figure 3B 3 is a block diagram of memory access verification logic 302 according to several embodiments of the present disclosure. In some examples, memory access verification logic 302 may include decision logic 310. Decision logic 310 may include base module 320 and limit module 322.
[0094] Decision logic 310 may determine whether a received address or a received address range is protected. Decision logic 310 may utilize base module 320 and limit module 322 to determine whether an address is protected.
[0095] Decision logic 310 may request a base address from base module 320. Base module 320 may store a single base address or multiple base addresses. Base module 320 may return the base address. Decision logic 310 may compare the address to the base address to determine whether the address is greater than or equal to the base address.
[0096] In some examples, the decision logic 310 may provide the address to the base module 320. The base module 320 may compare the address (e.g., the address received by the decision logic 310) to one or more base addresses to determine whether the address is greater than or equal to one of the base addresses. The base module 320 may return the determination. If the base module 320 stores multiple base addresses, the base module 320 may return the determination and the base address. For example, the base module 320 may return a determination that the address is greater than or equal to the base address, and may also return the base address.
[0097] The decision logic 310 may also determine whether the address is less than or equal to the boundary address. For example, the decision logic 310 may use the base address to request the boundary address. The boundary module 322 may receive the base address and may provide a corresponding boundary address. In an instance where the boundary module 322 stores a single boundary address, the boundary module 322 may provide the boundary address without receiving the base address. The boundary module 322 may use the base address as an index to access the corresponding boundary address. The decision logic 310 may compare the boundary address received from the boundary module 322 with the address to determine whether the address is less than or equal to the boundary address.
[0098] In some examples, the decision logic 310 can provide the address and / or the base address to the limit module 322. The limit module 322 can compare the address to the limit address to determine whether the address is less than or equal to the limit address. The limit module 322 can provide the determination to the decision logic 310. The limit module 322 can use the base address to retrieve the limit address. For example, the limit module 322 can use the base address as an index to retrieve the limit address.
[0099] Decision logic 310 can determine whether the address is greater than or equal to the base address and less than or equal to the limit address to determine whether the address is protected. If the address is greater than or equal to the base address and less than or equal to the limit address, the address is protected. If the address is less than the base address or greater than the limit address, the address is not protected.
[0100] In some instances, the decision logic 310 and / or the limit module 322 may also determine whether the address is less than or equal to a combination of a base address and a limit. The limit may be a limit size. The limit address may be generated based on the base address and the limit. For example, the limit may be added to the base address to generate the limit address. The limit may be received from the limit module 322 and / or may be received together with the base address and provided to the limit module 322. In some instances, the decision logic 310 may determine whether the address is greater than or equal to the base address and less than or equal to a combination of the base address and the limit (e.g., the limit address) to determine whether the address is protected.
[0101] Figure 4 An example flow chart of a method for memory access authentication according to the present disclosure is shown. The method stored as computer-readable instructions can be executed by a processing resource. The processing resource can be incorporated into a host and / or a memory system. At block 471, method 470 includes receiving signaling including a memory command and a memory address. At block 472, method 470 includes identifying a first value indicating a first privilege level associated with the memory address. At block 473, method 470 includes identifying a second value indicating a second privilege level associated with the memory command. At block 474, method 470 includes executing the memory command at the memory address or refraining from executing the memory command based at least in part on comparing the first value to the second value.
[0102] The method 470 may further include, in response to determining that the memory operation cannot access the memory address, refraining from processing the memory operation. The method 470 may further include, in response to determining that the memory operation can access the memory address, processing the memory operation.
[0103] The second privilege level associated with the memory command may be a privilege level of a thread that prompted the memory command with the memory address. In some instances, the second privilege level associated with the memory command is a privilege level of an application that provided the request for data at the memory address. The second privilege level associated with the memory command may also be a privilege level of at least one of an operating system, a hypervisor, or privileged system software that prompted the memory command with the memory address.
[0104] In some examples, comparing the first value to the second value can include determining that the first privilege level is equal to the second value, and wherein the memory command is executed at the memory address. In some examples, the first value and the second value can be equivalent even if the first value and the second value have different charges / voltages if the different charges / voltages represent the same value.
[0105] In some examples, identifying a second value indicating a second privilege level includes reading one or more registers from a plurality of registers. In other examples, identifying a second value indicating a second privilege level includes reading one or more cells of an array including cells associated with a memory address of the received signaling.
[0106] Figure 5 An example flow chart of a method for memory access verification according to the present disclosure is shown. At block 581, method 580 includes receiving a command at memory access verification logic associated with a cache, wherein the command includes a memory operation and a first privilege level. At block 582, method 580 includes identifying a second privilege level associated with a plurality of memory addresses of the cache, wherein the plurality of memory addresses are associated with the memory operation. At block 583, method 580 includes using the first privilege level and the second privilege level to determine whether the memory operation can access the plurality of memory addresses. At block 584, method 580 includes: in response to determining that the memory operation can access the plurality of memory addresses, processing the memory operation to provide access to the plurality of memory addresses of the cache.
[0107] Method 580 may further include determining whether the memory operation can access the plurality of memory addresses using the hierarchy of permission levels, the first privilege level, and the second privilege level. In some examples, determining whether the memory operation can access the plurality of memory addresses further includes determining whether the first privilege level has a privilege level equal to or higher than the second privilege level using the hierarchy of permission levels, and determining whether the first privilege level has a privilege level lower than the second privilege level using the hierarchy of permission levels.
[0108] The method 580 may further include: in response to determining that the first privilege level has a privilege level equal to or higher than the second privilege level, determining that the memory operation can access multiple memory addresses. The method may also further include: in response to determining that the first privilege level has a privilege level lower than the second privilege level, determining that the memory operation cannot access multiple memory addresses.
[0109] Although specific embodiments have been shown and described herein, it will be understood by those of ordinary skill in the art that the specific embodiments shown may be replaced by arrangements calculated to achieve the same results. The present disclosure is intended to cover adaptations or modifications of the various embodiments of the present disclosure. It should be understood that the above description is in an illustrative rather than a restrictive manner. By reading the above description, the combination of the above embodiments and other embodiments not specifically described herein will be apparent to those skilled in the art. The scope of the various embodiments of the present disclosure includes other applications using the above structures and methods. Therefore, the scope of the various embodiments of the present disclosure should be determined with reference to the attached claims and the full scope of equivalents to which these claims are entitled.
[0110] In the foregoing detailed description, various features are grouped together in a single embodiment for the purpose of simplifying the present disclosure. The disclosed method should not be interpreted as reflecting the following intention: the embodiments of the present disclosure must use more features than the features explicitly recited in each claim. On the contrary, as reflected in the following claims, the subject matter of the present invention lies in less than all the features of a single disclosed embodiment. Therefore, the attached claims are hereby incorporated into the detailed description, with each claim independently serving as a separate embodiment.
Claims
1. A method for memory access authentication, comprising: receiving first signaling including a memory address of a memory device and second signaling including a memory command, wherein the first signaling and the second signaling are received via an address bus and a command bus coupling the memory device to a host; identifying a first value indicative of a first privilege level associated with the memory address by reading one or more of a plurality of registers of the memory device; when receiving the memory address at the memory device, extracting from the memory address a second value indicative of a second privilege level associated with the memory command, wherein the second privilege level is encoded within the memory address, wherein the second privilege level is extracted without accessing bits from a memory device; at a memory device, executing the memory command at the memory address or refraining from executing the memory command based at least in part on comparing the first value to the second value; as well as In response to refraining from executing the memory command, providing a data pattern to the host, wherein the data pattern identifies two or more types of faults associated with comparing the first value to the second value.
2. The method of claim 1, wherein in response to determining that the memory operation cannot access the memory address, refraining from processing the memory operation.
3. The method of claim 1 , wherein the second privilege level associated with the memory command is a privilege level of at least one of: a thread that prompted the memory command with the memory address; and An application program providing a request for data at the memory address.
4. The method of claim 1, wherein the second privilege level associated with the memory command is a privilege level of at least one of an operating system (OS), a hypervisor, or privileged system software that prompted the memory command with the memory address. 5 . The method of claim 1 , wherein comparing the first value to the second value comprises determining that the first privilege level is equal to the second value, and wherein executing the memory command at the memory address.
6. The method of any one of claims 1 to 5, wherein identifying the first value indicative of the first privilege level comprises: One or more cells of an array are read, the array including a cell associated with the memory address of the first signaling.
7. A device for memory access authentication, comprising: Multiple mode registers; Storage arrays; as well as a memory access verification logic coupled to the memory array and incorporated into a host device and configured to: receiving a memory address via a first bus and receiving a command via a second bus, wherein the command comprises a memory operation, and wherein the first bus and the second bus are separate buses coupling the memory device to a host; when receiving the memory address at the memory device, deriving a privilege level and an identification (ID) corresponding to the memory operation from the memory address of a memory array incorporated into the memory device, wherein the privilege level is derived without accessing bits from the memory device; identifying a plurality of privilege bits associated with the memory address by reading one or more of a plurality of registers of the memory device; determining whether the memory operation can access the memory address using the plurality of privilege bits and the privilege level; responsive to determining that the memory operation can access the memory address, processing the memory operation; as well as In response to determining that the memory operation is unable to access the memory address, providing a data pattern to the host, wherein the data pattern identifies two or more types of faults associated with comparing the plurality of privilege bits to the privilege level.
8. The apparatus of claim 7, wherein the memory access verification logic is further configured to, in response to determining that the memory operation cannot access the memory address, refrain from processing the memory operation.
9. The apparatus of claim 8, wherein the memory access verification logic is further configured to, in response to determining that the memory operation cannot access the memory address, issue an exception.
10. The apparatus of claim 8, wherein the memory access verification logic is further configured to: in response to determining that the memory operation cannot access the memory address, provide predetermined data corresponding to the command.
11. The apparatus of claim 10, wherein the predetermined data comprises a data pattern that identifies the memory operation as being unable to access the memory address.
12. The apparatus of claim 7, wherein the command is part of a sequence of memory operations performed during branch prediction.
13. A device for memory access authentication, comprising: Multiple registers; Memory cache; as well as a memory access verification logic coupled to the memory cache, wherein the memory access verification logic is coupled to the memory cache and wherein the memory access verification logic is configured to: receiving a command to move data from a first level of the memory cache to a second level of the memory cache; receiving a plurality of memory addresses of the memory cache associated with movement data; accessing a first privilege level associated with the plurality of memory addresses, which is associated with moving data as part of a branch prediction, wherein the first privilege level is stored in the plurality of registers; accessing a second privilege level associated with the command, wherein the second privilege level is fetched from the plurality of registers when the memory address is received at the memory cache; determining whether the command can access the plurality of memory addresses using the first privilege level and the second privilege level; as well as In response to determining that the command is capable of accessing the plurality of memory addresses, moving data from the first level of the memory cache to the second level of the memory cache, In response to determining that the command is incapable of accessing the plurality of memory addresses, providing a data pattern to the second level of the memory cache, wherein the data pattern identifies two or more types of failures associated with comparing the first level to the second level.
14. The apparatus of claim 13, wherein the memory access authentication logic is further configured to authenticate an identifier (ID) using a credential to provide access to the plurality of registers.
15. The apparatus of claim 14, wherein the memory access verification logic is further configured to: in response to verifying the ID, store the second privilege level in the plurality of registers.
16. The apparatus of any one of claims 14 to 15, wherein the ID and the credential correspond to one of a processing resource, an application hosted by a processor (114-1, 114-2), or a thread of the processor.
17. The apparatus of any one of claims 14 to 15, wherein the memory access verification logic is further configured to: store default values in the plurality of registers in response to verifying the ID.
18. A method for memory access authentication, comprising: receiving a command at memory access validation logic incorporated into the cache, wherein the command includes a memory operation and an identification (ID); determining that the command does not include a first privilege level; In response to determining that the command does not include the first privilege level, assigning the first privilege level as a set privilege level, wherein the first privilege level identifies a memory address at which the command may be accessed; identifying a second privilege level associated with a plurality of memory addresses of the cache, wherein the plurality of memory addresses are associated with the memory operation; determining whether the memory operation can access the plurality of memory addresses using the first privilege level and the second privilege level; responsive to determining that the memory operation is capable of accessing the plurality of memory addresses, processing the memory operation to provide access to the plurality of memory addresses of the cache; as well as In response to determining that the memory operation is unable to access the plurality of memory addresses, providing a data pattern to the host, wherein the data pattern identifies two or more types of failures associated with comparing the first level to the second level.
19. The method according to claim 18, further comprising: Determining whether the memory operation can access the plurality of memory addresses using a hierarchy of permission levels, the first privilege level, and the second privilege level, the memory operation being able to access the plurality of memory addresses further comprising: using the hierarchy of permission levels to determine whether the first privilege level has an equal privilege level or a higher privilege level than the second privilege level; and A determination is made using the hierarchy of permission levels whether the first privilege level has a lower privilege level than the second privilege level.
20. The method of claim 19, further comprising: In response to determining that the first privilege level has an equal privilege level or a higher privilege level than the second privilege level, determining that the memory operation has access to the plurality of memory addresses; and In response to determining that the first privilege level has a lower privilege level than the second privilege level, determining that the memory operation is unable to access the plurality of memory addresses.
Citation Information
Patent Citations
Memory device check bit read mode
CN107924698A
Memory protection method and device therefor
EP0938047A1
Accessing memory locations for paged memory objects in an object-addressed memory system
US20100228936A1
Programmable Mapping of External Requestors to Privilege Classes for Access Protection
US20120198192A1
Secure privilege level execution and access protection
US20140372719A1
