Multi-Slot Security Attribute Zone
The security partition system with base and delta slots in data storage devices allows secure parameter modifications without stalling data transfer, addressing performance and QoS issues by applying incremental changes efficiently.
Patent Information
- Application Number
- US19/756505
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Filing Date
- 2026-07-28
- Publication Date
- 2026-11-26
AI Technical Summary
Existing data storage systems stall data transfer when modifying security parameters, which is not viable in environments with strict quality of service (QoS) requirements due to complex and time-consuming firmware flows.
Implementing a security partition within the data storage device with a base slot and delta slots, where security features are maintained, allowing changes to be applied in delta slots without copying the entire base slot each time, ensuring seamless data transfer.
Enables secure modification of security parameters without stalling data transfer, maintaining performance and adhering to QoS requirements by using delta slots to store incremental changes, thereby optimizing system efficiency.
Smart Images

Figure US20260377075A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application is a continuation-in-part of United States Patent Application Serial Number 17 / 950,593, filed Sep. 22, 2022, which application is a continuation-in-part of United States Patent Application Serial Number 16 / 890,973, filed Jun. 2, 2020. Each of the aforementioned related patent applications are herein incorporated by reference in its entirety.BACKGROUND OF THE DISCLOSUREField of the Disclosure
[0002] Embodiments of the present disclosure generally relate to modifying support security parameters without stalling data transfer.Description of the Related ART
[0003] A solid-state drive (SSD) stores logical blocks of data on non-volatile media (NVM) (e.g., NAND). SSDs are required to be secured to protect user information. The standard security algorithm is the XTS encryption and decryption. The security requirements state that everything the host device writes to the NAND should be encrypted on the NAND and decrypted back when the host device reads the information. Some examples for security related parameters are the following. Security keys used by AES-XTS engine for user data encryption and decryption. Access permission for read and write operations which could be per namespace and PCIe port. Command and feature lockdown used to prohibit the execution of commands submitted to NVM Express controllers and / or management endpoints in an NVM subsystem. Index to security key table. Security range table is used to map the host namespace ID and LBA to key index. In key-per-io drive, the table is bypassed since the table is directly provided by the Host.
[0004] When receiving a request to modify security related parameters, the data storage device stops fetching new commands and waits until completing all pending commands. Only after squeezing the entire system, the security database is updated, which is a valid solution in client applications. In enterprise the approach is not valid due to the strict quality of service (QoS) requirements. Complex firmware (FW) flows that keep track of all outstanding IOs and determine the correct timing for changing the security parameters is also challenging. The flows are very complex and time consuming, which may also influence the performance and QoS.
[0005] Therefore, there is a need in the art for modifying support security parameters without stalling data transfer.SUMMARY OF THE DISCLOSURE
[0006] A security partition within a data storage device can contain numerous security features such as a key table, a range table, an access table, and an input / output (IO) counter. The security features are maintained in a base slot. From time to time when a host device changes the security features. The changes typically are relatively few as opposed to a wholesale change in the security features. The changes can be placed in delta slots that are smaller than the base slot. The delta slots contain only the changes such that the entire base slot need not be copied each time the host device changes the security features. New commands will point to the newest delta slot to search for security features for the command. After searching the newest delta slot for security features, the search will progress to the next newest slot and eventually to the base slot.
[0007] In one embodiment, a data storage device comprises: a memory device; and a controller coupled to the memory device, wherein the controller is configured to: receive a command; find a pointer for the command; obtain security information for the command from a first slot of a plurality of slots in a security attribution zone; increase a counter for the first slot; move to a second slot of the plurality of slots; determine whether any security information is needed from the second slot; fetch data for the command using the obtained security information; and decrease the counter.
[0008] In another embodiment, a data storage device comprises: a memory device; and a controller coupled to the memory device, wherein the controller is configured to: maintain a security attribute zone containing a base slot; receive a security attribute change request; create a delta slot, wherein the delta slot includes security attributes changes from the request; and execute read and write commands, wherein the read and write commands can be executed between the receiving and the creating.
[0009] In another embodiment, a data storage device comprises: memory means; and a controller coupled to the memory means, wherein the controller is configured to: maintain a single security attribution zone, wherein the security attribution zone comprises a base slot and one or more delta slots; wherein the base slot comprises a plurality of security attributes comprising two or more of: key table attributes, range table attributes, access table attributes, and a counter; wherein a first delta slot of the one or more delta slots comprises changes in one or more of the plurality of security attributes from the base slot, and wherein a second delta slot of the one or more delta slots comprises changes in one or more of the plurality of security attributes from the first delta slot.BRIEF DESCRIPTION OF THE DRAWINGS
[0010] So that the manner in which the above recited features of the present disclosure can be understood in detail, a more particular description of the disclosure, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this disclosure and are therefore not to be considered limiting of its scope, for the disclosure may admit to other equally effective embodiments.
[0011] FIG. 1 is a schematic block diagram illustrating a storage system according to one embodiment.
[0012] FIG. 2 is a schematic illustration of KPIO according to one embodiment.
[0013] FIGS. 3A-3C are schematic illustrations of data-key behavior according to various embodiments.
[0014] FIG. 4 is a schematic illustration of key management.
[0015] FIG. 5 is a schematic illustration of key management according to one embodiment.
[0016] FIG. 6 is a flowchart illustrating a method of key management according to one embodiment.
[0017] FIG. 7 is a schematic block diagram illustrating a storage system in which a data storage device may function as a storage device for a host device, according to certain embodiments.
[0018] FIG. 8 is a schematic block diagram illustrating a key-per-IO write flow according to one embodiment.
[0019] FIG. 9 is a schematic block diagram illustrating multiple security partitions according to one embodiment.
[0020] FIG. 10 is a flowchart illustrating a method of command and completion flows according to one embodiment.
[0021] FIG. 11 is a flowchart illustrating a method of security parameter change flow according to one embodiment.
[0022] FIG. 12 is a schematic block diagram illustrating a high-level system block diagram according to one embodiment.
[0023] FIG. 13 is a schematic illustration of a security zone for multi-partition commands according to one embodiment.
[0024] FIG. 14 is a flowchart illustrating security parameter updating according to one embodiment.
[0025] FIG. 15 is a flowchart illustrating command processing according to one embodiment.
[0026] To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. It is contemplated that elements disclosed in one embodiment may be beneficially utilized on other embodiments without specific recitation.DETAILED DESCRIPTION
[0027] In the following, reference is made to embodiments of the disclosure. However, it should be understood that the disclosure is not limited to specific described embodiments. Instead, any combination of the following features and elements, whether related to different embodiments or not, is contemplated to implement and practice the disclosure. Furthermore, although embodiments of the disclosure may achieve advantages over other possible solutions and / or over the prior art, whether or not a particular advantage is achieved by a given embodiment is not limiting of the disclosure. Thus, the following aspects, features, embodiments and advantages are merely illustrative and are not considered elements or limitations of the appended claims except where explicitly recited in a claim(s). Likewise, reference to “the disclosure” shall not be construed as a generalization of any inventive subject matter disclosed herein and shall not be considered to be an element or limitation of the appended claims except where explicitly recited in a claim(s).
[0028] A security partition within a data storage device can contain numerous security features such as a key table, a range table, an access table, and an input / output (IO) counter. The security features are maintained in a base slot. From time to time when a host device changes the security features. The changes typically are relatively few as opposed to a wholesale change in the security features. The changes can be placed in delta slots that are smaller than the base slot. The delta slots contain only the changes such that the entire base slot need not be copied each time the host device changes the security features. New commands will point to the newest delta slot to search for security features for the command. After searching the newest delta slot for security features, the search will progress to the next newest slot and eventually to the base slot.
[0029] Some embodiments result in incorporating multiple security partition slots in the device controller. Each slot holds security parameters and an IO counter that holds the current number of pending commands in the device. The security partition slots allow the device to modify that other slot while freezing the values on the first slot till completing the previous queued commands that are still under execution.
[0030] FIG. 1 is a schematic block diagram illustrating a storage system 100 according to one embodiment. The host 102 may utilize a memory device 134, such as a non-volatile memory (NVM), included in data storage device 110 to store and retrieve data effectively. Host 102 comprises a host memory 104 and an interface (not shown). Host 102 may include a wide range of devices, such as computer servers, network attached storage (NAS) units, desktop computers, notebook (e.g., laptops) computers, tablet computers (e.g., “smart” pads), mobile devices, set-top boxes, telephone handsets (e.g., “smart” phones), televisions, cameras, display devices, digital media players, video gaming consoles, video streaming devices, automotive applications (e.g., mapping, autonomous driving), or other devices capable of running one or more virtualized hosts. In certain embodiments, host 102 includes any device having a processing unit or any form of hardware capable of processing data, including a general purpose processing unit, dedicated hardware (such as an application specific integrated circuit (ASIC)), configurable hardware such as a field programmable gate array (FPGA), or any other form of processing unit configured by software instructions, microcode, or firmware. Host memory 104 is a device allowing information, such as executable instructions, cryptographic keys, configurations, and other data, to be stored and retrieved. Host memory 104 can be DRAM, virtual memory, other main memories, and combinations thereof. The host memory 104 comprises parallel redundancy protocols, data buffers, and other components.
[0031] The interface can be a network interface or a data storage device interface. Network interface enables host 102 to communicate with data storage device 110 via a communication medium. Network interface may be one or more network adapters, also referred to as Network Interface Cards (NICs). Data storage device interface enables host 102 to communicate with data storage device 110 via a dedicated link.
[0032] The host 102 interface interacts with a data storage device 110 interface for ingress and egress of communications between host 102 and data storage device 110. Data storage device 110 interface and host 102 interface operate under a communication protocol, such as a Peripheral Component Interface Express (PCIe) serial communication protocol or other suitable communication protocols. The interface includes one or more ports, such as a PCIe port, an RDMA port (Ethernet, RoCE / iWARP, InfiniBand), a fibre channel port, a TCP port, or other suitable fabric ports. Devices connected to the PCIe fabric direct communications to other devices by providing a PCIe address. The fabric routes such communications to the appropriate device based on the PCIe address. One portion of the address is a device number that specifies the physical device to which a communication is to be routed.
[0033] Host 102 and data storage device 110 can communicate over the PCIe interface through NVMe communications. NVMe communications can be by one or more of NVMe over PCIe fabrics, NVMe over non-PCIe fabrics, and / or local PCIe. NVMe over non-PCIe fabrics includes a transport abstraction layers at both sides of the fabric interfaces to translate native PCIe transactions over non-PCIe fabrics. Host 102 can be connected to the data storage device 110 over a data center storage system network, an enterprise storage system network, a storage area network, a cloud storage network, a local area network (LAN), a wide area network (WAN), the Internet, other networks, wired links, wireless links, and interconnections thereof.
[0034] Data storage device 110 may be a network storage device, an internal storage drive (e.g., server computer, desktop hard drive, notebook computer), a data center storage device, an external storage device, an embedded mass storage device, a removable mass storage device, and other suitable data storage devices.
[0035] Data storage device 110 includes a storage device controller 112 which manages operations of data storage device 110, such as writes to and reads from a zoned namespace of an NVM 134 comprising ZNS protocol. The term NVM used herein may refer to the NS-A individually or to the one or more non-volatile memory units within the data storage device 110 for exemplary purposes. Each namespace comprises one or more zones, such as Zone 0 and Zone 1. Storage device controller 112 may include one or more processors 114, which may be multi-core processors. Processor 114 handles the components of data storage device 110 through firmware and / or software. Processor 114 executes instructions of the computer-readable program code of the firmware and / or software. Storage device controller 112 implements the processes described herein by execution of instructions by the processor 114, by hardware, or by combinations thereof. Hardware can include various components of storage device controller 112, such as logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers, embedded microcontrollers, registers, and other components.
[0036] Storage device controller 112 may operate under the NVMe protocol, but other protocols are applicable. The NVMe protocol is a communications interface / protocol developed for SSDs to operate over a host and storage device linked over a PCIe interface. NVMe protocol provides a command queue and completion path for access of data stored in data storage device 110 by host 102.
[0037] The NVM 134 of data storage device 110 may be configured for long-term storage of information as non-volatile memory space and retains information after power on / off cycles. NVM 134 may consist of one of more dies of NAND flash memory. Other examples of non-volatile memory include phase change memories, ReRAM memories, MRAM memories, magnetic media (including shingle magnetic recording), optical disks, floppy disks, electrically programmable read only memories (EPROM), electrically erasable programmable read only memories (EEPROM), and other solid-state memories. Magnetic media non-volatile memory may be one or more magnetic platters in data storage device 110. Each platter may contain one or more regions of one or more tracks of data. NVM 134 may include one or more types of non-volatile memory.
[0038] Data storage device 110 may also include other components, such as a flash interface module 130, an error correction module 732, a command fetcher 120, a command executor 126, and a control path 122. The storage device controller 112 may utilize the flash interface module 130 to interact with NVM 134 for read and write operations. DMA module 124 executes data transfers between host 102 and data storage device 110 without involvement from a host 102 CPU. Data transfer scheduler 128 controls the data transfer while activating the control path for fetching physical page regions (PRPs), posting completion and interrupts, and activating the DMAs for the actual data transfer between host 102 and data storage device 110. Error correction module 132 corrects the data fetched from the memory arrays. Command fetcher 120 parses commands to command executor 126 for execution on flash interface module 130.
[0039] FIG. 2 is a schematic illustration of KPIO according to one embodiment. As noted above, for each command or namespace, the host can specify a key for encrypting and decrypting. The host determines which key is applicable to which command or namespace. As shown in FIG. 2, the host device has a key manager and several objects labeled Object A-Object C. Objects A-C represent either different commands or different namespaces, dependent upon the desired scheme noted above. The host provides the key to the data storage device separate from the data. The keys are stored in the data storage device separate from the data. The encrypted data is stored in the memory device of the data storage device. The encrypted data includes an indication of the specific key for encrypting and decrypting.
[0040] The host can load more keys, remove keys, and update keys as desired. Removing keys is important especially when the key database is full. The NVMe standard defines that key management is done by admin commands (a different thread than the IO commands), whereas key selection is done directly in the command.
[0041] The keys are used by the data storage device to encrypt and decrypt any IO command sent by the host. The AES-XTS is on the device side on the media controller ASIC. The AES-XTS is the encryption and decryption algorithm. FIG. 2 gives an example using Object A. Object A includes an indication of the key. The data storage device takes the data and, based upon the key, encrypts the data and write the data to memory. Object B and Object C will operate as Object A in the example given above.
[0042] FIGS. 3A-3C are schematic illustrations of data-key behavior according to various embodiments. FIG. 3A demonstrates, through an example, how keys are used throughout the service of an IO read command. The same example can be used for an IO write. In FIG. 3A, part 1 of data A is serviced with Key A, followed by data B serviced with Key B, then part 2 of data A with Key A again. The data is properly decrypted for both data A and data B because the key properly matches the data.
[0043] FIGS. 3B and 3C show two problems that can occur due to key switching. FIG. 3B shows an example where the key is changed in the middle of a command. As shown in FIG. 3B the data for command A comes out garbled, as the data is partially decrypted by Key A, and partially by Key A’. As a result, the host receives incorrect data. FIG. 3C shows an example where the key is changed prior to completing the command. As shown in FIG. 3C the data for command A comes out garbled, as data A’ is decrypted by the incorrect key, Key A’ rather than Key A. As a result, the host receives wrong data.
[0044] FIG. 4 is a schematic illustration of key management. As shown in FIG. 4, the host device is responsible for switching the keys in the correct timing, which adds extra complexity in the host side by having synchronization between the administrative and input / output paths. There are two main drawbacks in the approach illustrated in FIG. 4, complexity and performance degradation. As shown in FIG. 4 (by the arrow from keys storage to data path), the key is taken directly from storage when the key is required for the encryption / decryption process. There are two straightforward solutions that could be implemented in the device, but both approaches have disadvantages in performance.
[0045] The first solution is to stop fetching new commands and do not start servicing already-fetched new commands. Finish servicing all pending commands, then change the key, and then enable both fetching and servicing new commands. Performance is greatly impacted due to stopping of all the data flow pipes.
[0046] The second solution is to stop servicing new commands that require the use of the key index whose key is about to be switched. Finish all commands using that key index that already started, and only then do the key switch. A counter of “how many commands per key index” is required for this implementation. Once the counter is 0, the key switch can take place, and new commands directed to that key index can occur. The performance is impacted as some commands are not serviced to allow the counter to reach 0.
[0047] FIG. 5 is a schematic illustration of key management according to one embodiment. As shown in FIG. 5, matching the actual key, instead of just a key index, to the command upon fetching form host is shown. Matching the actual key will ensure that each command is using the correct key throughout the entire life-span of the command, even if the key is switched before the command is serviced. To avoid a racing condition, the key switching should take place when all previously queued input / output commands have been mapped to use the original queue.
[0048] As shown in FIG. 5, the host command queuing informs the device about the existence of new commands through a doorbell (DB) mechanism. The DB is the mapping of all commands queued by the host. The command fetcher is responsible for fetching a command and extracting the relevant key index. The command fetcher will update the secured command-context with the actual key, and not the key index. The secured command context holds the key used by the command. The key storage is used as the source for copying keys to secured-command-context, and gives the admin flow a way to handle the keys. In the data path, for read commands the host security module security engine (HSEC) receives the data from the NAND, uses the key from secured-command-context, and passes decrypted data to the DMA towards the host. The opposite direction is valid for write commands.
[0049] FIG. 6 is flowchart illustrating a method of key management according to one embodiment. At block 602, the host device instructs the data storage device to change the key. Then, at block 604, the data storage device copies the doorbell database, and a doorbell snapshot is taken at block 606. The data storage device then determines whether all commands in the snapshot have been fetched at block 608. If all of the commands in the doorbell snapshot have not been fetched, then the data storage device waits at block 610. Once all commands in the DB snapshot have been fetched in block 608, the key database is updated in block 612 resulting in an updated / new key database in block 613. Finally, the key switch occurs in block 612. Blocks 604, 606, 608, 610, 612, and 613 are all part of the data storage device administrative key management.
[0050] In parallel to the administrative key management, commands are processed. Specifically, the host device queues a command in block 620. The doorbell database is updated in block 622 with the queued command. This updated doorbell database in block 622 is the doorbell database containing all of the commands that have been queued for which the doorbell snapshot is taken in block 606. Thereafter, in block 624, commands that have been queued are fetched. The key index is then extracted in block 626, and the key is copied to the secured-command-context in block 628. The key copied in block 628 is used to update the doorbell snapshot taken in block 606. Additionally, the updated key database from block 613 is what is used for copying the key in block 628. Blocks 622, 624, 626, and 628 are all part of the data storage device control path.
[0051] Thereafter, data can be read from the memory device in block 630. The Him Security Engine (HSCE) then receives the key from the secured-command-context in block 632, the HSCE then decrypts the data in block 634, and the DMA passes the requested, now decrypted data, to the host in block 636 to finish command processing in block 638. Blocks 630, 632, 634, and 636 are all part of the data storage device data path.
[0052] It is important to note that the host device can continue to queue commands during the key switching. Also, the key change (or deletion) request will remain pending until all queued commands have been fetched (and their key is updated in the secure command context). The key change (or deletion) request is pending until there are no commands being executed that use the pre-changed (or pre-deleted) key. Any new commands queued by the host will not affect the pending status of the key switch command.
[0053] FIG. 7 is a schematic block diagram illustrating a storage system 700 in which a host device 704 is in communication with a data storage device 706, according to certain embodiments. For instance, the host device 704 may utilize a non-volatile memory (NVM) 710 included in data storage device 706 to store and retrieve data. The host device 704 comprises a host DRAM 738 and, optionally, a host memory buffer (HMB) 750. In some examples, the storage system 700 may include a plurality of storage devices, such as the data storage device 706, which may operate as a storage array. For instance, the storage system 700 may include a plurality of data storage devices 706 configured as a redundant array of inexpensive / independent disks (RAID) that collectively function as a mass storage device for the host device 704.
[0054] The host device 704 may store and / or retrieve data to and / or from one or more storage devices, such as the data storage device 706. As illustrated in FIG. 7, the host device 704 may communicate with the data storage device 106 via an interface 714. The host device 704 may comprise any of a wide range of devices, including computer servers, network-attached storage (NAS) units, desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such as so-called “smart” phones, so-called “smart” pads, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming device, or other devices capable of sending or receiving data from a data storage device.
[0055] The data storage device 706 includes a controller 708, NVM 710, a power supply 711, volatile memory 712, the interface 714, and a write buffer 716. In some examples, the data storage device 706 may include additional components not shown in FIG. 7 for the sake of clarity. The controller 708 may include volatile memory such as DRAM 752 as well as a controller memory buffer (CMB) 754 dedicated for host device 704 usage. For example, the data storage device 706 may include a printed circuit board (PCB) to which components of the data storage device 706 are mechanically attached and which includes electrically conductive traces that electrically interconnect components of the data storage device 706 or the like. In some examples, the physical dimensions and connector configurations of the data storage device 706 may conform to one or more standard form factors. Some example standard form factors include, but are not limited to, 3.5” data storage device (e.g., an HDD or SSD), 2.5” data storage device, 1.8” data storage device, peripheral component interconnect (PCI), PCI-extended (PCI-X), PCI Express (PCIe) (e.g., PCIe x1, x4, x8, x16, PCIe Mini Card, MiniPCI, etc.). In some examples, the data storage device 706 may be directly coupled (e.g., directly soldered or plugged into a connector) to a motherboard of the host device 704.
[0056] Interface 714 may include one or both of a data bus for exchanging data with the host device 704 and a control bus for exchanging commands with the host device 704. Interface 714 may operate in accordance with any suitable protocol. For example, the interface 714 may operate in accordance with one or more of the following protocols: advanced technology attachment (ATA) (e.g., serial-ATA (SATA) and parallel-ATA (PATA)), Fibre Channel Protocol (FCP), small computer system interface (SCSI), serially attached SCSI (SAS), PCI, and PCIe, non-volatile memory express (NVMe), OpenCAPI, GenZ, Cache Coherent Interface Accelerator (CCIX), Open Channel SSD (OCSSD), or the like. Interface 714 (e.g., the data bus, the control bus, or both) is electrically connected to the controller 708, providing an electrical connection between the host device 704 and the controller 708, allowing data to be exchanged between the host device 704 and the controller 708. In some examples, the electrical connection of interface 714 may also permit the data storage device 706 to receive power from the host device 704. For example, as illustrated in FIG. 7, the power supply 711 may receive power from the host device 704 via interface 714.
[0057] The NVM 710 may include a plurality of memory devices or memory units. NVM 710 may be configured to store and / or retrieve data. For instance, a memory unit of NVM 710 may receive data and a message from controller 708 that instructs the memory unit to store the data. Similarly, the memory unit may receive a message from controller 708 that instructs the memory unit to retrieve data. In some examples, each of the memory units may be referred to as a die. In some examples, the NVM 710 may include a plurality of dies (i.e., a plurality of memory units). In some examples, each memory unit may be configured to store relatively large amounts of data (e.g., 128MB, 256MB, 512MB, 1GB, 2GB, 4GB, 8GB, 16GB, 32GB, 64GB, 128GB, 256GB, 512GB, 1TB, etc.).
[0058] In some examples, each memory unit may include any type of non-volatile memory devices, such as flash memory devices, phase-change memory (PCM) devices, resistive random-access memory (ReRAM) devices, magneto-resistive random-access memory (MRAM) devices, ferroelectric random-access memory (F-RAM), holographic memory devices, and any other type of non-volatile memory devices.
[0059] The NVM 710 may comprise a plurality of flash memory devices or memory units. NVM Flash memory devices may include NAND or NOR-based flash memory devices and may store data based on a charge contained in a floating gate of a transistor for each flash memory cell. In NVM flash memory devices, the flash memory device may be divided into a plurality of dies, where each die of the plurality of dies includes a plurality of physical or logical blocks, which may be further divided into a plurality of pages. Each block of the plurality of blocks within a particular memory device may include a plurality of NVM cells. Rows of NVM cells may be electrically connected using a word line to define a page of a plurality of pages. Respective cells in each of the plurality of pages may be electrically connected to respective bit lines. Furthermore, NVM flash memory devices may be 2D or 3D devices and may be single level cell (SLC), multi-level cell (MLC), triple level cell (TLC), or quad level cell (QLC). The controller 108 may write data to and read data from NVM flash memory devices at the page level and erase data from NVM flash memory devices at the block level.
[0060] The power supply 711 may provide power to one or more components of the data storage device 706. When operating in a standard mode, the power supply 711 may provide power to one or more components using power provided by an external device, such as the host device 704. For instance, the power supply 711 may provide power to the one or more components using power received from the host device 704 via interface 714. In some examples, the power supply 711 may include one or more power storage components configured to provide power to the one or more components when operating in a shutdown mode, such as where power ceases to be received from the external device. In this way, the power supply 711 may function as an onboard backup power source. Some examples of the one or more power storage components include, but are not limited to, capacitors, super-capacitors, batteries, and the like. In some examples, the amount of power that may be stored by the one or more power storage components may be a function of the cost and / or the size (e.g., area / volume) of the one or more power storage components. In other words, as the amount of power stored by the one or more power storage components increases, the cost and / or the size of the one or more power storage components also increases.
[0061] The volatile memory 712 may be used by controller 708 to store information. Volatile memory 712 may include one or more volatile memory devices. In some examples, controller 708 may use volatile memory 712 as a cache. For instance, controller 108 may store cached information in volatile memory 712 until the cached information is written to the NVM 710. As illustrated in FIG. 1, volatile memory 712 may consume power received from the power supply 711. Examples of volatile memory 712 include, but are not limited to, random-access memory (RAM), dynamic random access memory (DRAM), static RAM (SRAM), and synchronous dynamic RAM (SDRAM (e.g., DDR1, DDR2, DDR3, DDR3L, LPDDR3, DDR4, LPDDR4, and the like)).
[0062] Controller 708 may manage one or more operations of the data storage device 706. For instance, controller 708 may manage the reading of data from and / or the writing of data to the NVM 710. In some embodiments, when the data storage device 706 receives a write command from the host device 704, the controller 708 may initiate a data storage command to store data to the NVM 710 and monitor the progress of the data storage command. Controller 708 may determine at least one operational characteristic of the storage system 700 and store at least one operational characteristic in the NVM 710. In some embodiments, when the data storage device 706 receives a write command from the host device 704, the controller 708 temporarily stores the data associated with the write command in the internal memory or write buffer 716 before sending the data to the NVM 710.
[0063] FIG. 8 is a schematic block diagram illustrating a key-per-IO write flow according to one embodiment. In key-per-IO, the host provides the key tag in the IO commands. The data storage device uses the information and accesses the correct offset in the key table to get the keys. Later, in the data transfer flows, the keys are used. In some scenarios, the host device may use security commands to change the keys in the key table.
[0064] Security related parameters must be isolated from the entire system. Only root-of-trust module and specific HW engines are allowed to access the databases, which is a basic security requirement. In some flows, some of the security parameters are modified during other IO operations. The changes may be driven by host requests or by internal components. Several examples that require the changes are: the key changes are driven by the host device; detection of security may cause the system to lockdown; change in namespace such as adding or removing a namespace may cause defragmentation in the security tables; changes in the security access permission is driven by the host; and lastly, lockdown requests come from the host device.
[0065] FIG. 9 is a schematic block diagram illustrating multiple security partitions according to one embodiment. The device controller holds multiple security partition slots. FIG. 9 also describes the information held in each slot. The key table holds all supported AES-XTS keys used in the data-transfer. The security range table maps the LBA ranges into indices in the key table. The security access table holds security attributes such as access permission and lockdown per namespaces and PCIe ports. The security partition slot also includes the IO counter that holds the current pending commands in the device attached to this specific security partition slot. Whenever getting a command that needs some security attributes, the currently used security partition slot ID is attached to the command.
[0066] FIG. 10 is a flowchart illustrating a method of command and completion flows according to one embodiment. The command execution flows while supporting multiple security partition databases. The first flowchart describes the command arrival path. When the command needs to use security attributes, the security partition ID is attached to the command, and the relevant IO counter is incremented. When the command is executed (e.g. data transfer), the security attributes are taken from the slot attached to the command.
[0067] In operation 1002, a new command arrives from the host device. In operation 1004, the device controller then determines whether the command from the host device uses any security attributes. The security attributes are held in the security access table. In operation 1006, if the command from the host device does not use any security attributes then the device controller will execute the command.
[0068] In operation 1008, if the command from the host device does use any security attributes then the device controller attaches the current security partition ID to the command. In operation 1010, after the security partition ID is attached to the command the device controller then increments the relevant IO security counter. In operation 1012, the device controller takes the security related attributes from the relevant security partition ID.
[0069] A completion flowchart is shown in operations 1014-1020. When completing a command, the relevant IO counter may be decremented. In operation 1014, there is a completion posting request. In operation 1016, the device controller determines whether the command uses any security attributes. If the command does not use any security attributes then the process will proceed to operation 1020. In operation 1018, if the command does use any security attributes then the device controller decrements the relevant IO security counter. In operation 1020, the data storage device proceeds to post the completion entry to the host device.
[0070] FIG. 11 is a flowchart illustrating a method of security parameter change flow according to one embodiment. The flowchart describes security parameter modifications during IO traffic. Command fetching is stopped, and the command path is flushed. Then, a security partition slot is allocated. If the IO counter of the slot is not zero, the logic either allocates another slot or waits till the IO counter is zero. Non-zero value of the IO counter means that there is at least one pending command that is going to use the security parameters stored in this slot. After a successful allocation, the slot is initialized by root-of-trust module. Whenever getting a new command, the new allocated slot ID will be attached to the commands. Finally, command fetching is enabled going back to normal operations.
[0071] In operation 1102, the host device requests a security attribute change. In operation 1104, the system stops fetching new commands and flushes the command path. In operation 1106, the system allocates the security partition ID. In operation 1108, the system determines whether there are any pending IO commands for the allocated ID. If there are pending IO commands for the allocated ID, then the controller circles back to operation 1106. In operation 1110, if there are no pending IO commands for the allocated ID then the system initializes the allocated security partition slot. In operation 1112, the system uses the new allocated security partition ID slot for the new arrival commands. In operation 1114, the system enables command fetching for normal data transfer without stalling.
[0072] FIG. 12 is a schematic block diagram illustrating a high-level system block diagram according to one embodiment. The device controller incorporates two security partition slots. The two partition slots are utilized as a ping-pong buffer allowing modifications in security parameters without stalling the IOs. The security zone is isolated from the rest of the system due to security requirements. Only the root-of-trust module of any few specific (HW) engines can access the internal databases. The internal databases hold security parameters. Multiple security partition slots are incorporated while each slot may hold the following parameters. The security keys used by the AES-XTS engine for user data encryption and decryption. The security keys used to grant access permission and other attributes for read and write operations, which may be per namespace and PCIe port. An index to security key table. The security range table is used to map the host namespace ID and LBA to key index. In key-per-io drive, the table is bypassed since the table is directly provided by the host.
[0073] It is contemplated that a multi-partition command can also be supported. The command will carry a tuple of partition IDs (i.e., source + destination), or a multi-partition slot ID that references the tuple. An input / output (IO or I / O) security counter of every involved partition is incremented with the command so that a cross-partition command holds a reference in each and thus extending a safe-point gate so a security change in either partition must wait for the counter to drain. The operation is only permitted if both partitions’ security access tables, or a shared-policy attribute, allows and thus prevents one tenant from reading another tenant’s data. The partitions are acquired in canonical order (e.g., ascending partition ID) to avoid circular waits between concurrent multi-partition commands. If a security attribute change targets a partition referenced by an in-flight multi-partition command, the controller either defers the change until the reference drains or aborts the command and signals the host device.
[0074] FIG. 13 is a schematic illustration of a security zone 1300 for multi-partition commands according to one embodiment. The security zone 1300 is isolated (root of trust + specific HW engine only). As shown in FIG. 13, there are multiple slots within the security zone 1300. Slot 0 is the base slot having one complete copy of all security databases, and is always present. There are additionally a chain of small, bounded delta slots (i.e., Slot 1– Slot M). Slot 1 is the delta of the base. Slot 2 is the delta of Slot 1, and so on. The resolution walks from the newest to the base. The counter block holds a per slot IO counter. A command will increase the counter of every slot that the command uses. The counter block also includes the top pointer L. A slot is free to be modified when the counter for the slot is zero.
[0075] More specifically, Slot 0 includes the key table which includes all AES-XTS keys. Slot 0 also includes the range table which has the namespace (NS) identification (ID) (NSID) / logical block address (LBA) key index. Slot 0 also includes the access table that lists the permissions and lockdown. Finally, there is the IO counter for Slot 0. Each delta slot, except the last delta slot, includes the delta which will be less than or equal to X where X is the predetermined number of entries (e.g., 4). The last delta slot (e.g., Slot M) is the top slot and thus includes pointer L. Each slot includes the delta from the previous slot. Thus, each slot includes only the changes from the previous slot (e.g., the newest slot prior to the current slot) and is bounded to at most X entries.
[0076] A command will carry a pointer to the top (i.e., newest) slot, and the resolution walks from the top (i.e., newest) all the way through the other slots and finally the base (i.e., Slot 0). The first match (i.e., newest match) wins, and the base always hits. A command reads parameters from several slots so at arrival, the command increments the IO counter of every slot the command uses. Each data transfer chunk decrements a slot’s counter so that all of the command’s counters are zero at completion. As an example, if a command needs to access Slot 0, Slot 1, and Slot 2, then the counter for each of Slot 0, Slot 1, and Slot 2 will increase by 1 and will only decrease once the data for the command corresponding to the respective slot is obtained.
[0077] Taking a step back, in one embodiment, each security partition slot is huge because each security partition slot contains a lot of data, and all the security parameters and attributes need to be duplicated per slot. For example, all the keys for the slots, all the security range table, etc. will need to be duplicated. Usually, when the host device or the data storage device needs to update something, the host device or data storage device will not update everything, but instead will just maybe change one, two, three keys, etc. which amounts to some minor changes, which is not everything. Hence, duplicating everything is wasteful.
[0078] Rather than duplicating everything, there is a better solution from a power, storage area, and cost point of view. Revisiting FIG. 13, Slot 0 is the base which contains one complete copy of all security databases. Slot 0 is always present. The other slots (i.e., Slot 1– Slot M) contain the deltas and only the deltas. In other words, rather than duplicating Slot 0 multiple times with only a few changes, small delta slots can be used. There will be just a few entries in each delta slot. For example, if overwriting key number 7, then the old value for key number 7 that is in Slot 0 would not be used. Instead, the new value for key number 7, which would be in Slot 1, would be used. Slot 1 would not contain all the other unchanged data from Slot 0. Slot 1 would just contain the changes from Slot 0. If after some time the host device needs to update something else or even key number 7 again, then Slot 2 can be opened which will again contain just the delta, but the delta will be the changes from Slot 1. Further in regards to FIG. 13, Slot 0 is the complete track in the priority, and then the delta Slot 1, Slot 2, and continuing until the last Slot (e.g., Slot M). By using the delta slots (i.e., Slot 1– Slot M) and a base slot (e.g., Slot 0), the data storage device saves a lot of area which is good for power and also for cost.
[0079] In one embodiment, a delta slot may not be filled. For example, if there is only one value to change, then a new delta slot is opened. If later, another value is changed, a new slot is opened for the another value even though there is storage space in the first delta slot. In still another embodiment, if there is available room in a delta slot, the delta slot s filled prior to opening a new delta slot.
[0080] Whenever receiving a new command, the data storage device will use Slot 0. Then, after some time, the host device provides a command to change key number 7. Thus, the data storage device will open Slot 1 and capture the change for key number 7. The data storage device cannot do the change in Slot 0 because there are counters. If the IO counter is not zero in Slot 0, it means there are old commands running in the old security database (i.e., prior to the new command), and the old commands need the old key (i.e., the old value of key number 7 that is in Slot 0). Only the new command is allowed to use the new value for key number 7, and therefore the data storage device cannot just go to Slot 0 and update Slot 0 because the counter is not zero. If the counter is 0, the Slot 0 can be updated, but in the general case, such as in a high queue depth environment, the IO counter will not be zero. Therefore, the controller opens a new slot for the change. Now the new commands received from the host device will point to Slot 1, because Slot 1 is the latest version.
[0081] If needing to use key number 7, as part of the data transfer, the controller will first check Slot 1 because there is a pointer Slot 1. The controller will try to find the key in Slot 1. If the controller really needs key number 7, then the controller will take key number 7 from Slot 1. If, for example, the controller needs key number 4, key number 4 is not in Slot 1 so the data storage device will first search Slot 1, not find key number 4, and then will search Slot 0 for key number 4 and find key number 4 because Slot 0 is the baseline. Thus, using a base slot and delta slots, the controller can continue an IO transfer even when having a change in security attributes. The controller does not need to break everything or to stop the data transfer, even when having a key change.
[0082] Continuing the scenario above, if a new command from the host device arrives to change key number 7, and the counter for Slot 0 is not 0, and a first delta slot (i.e., Slot 1) is already open, then a new delta slot (i.e., Slot 2) is opened for the change to key number 7. A command that is currently in processing will have a pointer to Slot 1 because Slot 2 did not exist at the time the command that is current processing began processing. Hence, the addition of delta Slot 2 will not impact the processing of the command that pointed to Slot 1.
[0083] There is a scenario that a single command will need to utilize multiple slots. For example, if for a new command, part of the data transfer needs key number 7, which is in Slot 1, but another part of the data transfer needs key number 4 which is not in Slot 1, but rather, it in Slot 0, which is a mixture. Due to the mixture where a single command is going to utilize multiple slots, the controller will need to update the counters accordingly. The process involves, when receiving the command, incrementing the counters in Slot 1 and also in Slot 0 because as part of the data transfer, the controller is going to use both slots. Whenever transferring the data, the controller will decrement the relevant counter. After completing the command, all the counters, at least for the command in the example, will be 0.
[0084] Additionally, after some time, the controller can merge the changes. For example, after some time assume that the IO counters for Slot 1 is 0 and slot 2 is also open. At this point, the controller takes the deltas from Slot 1, updates Slot 0 accordingly, and then deletes Slot 1. Thus, the operation involves copying the deltas from Slot 1 to the baseline (e.g., Slot 0) because the value of the counters is 0, and no in-flight command is going to use Slot 1. Therefore, the controller can copy the deltas from Slot 1 safely and not have any coherency issues.
[0085] FIG. 14 is a flowchart 1400 illustrating security parameter updating according to one embodiment. Initially, a new command is received from a host device at block 1402. The new command includes the security entry information such as key values for a key table, NSID to LBA information, and permissions for access. The data storage device, or more particularly the controller of the data storage device, then creates the initial slot, Slot 0, in the security zone at block 1404. Slot 0 contains all of the security information provided by the host device in the new command at block 1402.
[0086] At a later point in time, the host device sends updates for the security information, and the controller receives the command with updated security information for at least one entry at block 1406. The controller determines at block 1408 whether there are any command in flight because if there are any commands in flight, it is possible that the updated security information will impact those commands if care is not taken. If there are no commands in flight, then the controller can simply update Slot 0 at block 1410 followed by returning to block 1406. If there are commands in flight, then a new delta slot will be created at block 1412 followed by a determination regarding whether there are any counters for delta slot with a value of 0. If there are no counters at 0, then the process returns to block 1406. If there are counters at 0, then the delta slot can be merged into Slot 0 and the delta slot can be deleted at block 1416 followed by returning to block 1406. The deleting and merging can occur for older slots even if new slots have counters greater than 0. More specifically, if there is a single base slot and three delta slots, if the counter for the base slot and the oldest delta slot are both 0, then the oldest delta slot can be merged into the base slot and the oldest delta slot can be deleted. In one embodiment, the merging and deleting for the oldest delta slot can occur even if a newer slot has a counter value greater than 0 so long as the base slot delta slot, and any older slots between the delta slot and the base slot all have counter values of 0. In another embodiment, the merging only occurs if all counters are equal to 0.
[0087] FIG. 15 is a flowchart 1500 illustrating command processing according to one embodiment. Initially, a command is received from a host device at block 1502. The controller finds the pointer for the command 1504, which may be in the counter block of FIG. 13. The controller obtains the information for the command from the appropriate slot(s) and increases the counter for the slot(s) from which the information is obtained at block 1506. The controller then moves to the next slot at block 1508. The controller determines at block 1510 whether any information is needed from the next slot. If information is needed from the slot, then the process returns to block 1506. If no information is needed from the slot, then the process proceeds to block 1512. In proceeding to the next slot, the proceeding is from newest towards oldest slot with the base slot (e.g., Slot 0) being the oldest slot.
[0088] At block 1512, the controller determines if the slot is the last slot. If the slot is not the last slot, then the process returns to block 1508. If the slot is the last slot (i.e., the base slot or Slot 0), then the controller fetches data for the command using information obtained at block 1514 followed by (or concurrent with) decreasing the counters for the slots from which the information was obtained at block 1516.
[0089] By modifying support security parameters without stalling data transfer, QoS and performance benchmarks in real host device applications that modify security related parameters often is improved. The partitions are simple for implementation and thus contribute to time-to-market as well.
[0090] In one embodiment, a data storage device comprises: a memory device; and a controller coupled to the memory device, wherein the controller is configured to: receive a command; find a pointer for the command; obtain security information for the command from a first slot of a plurality of slots in a security attribution zone; increase a counter for the first slot; move to a second slot of the plurality of slots; determine whether any security information is needed from the second slot; fetch data for the command using the obtained security information; and decrease the counter. The controller is further configured to determine whether the second slot is a last slot. The first slot is a delta slot and the second slot is a base slot. The base slot comprises security attributes previously received from a host device. The first slot comprises changes in security attributes received from the host device, wherein the changes comprise changes compared to the base slot. The controller is configured to increase a counter for the first slot when obtaining the security attributes, and wherein the controller is configured to decrease the counter when fetching data for the command. The plurality of slots comprises a single base slot and one or more delta slots. The one or more delta slots comprise changes in security attributes received since a previous delta slot was created. The one or more delta slots comprise a third slot, wherein the third slot comprises changes in security attributes that were received after creating the first slot. The controller is further configured to search the one or more delta slots in order from newest to oldest.
[0091] In another embodiment, a data storage device comprises: a memory device; and a controller coupled to the memory device, wherein the controller is configured to: maintain a security attribute zone containing a base slot; receive a security attribute change request; create a delta slot, wherein the delta slot includes security attributes changes from the request; and execute read and write commands, wherein the read and write commands can be executed between the receiving and the creating. The controller is further configured to maintain a counter for the base slot. The delta slot has space for a predetermined number of entries. The controller is controller is configured to create a new delta slot for each new security attribute change request. The controller is further configured to increment and decrement an IO counter, wherein the increment is in response to receiving a new command and the decrementing is in response to completing execution of a command. When executing a command, the controller is configured to search the delta slot prior to searching the base slot for security attributes. The controller is further configured to determine whether an IO counter is equal to 0 or greater than 0.
[0092] In another embodiment, a data storage device comprises: memory means; and a controller coupled to the memory means, wherein the controller is configured to: maintain a single security attribution zone, wherein the security attribution zone comprises a base slot and one or more delta slots; wherein the base slot comprises a plurality of security attributes comprising two or more of: key table attributes, range table attributes, access table attributes, and a counter; wherein a first delta slot of the one or more delta slots comprises changes in one or more of the plurality of security attributes from the base slot, and wherein a second delta slot of the one or more delta slots comprises changes in one or more of the plurality of security attributes from the first delta slot. The one or more delta slots comprise a predetermined number of entry locations. The controller is configured to merge the changes in the one or more of the plurality of security attributes from the first delta slot with the base slot.
[0093] While the foregoing is directed to embodiments of the present disclosure, other and further embodiments of the disclosure may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.
Claims
1. A data storage device, comprising:a memory device; anda controller coupled to the memory device, wherein the controller is configured to:receive a command;find a pointer for the command;obtain security information for the command from a first slot of a plurality of slots in a security attribution zone;increase a counter for the first slot;move to a second slot of the plurality of slots;determine whether any security information is needed from the second slot;fetch data for the command using the obtained security information; anddecrease the counter.
2. The data storage device of claim 1, wherein the controller is further configured to determine whether the second slot is a last slot.
3. The data storage device of claim 1, wherein the first slot is a delta slot and the second slot is a base slot.
4. The data storage device of claim 3, wherein the base slot comprises security attributes previously received from a host device.
5. The data storage device of claim 4, wherein the first slot comprises changes in security attributes received from the host device, wherein the changes comprise changes compared to the base slot.
6. The data storage device of claim 1, wherein the controller is configured to increase a counter for the first slot when obtaining the security attributes, and wherein the controller is configured to decrease the counter when fetching data for the command.
7. The data storage device of claim 1, wherein the plurality of slots comprises a single base slot and one or more delta slots.
8. The data storage device of claim 7, wherein the one or more delta slots comprise changes in security attributes received since a previous delta slot was created.
9. The data storage device of claim 8, wherein the one or more delta slots comprise a third slot, wherein the third slot comprises changes in security attributes that were received after creating the first slot.
10. The data storage device of claim 9, wherein the controller is further configured to search the one or more delta slots in order from newest to oldest.
11. A data storage device, comprising:a memory device; anda controller coupled to the memory device, wherein the controller is configured to:maintain a security attribute zone containing a base slot;receive a security attribute change request;create a delta slot, wherein the delta slot includes security attributes changes from the request; andexecute read and write commands, wherein the read and write commands can be executed between the receiving and the creating.
12. The data storage device of claim 11, wherein the controller is further configured to maintain a counter for the base slot.
13. The data storage device of claim 11, wherein the delta slot has space for a predetermined number of entries.
14. The data storage device of claim 11, wherein the controller is controller is configured to create a new delta slot for each new security attribute change request.
15. The data storage device of claim 11, wherein the controller is further configured to increment and decrement an input-output (IO) counter, wherein the increment is in response to receiving a new command and the decrementing is in response to completing execution of a command.
16. The data storage device of claim 11, wherein when executing a command, the controller is configured to search the delta slot prior to searching the base slot for security attributes.
17. The data storage device of claim 11, wherein the controller is further configured to determine whether an input-output (IO) counter is equal to 0 or greater than 0.
18. A data storage device, comprising:memory means; anda controller coupled to the memory means, wherein the controller is configured to:maintain a single security attribution zone, wherein the security attribution zone comprises a base slot and one or more delta slots; wherein the base slot comprises a plurality of security attributes comprising two or more of: key table attributes, range table attributes, access table attributes, and a counter; wherein a first delta slot of the one or more delta slots comprises changes in one or more of the plurality of security attributes from the base slot, and wherein a second delta slot of the one or more delta slots comprises changes in one or more of the plurality of security attributes from the first delta slot.
19. The data storage device of claim 18, wherein the one or more delta slots comprise a predetermined number of entry locations.
20. The data storage device of claim 18, wherein the controller is configured to merge the changes in the one or more of the plurality of security attributes from the first delta slot with the base slot.
