Storage device, operation method of storage device and storage controller

By detecting ransomware attacks and updating the status table, and writing recovery information in a multi-tenant environment, the challenges faced by data recovery are solved, effective measures against ransomware are implemented, and data security is ensured.

CN118733337APending Publication Date: 2024-10-01SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410277287.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-12
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In a multi-tenant environment, existing technologies cannot effectively resist ransomware attacks, resulting in data recovery challenges.

Method used

Data recovery is achieved by detecting ransomware attacks, updating tenant status tables, and writing recovery information in non-volatile memory.

Benefits of technology

Effectively resist ransomware attacks, ensure data recovery, prevent data from being encrypted, and protect tenant data from ransomware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733337A_ABST
    Figure CN118733337A_ABST
Patent Text Reader

Abstract

Disclosed are an operation method of a storage device, a storage device, and a storage controller. The method includes: detecting a ransomware attack on one or more tenants executing in a host; updating a tenant state table including a state of each of the one or more tenants based on a result of the detection; writing recovery information for data recovery in the non-volatile memory on the basis of determining that a state value of a tenant corresponding to the write request among the one or more tenants is a state value corresponding to the warning state among the plurality of state values when a write request is received from the host; and performing data recovery based on the recovery information when the recovery signal is received from the host.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the priority of Korean Patent Application No. 10-2023-0042504 filed on March 31, 2023 in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0003] The inventive concept relates to a storage device, and more particularly, to a storage device that performs data recovery in a multi-tenant environment and an operating method thereof. Background Art

[0004] Semiconductor memories are classified into volatile memories (such as static random access memory (SRAM) or dynamic random access memory (DRAM)) that lose data stored therein when power is turned off, or non-volatile memories (such as flash memory, phase change RAM (PRAM), magnetic RAM (MRAM), resistive RAM (RRAM), or ferroelectric RAM (FRAM)) that retain data stored therein when power is turned off. Nowadays, multi-tenant storage systems are being developed in which a single storage medium supports multiple tenants. The multi-tenant storage system may allow multiple tenants to share storage resources, and may manage the data of the tenants to be isolated from each other (or independent of each other).

[0005] Ransomware is a type of malware that encodes the target's data and demands money in exchange for the encryption key needed to decrypt the encrypted data. Ransomware has become a risk factor that causes huge economic and social losses. Therefore, measures are needed to allow storage devices to cope with ransomware attacks. Summary of the invention

[0006] The present invention provides a storage device and an operating method thereof that can resist malware attacks and recover data in a multi-tenant environment.

[0007] According to some example embodiments, a method for operating a storage device includes: detecting a ransomware attack on one or more tenants executed in a host; updating a tenant status table including a status of each of the one or more tenants based on a result of the detection; in response to receiving a write request from the host, writing recovery information for data recovery in a non-volatile memory based on determining that a status value of the tenant corresponding to the write request among the one or more tenants is a status value corresponding to a warning status among multiple status values; and in response to receiving a recovery signal from the host, performing data recovery based on the recovery information.

[0008] According to some example embodiments, a storage device includes: a non-volatile memory including multiple data areas and multiple spare areas corresponding to the multiple data areas, respectively; and a storage controller configured to: update a tenant status table including a status of each of one or more tenants based on a result of detecting a ransomware attack on each of one or more tenants; in response to determining that a write request is received from a host device, write data corresponding to the write request in a first data area among multiple data areas of the non-volatile memory based on determining that a status value of a tenant among the one or more tenants corresponding to the write request is a status value corresponding to a warning status among multiple status values, and write recovery information in a first spare area corresponding to the first data area; and in response to a recovery signal received from the host device, perform data recovery based on the recovery information.

[0009] According to some example embodiments, a storage controller includes: a processing circuit configured to: detect a ransomware attack on one or more tenants based on an input / output signal with a host device; send an alarm signal to the host device based on a result of the detection to output a table update signal to receive a recovery signal from the host device, and output a recovery control signal corresponding to the recovery signal; update a tenant status table based on the table update signal; control a non-volatile memory in response to a write request received from the host device, wherein when data corresponding to the write request is written at a page included in the non-volatile memory, based on determining that a status value of the tenant corresponding to the write request among the one or more tenants is a status value corresponding to a warning status among multiple status values, the processing circuit controls the non-volatile memory so that an address link to the original data is written in a spare area of ​​the page; and in response to the recovery control signal, perform a data recovery operation based on link information included in the page. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Example embodiments will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:

[0011] Figure 1 is a block diagram illustrating a storage system according to some example embodiments.

[0012] Figure 2 is a diagram showing some example embodiments Figure 1 Block diagram of a storage controller.

[0013] Figure 3 is used to describe the Figure 1 A block diagram of the detection operation of the storage controller.

[0014] Figure 4 is used to describe the Figure 3 A block diagram of how the storage controller operates based on the state of the tenant.

[0015] Figure 5 is a diagram showing some example embodiments Figure 1 A flow chart of the operation of a storage device.

[0016] Figure 6 is used to describe the Figure 3 Figure 2.2 shows a diagram of the tenant status table for .

[0017] Figure 7 is a diagram showing loading to Figure 1 Diagram of the mapping table of the buffer memory.

[0018] Figure 8 is a diagram showing some example embodiments Figure 1 A diagram of multiple pages included in a non-volatile memory.

[0019] Fig. 9 is a diagram showing a method corresponding to Figure 4 Flowchart of the operations of a storage controller receiving a write request.

[0020] Fig.10 is a reference for describing some example embodiments Fig. 9 A flow chart describing the operation of writing recovery information.

[0021] Fig.11 is a reference for describing some example embodiments Fig.10 A flowchart describing the operation of writing to the address of the original data.

[0022] Fig.12 is a reference for describing some example embodiments Fig. 9 A diagram describing an example of the operation of a storage controller.

[0023] Fig.13 is a reference for describing some example embodiments Fig.10 A diagram describing an example of the operation of a storage controller.

[0024] Fig.14 is a reference for describing some example embodiments Fig.10 A diagram depicting another example of the operation of a storage controller.

[0025] Fig.15 is a diagram showing some example embodiments Figure 4 Diagram of the communication between the host manager and the protector manager.

[0026] Fig.16 is used to describe the Figure 4A flowchart of the operation of a storage controller to restore data.

[0027] Fig.17 is used to describe a method in which a storage controller restores original data associated with a target logical address based on restoration information according to some example embodiments. Fig.16 Flowchart of the operation of .

[0028] Fig.18 is a reference for describing some example embodiments Fig.17 A diagram describing an example of the operation of a storage controller.

[0029] Fig.19 is a reference for describing some example embodiments Fig.17 A diagram depicting another example of the operation of a storage controller.

[0030] Fig. 20 is used to describe a method in which a storage controller discards recovery information based on a received discard signal according to some example embodiments. Fig.15 Graph of the operation.

[0031] Fig.21 is used to describe the Figure 1 A flow chart of operations of a storage controller performing garbage collection.

[0032] Fig. 22 is a reference for describing some example embodiments Fig.21 A diagram describing the operation of a storage controller.

[0033] Fig.23 is a block diagram of another example of a storage system according to some example embodiments.

[0034] Fig.24 is a block diagram indicating a data center to which a storage system according to some example embodiments is applied. DETAILED DESCRIPTION

[0035] Hereinafter, the inventive concept will be described more fully with reference to the accompanying drawings in which some example embodiments of the inventive concept are shown. It should be appreciated by those skilled in the art that the described example embodiments may be modified in various different ways without departing from the spirit and scope of the inventive concept.

[0036] Therefore, the drawings and description are to be regarded as illustrative rather than restrictive in nature. Throughout the specification, the same reference numerals denote the same elements. Unless otherwise specifically indicated, the order of operations or steps is not limited to the order shown in the claims or drawings. The order of operations or steps may be changed, several operations or steps may be combined, an operation or step may be divided, and a specific operation or step may not be performed.

[0037] As used herein, the singular forms "a", "an" and "an" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Although the terms first, second, etc. may be used herein to describe various elements, components, steps and / or operations, these terms are only used to distinguish one element, component, step or operation from another element, component, step or operation.

[0038] Figure 1 is a block diagram illustrating a storage system according to some example embodiments. Figure 1 , the storage system 10 may include a host device 11 and a storage device 100. In some example embodiments, the storage system 10 may include at least one of various information processing devices such as a personal computer, a notebook computer, a server, a workstation, a smart phone, and a tablet PC, but example embodiments are not limited thereto.

[0039] In some example embodiments, the storage system 10 may support a multi-tenant storage architecture. In a multi-tenant storage architecture, tenants may share a common access point but may have isolated or independent resources. For example, multiple tenants such as a first tenant T1 (tenant 1), a second tenant T2 (tenant 2), and a third tenant T3 (tenant 3) may be executed by a host controller 12 included in a host device 11. Each of the multiple tenants T1 to T3 may access the storage device 100 to store data in the storage device 100 or read data stored in the storage device 100.

[0040] In some example embodiments, the storage device 100 may include a storage controller 110, a non-volatile memory 120, and a buffer memory 130. According to the requests of the plurality of tenants T1 to T3 received from the host device 11, the storage controller 110 may store data in the non-volatile memory 120, or may provide the data stored in the non-volatile memory 120 to the plurality of tenants T1 to T3. In some example embodiments, the host device 11 and the storage device 100 may communicate with each other based on a peripheral component interconnect express (PCI-express) interface or a non-volatile memory express (NVMe) interface based on PCI-express (not shown). The storage device 100 may distinguish between the plurality of tenants T1 to T3 based on the physical function or virtual function of the interface. The plurality of tenants T1 to T3 may access only the allocated area, and the access of different tenants to the area may be restricted.

[0041] In some example embodiments, each of the plurality of tenants T1 to T3 may be configured to independently access the storage device 100 and may be exposed to a ransomware attack. For example, when the third tenant T3 is exposed to a ransomware attack, all or a portion of the data corresponding to the third tenant T3 and stored in the storage device 100 may be encrypted by the ransomware. The operation of the third tenant T3 using the corresponding data without a decryption key is restricted.

[0042] The storage device 100 according to some example embodiments may detect a ransomware attack on a plurality of tenants T1 to T3 and may provide write protection according to the state of each of the plurality of tenants T1 to T3. For example, the storage controller 110 of the storage device 100 may include a write protector 111. The write protector 111 may detect a ransomware attack on a plurality of tenants T1 to T3 and may manage the state of each of the plurality of tenants T1 to T3 according to the risk level of the ransomware attack, for example, based on the result of the ransomware detection.

[0043] According to some example embodiments, in a normal situation where the result of detecting a ransomware attack on a plurality of tenants T1 to T3 indicates that the tenant is not exposed to risk, the write protector 111 may indicate that the state of the tenant is a normal state. For example, in a situation where the result of detecting a ransomware attack on a plurality of tenants T1 to T3 indicates that, for example, the first tenant T1 is not exposed to risk, the write protector 111 may indicate (or be configured to indicate) that the state of the first tenant T1 is a normal state.

[0044] In some example embodiments, when a ransomware attack is suspected, the write protector 111 may indicate that the state of the corresponding tenant (e.g., the first tenant T1) is a warning state. When the tenant (e.g., the first tenant T1) corresponding to the write request received from the host device 11 is in the warning state, the storage controller 110 may take measures to enable data recovery in the process of performing a write operation in response to the write request.

[0045] In some example embodiments, when a ransomware attack is detected, the write protector 111 may designate the state of a tenant (e.g., the first tenant T1) as a protection state. When a write request is received for a tenant (e.g., the first tenant T1) in the protection state, the storage controller 110 may not perform a write operation and may operate in a read-only mode, thereby protecting the data stored therein.

[0046] The nonvolatile memory 120 may include a plurality of NAND flash memories. Alternatively, the nonvolatile memory 120 may include an electrically erasable programmable read-only memory (EEPROM), a phase change random access memory (PRAM), a resistive random access memory (RRAM), a nano floating gate memory (NFGM), a polymer random access memory (PoRAM), a magnetic random access memory (MRAM), a ferroelectric random access memory (FRAM), or any other memory similar thereto.

[0047] The nonvolatile memory 120 may include a plurality of memory blocks each including a plurality of pages. The storage controller 110 may distinguish the plurality of pages in the nonvolatile memory 120 by physical page addresses. The storage controller 110 may write data to the nonvolatile memory 120 or read data from the nonvolatile memory 120 in units of pages. The storage controller 110 may erase data in units of memory blocks.

[0048] The buffer memory 130 may temporarily store data to be written into the nonvolatile memory 120 or data read from the nonvolatile memory 120. The buffer memory 130 may be implemented by a volatile memory device, or may be implemented by a nonvolatile memory device. For example, the buffer memory 130 may be implemented by a dynamic random access memory (DRAM), a static random access memory (SRAM), a phase change random access memory (PRAM), or a memory similar thereto. A mapping table MT in which a logical address and a physical address are mapped may be loaded to the buffer memory 130. The storage controller 110 may convert a logical address received from the host device 11 into a physical address by using the mapping table MT.

[0049] The mapping table MT may map the logical addresses and the physical addresses in various ways such as page-based mapping, block-based mapping, and mixed mapping in which a block unit and a page unit are mixed, but example embodiments are not limited thereto.

[0050] Figure 2 is a diagram showing some example embodiments Figure 1 Block diagram of the storage controller. Figure 2 The storage controller 110 may include a write protector 111 , a processor 112 , a RAM 113 , a host interface circuit (HIC) 114 , a buffer memory interface circuit 115 , and a non-volatile memory (NVM) interface circuit 116 .

[0051] The write protector 111 may be configured to detect a ransomware attack on each of the plurality of tenants T1 to T3 and manage the state of each of the plurality of tenants T1 to T3 based on the result of the detection. For example, the write protector 111 may include a ransomware detector 111a, a tenant state table manager (TST manager) 111b, a recovery manager 111c, and a protector manager 111d.

[0052] In some example embodiments, the ransomware detector 111a may detect a ransomware attack on each of the plurality of tenants T1 to T3 and may output a detection signal based on the detection result. According to some example embodiments, a ransomware attack is performed in a manner that data previously stored in a storage medium is modified to encrypted data. Therefore, due to the ransomware attack, the host device 11 may generate a write request for overwriting the original data with encrypted data. Meanwhile, according to the data storage principle of the non-volatile memory 120, an in-situ overwrite operation in which new data is written at a physical address of previously stored data may be limited. Overwriting means an operation of mapping newly requested data to a logical address mapped to previously valid data. Due to the ransomware attack, the host device 11 sends a write request for writing encrypted data into the non-volatile memory 120 and mapping the encrypted data to the logical address of the original data. Due to the write request corresponding to the overwrite caused by the ransomware attack, the original data stored in the non-volatile memory 120 may be set to invalid data, and the encrypted data may be written to a new physical space, and the mapping relationship between the logical address and the physical address may be updated. When a tenant (eg, the first tenant T1 ) accesses a logical address storing the original data before overwriting, the encrypted data may be returned in place of the original data.

[0053] The ransomware detector 111a may detect a ransomware attack on each of the plurality of tenants T1 to T3 by analyzing a pattern of input / output signals between the plurality of tenants T1 to T3 and the storage device 100. The ransomware detector 111a may analyze the input / output pattern by using a detection method based on a combination of input parameters or a detection method using a model trained by machine learning.

[0054] Wherein the storage controller 110 includes a ransomware detector 111a Figure 2 Differently, in some example embodiments, the detection of ransomware attacks on multiple tenants T1 to T3 may be performed on the host side. When the detection of ransomware attacks on multiple tenants T1 to T3 may be performed on the host side, the host device 11 may send a detection signal to the storage device 100.

[0055] In some example embodiments, the tenant state table manager (TST manager) 111b may update a tenant state table (TST) indicating a state of each of the plurality of tenants T1 to T3. The tenant state table (TST) may indicate a state of each of the plurality of tenants T1 to T3 by using a state value. In a normal situation where there is no risk of a ransomware attack on a tenant (e.g., the first tenant T1), the tenant state table manager (TST manager) 111b may set a state value of the tenant state table (TST) to a normal state.

[0056] In some example embodiments, when a ransomware attack on a tenant (e.g., the first tenant T1) is suspected, the tenant status table manager (TST manager) 111b may set the status value of the tenant status table (TST) to a warning state. In some example embodiments, when the storage controller 110 determines that the status of the tenant (e.g., the first tenant T1) corresponding to the received write request is a warning state based on the tenant status table (TST), the storage controller 110 may write recovery information for data recovery in the non-volatile memory 120 in the process of performing a write operation corresponding to the write request. For example, the recovery information is information for returning data modified by the ransomware to the original data, and may include the original data or an address link to the original data, which address link is (or may be) for direct / indirect connection with the original data. When the storage controller 110 performs data recovery for returning the modified data to the original data, the storage controller 110 may access the original data by utilizing the address link to the original data.

[0057] In some example embodiments, when a ransomware attack on a tenant (e.g., the first tenant T1) is detected, the tenant status table manager (TST manager) 111b may set the status value of the tenant status table (TST) to a protection state. As described above, in some example embodiments, a ransomware attack is performed in a manner of encrypting data stored in the storage device 100 and modifying the original data previously stored with the encrypted data. When the storage controller 110 determines that the status of the tenant (e.g., the first tenant T1) corresponding to the received write request is a protection state based on the tenant status table (TST), the storage controller 110 may not perform a write operation for the purpose of protecting the data previously stored in the storage device 100. In other words, the storage controller 110 may perform a read-only operation with respect to the tenant (e.g., the first tenant T1) in the protection state.

[0058] In some example embodiments, when a tenant (e.g., the first tenant T1) is in a warning state, the recovery manager 111c may perform data recovery for returning the modified data to the original data based on the recovery information written in the process of performing the write operation. The recovery manager 111c may access the physical address of the non-volatile memory 120 storing the original data through the address link to the original data. The recovery manager 111c may restore the original data by accessing the physical address storing the original data, reading the original data, writing the original data at any other physical address, and updating the mapping relationship between the logical address and the physical address. The recovery manager 111c may perform data recovery as a background operation.

[0059] In some example embodiments, the protector manager 111d may support communication between the write protector 111 and the host device 11. The protector manager 111d may receive a detection signal output by the ransomware detector 111a. The protector manager 111d may output a table control signal indicating an update of the tenant state table (TST) to the tenant state table manager (TST manager) 111b based on the detection signal. The tenant state table manager (TST manager) 111b may update the tenant state table (TST) in response to the received table control signal. The protector manager 111d may send an alarm signal to the host device 11 in response to the received detection signal.

[0060] In some example embodiments, the protector manager 111d may receive a recovery signal from the host device 11. The recovery signal may include a tenant (e.g., the first tenant T1) designated for performing data recovery. The protector manager 111d may output a recovery control signal in response to the recovery signal. The recovery manager 111c may receive the recovery control signal and may perform data recovery on data of the tenant (e.g., the first tenant T1).

[0061] In some example embodiments, the processor 112 may control the overall operation of the storage controller 110. For example, the processor 112 may execute various applications (eg, a flash translation layer (FTL)) on the storage controller 110.

[0062] In some example embodiments, the flash translation layer may perform various functions (or operations) such as address mapping, wear leveling, and garbage collection, but the example embodiments are not limited thereto. In some example embodiments, when the flash translation layer performs address mapping, the flash translation layer may process the conversion from the logical address of the host device 11 to the physical address of the non-volatile memory 120 by using a mapping table. All or part of the mapping table may be loaded into the buffer memory 130 or the RAM 113. The mapping table may include an addressing field indicating a mapping relationship between a logical address and a physical address and a meta field indicating metadata for effectively using the non-volatile memory 120. In some example embodiments, wear leveling may allow the memory blocks of the non-volatile memory 120 to be used evenly, thereby preventing excessive degradation of a specific memory block. In some example embodiments, garbage collection may ensure the available capacity of the non-volatile memory 120 by copying valid data of an existing block to any other memory block and erasing the existing memory block.

[0063] In some example embodiments, the RAM 113 may be used as a buffer memory, a working memory, or a cache memory of the storage controller 110, but example embodiments are not limited thereto. The RAM 113 may store codes and instructions executed by the processor 112. The RAM 113 may store data processed by the processor 112. The RAM 113 may be implemented by, for example, a static RAM (SRAM).

[0064] In some example embodiments, the write protector 111 may be implemented in the form of software or hardware, or in the form of a combination of hardware and software. For example, when the write protector 111 is implemented in the form of software, information about the write protector 111 may be loaded into the RAM 113, and the write protector 111 loaded into the RAM 113 may be executed by the processor 112. In some example embodiments, each component of the write protector 111 including the ransomware detector 111a and the recovery manager 111c may be provided in a plug-in manner. The storage controller 110 may also include an interface for supporting various plug-ins including the ransomware detector 111a and the recovery manager 111c.

[0065] In some example embodiments, the host interface circuit 114 may communicate with the plurality of tenants T1 to T3 of the host device 11 through a given interface. For example, the given interface may include at least one of various host interfaces such as a peripheral component interconnect express (PCI-express) interface, a non-volatile memory express (NVMe) interface, a serial ATA (SATA) interface, a serial attached SCSI (SAS) interface, and a universal flash storage (UFS) interface, but example embodiments are not limited thereto.

[0066] In some example embodiments, the buffer memory interface circuit 115 may control a read operation and a write operation of the buffer memory 130 under the control of the processor 112. The buffer memory interface circuit 115 may provide the buffer memory 130 with a mapping table.

[0067] In some example embodiments, the nonvolatile memory interface circuit 116 may provide communication between the storage controller 110 and the nonvolatile memory 120. The nonvolatile memory interface circuit 116 may communicate commands, addresses, and data via an input / output channel with the nonvolatile memory 120. The nonvolatile memory interface circuit 116 may communicate control signals via a control channel with the nonvolatile memory 120.

[0068] Figure 3 is used to describe the Figure 1 A block diagram of the detection operation of the storage controller. Figure 3 , the ransomware detector 111a may monitor the input / output signal I / O between the host device 11 and the storage controller 110. The ransomware detector 111a may determine abnormal behavior or abnormal traffic based on the pattern of the input / output signal I / O, and may output a detection signal DS for each of the plurality of tenants T1 to T3. The detection signal DS may indicate the risk level of a ransomware attack on a tenant (e.g., the first tenant T1). For example, the detection signal DS may indicate whether a ransomware attack on a tenant (e.g., the first tenant T1) is suspicious or whether a ransomware attack is confirmed.

[0069] The protector manager 111d may receive the detection signal DS output by the ransomware detector 111a, and may transmit an alarm signal AS to the host manager HM included in the host device 11 in response to the detection signal DS. The host manager HM may transfer the alarm signal AS to the administrator ADM. The administrator ADM may check the status changes of the plurality of tenants T1 to T3 executed in the host device 11 through the alarm signal AS.

[0070] Meanwhile, in some example embodiments, the protector manager 111d may send a table control signal TCS to a tenant state table manager (TST manager) 111b. The table control signal TCS points to a change in a state value of each of a plurality of tenants T1 to T3 stored in the tenant state table TST. The tenant state table manager (TST manager) 111b may update the tenant state table TST based on the table control signal TCS. The storage controller 110 may check the state of a tenant (e.g., the first tenant T1) based on the state value of the tenant (e.g., the first tenant T1) present in the tenant state table TST.

[0071] In some example embodiments, the storage controller 110 may perform a defense operation corresponding to a ransomware attack according to a status value of a tenant (e.g., the first tenant T1). For example, in a case where the status value of the tenant (e.g., the first tenant T1) is set to a warning state due to a situation where a ransomware attack on the tenant (e.g., the first tenant T1) is suspected, the storage controller 110 may perform an operation for providing write recovery information against the ransomware attack. For example, in a case where the status value of the tenant (e.g., the first tenant T1) is set to a protection state as a ransomware attack on the tenant (e.g., the first tenant T1) is detected, the storage controller 110 may operate in a read-only mode with respect to the tenant (e.g., the first tenant T1) corresponding to the protection state, thereby performing only a read operation and not performing a write operation.

[0072] Figure 4 is used to describe the Figure 3 A diagram showing how the storage controller operates based on the state of the tenant. Figure 4 , the storage controller 110 may receive a write request from a host (eg, the host device 11 ).

[0073] For example, the storage controller 110 receives a first write request WR1 of a first tenant T1 , a second write request WR2 of a second tenant T2 , and a third write request WR3 of a third tenant T3 .

[0074] In some example embodiments, when the storage controller 110 receives first to third write requests WR1 to WR3, the storage controller 110 may check status values ​​of tenants (e.g., first tenant T1, second tenant T2 and / or third tenant T3) corresponding to the write requests (e.g., first write request WR1, second write request WR2 and / or third write request WR3) based on the tenant status table TST.

[0075] In some example embodiments, when the storage controller 110 receives the first write request WR1, the storage controller 110 may determine that the state of the first tenant T1 is a normal state "N" based on the tenant state table TST. The storage controller 110 may send a write command T1W for the first tenant T1 to the nonvolatile memory 120. In this case, the recovery flag RF for data recovery may be set to a logic value "0". The storage controller 110 may control the nonvolatile memory 120 through the write command T1W so that the data corresponding to the first write request WR1 is written into the memory cell.

[0076] In some example embodiments, when the storage controller 110 receives the second write request WR2, the storage controller 110 may determine that the state of the second tenant T2 is the protection state "P" based on the tenant state table TST. The storage controller 110 may not send a write command T2W. That is, for example, the storage controller 110 may operate in a read-only mode with respect to the second tenant T2.

[0077] In some example embodiments, when the storage controller 110 receives the third write request WR3, the storage controller 110 may determine that the state of the third tenant T3 is a warning state "W" based on the tenant state table TST. The storage controller 110 may send a write command T3W for the third tenant T3 to the nonvolatile memory 120. In this case, the recovery flag RF for data recovery may be set to a logic value "1". The storage controller 110 may control the nonvolatile memory 120 through the write command T3W so that data corresponding to the third write request WR3 is written into the memory cell. By using the recovery area RR used when performing data recovery, the storage controller 110 manages recovery information including original data or an address link for direct / indirect connection with the original data, and the recovery flag RF is set to a logic value "1".

[0078] In some example embodiments, the administrator ADM may determine whether to perform data recovery. For example, when the administrator ADM determines to perform data recovery, the host manager HM may send a recovery signal RS to the protector manager 111d. The protector manager 111d may send a recovery control signal RCS to the recovery manager 111c in response to the recovery signal RS. In some example embodiments, upon receiving the recovery control signal RCS, the recovery manager 111c may recover the data stored by the tenant in the warning state to the original data based on the recovery information managed in the recovery area RR.

[0079] As reference Figure 2 As described above, in some example embodiments, the ransomware attack modifies the original data stored in the storage device 100 into encrypted data, and makes it difficult to use the data stored in the storage device 100 without decryption using a decryption key. The storage controller 110 can restore the data modified by the ransomware to the original data before encryption by performing data recovery based on the recovery information managed in the recovery area RR. In addition, when a ransomware attack on a tenant is detected, the storage controller 110 can operate in a read-only mode with respect to the tenant, thereby preventing the data from being additionally modified.

[0080] Figure 5 is a diagram showing some example embodiments Figure 1 A flowchart of the operation of the storage device. Figure 5, the operation method of the storage device 100 may include detecting a ransomware attack on one or more tenants executed in the host device 11 (S510). In some example embodiments, operation S510 may be performed by a ransomware detector 111a. For example, the ransomware detector 111a may monitor input / output through the host device 11 to detect a ransomware attack, and various ransomware detection methods and / or methods for ransomware detection may be used.

[0081] In some example embodiments, the operating method of the storage device 100 may include updating a tenant state table (TST) including a state of each of one or more tenants based on the detection result (S520). For example, operation S520 may be performed by a tenant state table manager (TST manager) 111b.

[0082] In some example embodiments, the operating method of the storage device 100 may include: writing recovery information for data recovery into the non-volatile memory 120 (S530) according to whether the tenant corresponding to the write request received from the host device 11 has a status value corresponding to the warning status among multiple status values. For example, the operating method of the storage device may include: in response to receiving a write request corresponding to the tenant, writing recovery information for data recovery based on the tenant status value. In some example embodiments, operation S530 may be performed by the storage controller 110 controlled by the processor 112. In this case, the storage controller 110 may perform a write operation in response to the write request and may write the recovery information into the non-volatile memory 120 together in the process of performing the write operation.

[0083] The operating method of the storage device 100 may include: performing data recovery based on the recovery signal received from the host device 11, for example, the data recovery may be based on the recovery information (S540). In some example embodiments, operation S540 may be performed by the recovery manager 111c. The recovery manager 111c may perform data recovery as a background operation.

[0084] Figure 6 is used to describe the Figure 3 A diagram of the tenant status table. Figure 6 , the tenant status table TST may include status values ​​of a plurality of tenants T1 to T3. Each of the status values ​​included in the tenant status table TST may correspond to one of a normal status "N", a warning status "W", and a protection status "P".

[0085] For example, the normal state “N” may refer to a general state, and the storage controller 110 may perform a read operation or a write operation according to a request of a tenant in the normal state “N”.

[0086] For example, the warning state "W" may indicate that a ransomware attack is suspected, and the storage controller 110 may write recovery information for data recovery together with the data corresponding to the write request of the tenant in the warning state "W" in the non-volatile memory 120. The storage controller 110 may restore the original data based on the recovery information.

[0087] For example, protection state “P” may mean that a ransomware attack is detected, and in response to a write request of a tenant in protection state “P”, storage controller 110 may operate in a read-only mode without performing a write operation.

[0088] In some example embodiments, when the ransomware detector 111a monitors the input / output signal I / O through the host device 11 and outputs the detection signal DS, the protector manager 111d may output the table control signal TCS in response to the detection signal DS. The tenant state table manager (TST manager) 111b may update the tenant state value of the tenant state table TST in response to the table control signal TCS.

[0089] In some example embodiments, assume a situation in which the result of the operation of the ransomware detector 111a monitoring the input / output signal I / O indicates that a ransomware attack on the second tenant T2 is detected and a ransomware attack on the third tenant T3 is not detected but the ransomware attack on the third tenant T3 is suspected. For example, the ransomware detector 111a may output a detection signal DS including information about the risk level of the ransomware attack on each of the second tenant T2 and the third tenant T3 to the protector manager 111d. The protector manager 111d may provide a table control signal TCS for updating the state value of the tenant included in the tenant state table TST to the tenant state table manager (TST manager) 111b based on the detection signal DS. The tenant state table manager (TST manager) 111b may update the tenant state table TST so that the state value corresponding to the second tenant T2 is changed from the normal state "N" to the protection state "P". Additionally, in some example embodiments, the tenant status table manager (TST manager) 111 b may update the tenant status table TST such that a status value corresponding to the third tenant T3 is changed from a normal status “N” to a warning status “W”.

[0090] In some example embodiments, after updating the tenant status table TST, when the storage controller 110 receives various requests including a write request from the host device 11 , the storage controller 110 may perform operations based on the tenant status table TST.

[0091] In some example embodiments, the tenant status table TST may further include a continuous logical address range allocated to the plurality of tenants T1 to T3. For example, the tenant status table TST may further include a start address (e.g., a start LBA) and an end address (e.g., an end LBA) of the continuous logical address range allocated to each of the plurality of tenants T1 to T3. Below, it is assumed that the logical block address LBA is allocated to the plurality of tenants T1 to T3.

[0092] For example, the tenant status table TST may show that the logical block addresses ranging from the starting address (e.g., starting LBA) "0x0000_0000" to the ending address (e.g., ending LBA) "0x3FFF_FFFF" are allocated to the first tenant T1. The tenant status table TST may show that the logical block addresses ranging from the starting address (e.g., starting LBA) "0x4000_0000" to the ending address (e.g., ending LBA) "0x7FFF_FFFF" are allocated to the second tenant T2, and the logical block addresses ranging from the starting address (e.g., starting LBA) "0x8000_0000" to the ending address (e.g., ending LBA) "0xBFFF_FFFF" are allocated to the third tenant T3.

[0093] In some example embodiments, the storage controller 110 may receive a request including a logical address for accessing the non-volatile memory 120 from the host device 11, and may identify a tenant corresponding to the received request based on a logical address range (e.g., a start LBA to an end LBA) included in a tenant status table TST.

[0094] In some example embodiments, the tenant state table TST may be loaded to the RAM 113 of the storage controller 110, or may be loaded to the buffer memory 130. Meanwhile, the tenant state table TST may be stored in a meta area of ​​the nonvolatile memory 120 where metadata is stored.

[0095] Figure 7 is a diagram showing loading to Figure 1 130 of the buffer memory 130. Figure 7 , the mapping table MT for mapping logical addresses and physical addresses may include a first restoration flag first RF.

[0096] For example, the mapping table MT may include an addressing field indicating a mapping relationship between a logical address and a physical address and a meta field indicating metadata for effectively managing the nonvolatile memory 120. For example, the meta field of the mapping table MT may include a first restoration flag RF for data restoration.

[0097] In some example embodiments, the logical addresses LA1 to LA4 are logical addresses assigned to one tenant. In some example embodiments, the mapping relationship between the logical address LA1 and the physical address PA1 may be invalid. That is, the data stored at the physical address PA1 may be invalid data. In this case, the first recovery flag RF may be set to a logical value of "0", and the logical address LA1 may have nothing to do with data recovery.

[0098] In some example embodiments, the mapping relationship between the logical address LA2 and the physical address PA2 may be valid. For example, the data stored at the physical address PA2 may be valid data. In this case, the first recovery flag RF may be set to a logic value of "1", and the logical address LA2 and the physical address PA2 may be used for data recovery.

[0099] In some example embodiments, the mapping relationship between the logical address LA3 and the physical address PA3 may be valid. For example, the data stored at the physical address PA3 may be valid data. In this case, the first recovery flag RF may be set to a logical value of "0", and the logical address LA3 may be irrelevant to data recovery.

[0100] In some example embodiments, the mapping relationship between the logical address LA4 and the physical address PA4 may be invalid. For example, the data stored at the physical address PA4 may be invalid data. In this case, the first recovery flag RF may be set to a logic value of "1", and the logical address LA4 or the physical address PA4 may be used for data recovery.

[0101] In some example embodiments, the data stored at physical address PA1 and physical address PA4 may be invalid data. The data stored at physical address PA1 may not be used for data recovery, and it may not be necessary to erase the data stored at physical address PA1. However, because the data stored at physical address PA4 is invalid but can be used for data recovery, the data stored at physical address PA4 may be used for data recovery in nonvolatile memory 120 without being erased, or may be retained before the recovery data is discarded.

[0102] Meanwhile, in some example embodiments, the meta field of the mapping table MT may further include a flag (not shown) indicating whether the mapping relationship between the logical address and the physical address is valid.

[0103] In some example embodiments, when the storage controller 110 receives a resume signal from the host device 11, the storage controller 110 may perform data recovery with respect to the logical addresses LA2 and LA4 each corresponding to the first resume flag RF set to '1'.

[0104] Figure 8is a diagram showing some example embodiments Figure 1 FIG. 1 is a diagram of a plurality of pages included in a nonvolatile memory. Figure 8 The nonvolatile memory 120 may include a plurality of pages. Each of the plurality of pages may include a data area and a spare area. The spare area of ​​each page may include an address link field in which an address link AL is written and a recovery flag field in which a second recovery flag second RF is written.

[0105] In some example embodiments, the storage controller 110 may write data into the nonvolatile memory 120 or read data from the nonvolatile memory 120 in units of pages. A physical page address PPN may be assigned to each of the plurality of pages. Hereinafter, for the sake of simplicity, the following description is provided on the premise that the physical address is a physical page address.

[0106] In some example embodiments, the storage controller 110 may write data corresponding to a write request received from the host device 11 in a data area included in a page of the nonvolatile memory 120, and the data area may also be referred to as a "primary area". In some example embodiments, when the storage controller 110 writes the data corresponding to the write request to the data area of ​​the page, the storage controller 110 may write recovery information for data recovery in a spare area of ​​the same page. The recovery information stored in the spare area may include an address link AL for reading original data in a data recovery process and a second recovery flag second RF indicating that the page is associated with data recovery.

[0107] In some example embodiments, the address link AL is a physical page address or a null value for direct / indirect connection with the original data. The address link AL may be written in the address link field of the spare area. In some example embodiments, the null value may refer to the absence of a physical page address for direct / indirect connection with the original data. The null value may be replaced by any other value that provides the same function. For example, as an alternative to the null value, various methods may be used to indicate the absence of an address link. In some example embodiments, when the storage controller 110 performs data recovery, the storage controller 110 may obtain the original data based on the address link AL in the address link field written in the spare area of ​​the page.

[0108] In some example embodiments, Figure 8 The illustrated plurality of pages may be included in the same memory block, but may also be included in different memory blocks, but example embodiments are not limited thereto.

[0109] In some example embodiments, the data DAT1 may be written in the data area of ​​the page corresponding to the physical page address PPN1, a null value may be written in the address link AL field of the spare area, and a logic value "0" may be written in the recovery flag second RF field. For example, the address link AL is set to a null value, and the second recovery flag second RF is set to "0". For example, the data DAT1 may be valid data, and the host device 11 may access the data DAT1 through the mapped logical address.

[0110] In some example embodiments, the data DAT2 may be written in the data area of ​​the page corresponding to the physical page address PPN2, a null value may be written in the address link AL field of the spare area, and a logic value "0" may be written in the recovery flag second RF field. For example, the address link AL is set to a null value, and the second recovery flag second RF is set to "0". For example, the data DAT2 may be invalid data.

[0111] In some example embodiments, the data DAT3 may be written in the data area of ​​the page corresponding to the physical page address PPN3, a null value may be written in the address link AL field of the spare area, and a logic value "1" may be written in the recovery flag second RF field. For example, the address link AL is set to a null value, and the second recovery flag second RF is set to "1". For example, the data DAT3 may be valid data, and the host device 11 may access the data DAT3 through the mapped logical address.

[0112] In some example embodiments, data DAT4 may be written in the data area of ​​the page corresponding to the physical page address PPN4, a null value may be written in the address link AL field of the spare area, and a logic value "1" may be written in the recovery flag second RF field. For example, the address link AL is set to a null value, and the second recovery flag second RF is set to "1". For example, data DAT4 may be invalid data.

[0113] In some example embodiments, data DAT5 may be written in the data area of ​​the page corresponding to the physical page address PPN5, the physical page address PPN4 may be written in the address link AL field of the spare area, and a logic value "1" may be written in the recovery flag second RF field. For example, the address link AL is set to the physical page address PPN4, and the second recovery flag second RF is set to "1". For example, the data DAT5 may be invalid data.

[0114] In some example embodiments, data DAT6 may be written in the data area of ​​the page corresponding to the physical page address PPN6, the physical page address PPN5 may be written in the address link AL field of the spare area, and a logic value "1" may be written in the recovery flag second RF field. For example, the address link AL is set to the physical page address PPN5 and the second recovery flag second RF is set to "1". For example, the data DAT6 may be valid data, and the host device 11 may access the data DAT6 through the logical address.

[0115] In some example embodiments, when the storage controller 110 performs data recovery, the storage controller 110 may obtain the original data based on the address link AL and the second recovery flag second RF stored in the spare area. For example, when the storage controller 110 performs data recovery with respect to the physical page address PPN6, the storage controller 110 may determine that the physical page address PPN5 includes an address link for direct / indirect connection with the original data based on the spare area of ​​the physical page address PPN6 (that is, the address link AL field in which the address link AL set to the physical page address PPN5 is written and the recovery flag second RF field in which the second recovery flag second RF set to a logical value of "1" is written). For example, the storage controller 110 may determine that the physical page address PPN5 includes an address link for direct / indirect connection with the original data based on the physical page address PPN4 in the address link AL field written to the physical page address PPN5 and the logical value "1" in the recovery flag second RF field written to the physical page address PPN5. The storage controller 110 may determine that the data DAT4 is original data based on the null value in the address link AL field written to the physical page address PPN4 and the logic value "1" in the recovery flag second RF field written to the physical page address PPN4. In some example embodiments, when the storage controller 110 performs data recovery, the storage controller 110 may recover the data by reading the original data DAT4 corresponding to the physical page address PPN6.

[0116] In some example embodiments, even if data DAT4 and data DAT5 are written as invalid data at physical page address PPN4 and physical page address PPN5, data DAT4 corresponds to original data, and physical page address PPN4 in the spare area written to physical page address PPN5 corresponds to recovery information for data recovery. Therefore, before performing a data recovery operation on nonvolatile memory 120 or determining to discard recovery information, it is necessary to maintain the invalid physical page address PPN4 and physical page address PPN5.

[0117] In some example embodiments, when a write request for a tenant in a warning state corresponds to an overwrite, a logical address previously mapped to the original data may be mapped to a physical address of a page storing the modified data, and the page storing the original data may be set to invalid; for example, the storage controller 110 may maintain the original data and an address link AL to the original data in the recovery area, and may use the original data and the address link AL to the original data maintained in the recovery area in the processing of recovering the data.

[0118] Fig. 9 is a diagram showing a method corresponding to Figure 4 Flowchart of the operation of the storage controller receiving a write request. Fig. 9 , the storage controller 110 may receive a write request from the host device 11 ( S910 ).

[0119] The storage controller 110 may check the status of the tenant associated with the received write request based on the tenant status table ( S920 ).

[0120] The storage controller 110 may determine whether the status of the tenant corresponding to the write request is a warning status ( S930 ).

[0121] In some example embodiments, when it is determined that the state of the tenant corresponding to the write request is the warning state (Yes in operation S930), the storage controller 110 may perform a write operation including an operation of writing recovery information (S940). For example, the storage controller 110 may write recovery information as data to be used for data recovery in a spare area of ​​a page where data corresponding to the write request is written.

[0122] In some example embodiments, when it is determined that the state of the tenant corresponding to the write request is not the warning state (No in operation S930 ), the storage controller 110 may determine whether the state of the tenant is the protection state ( S950 ).

[0123] In some example embodiments, when it is determined that the state of the tenant is the protection state (Yes in operation S950), the storage controller 110 may perform a write protection operation (S960). For example, in the write protection operation, the storage device 100 may operate in a read-only mode with respect to the tenant and may only return information indicating that data is not written to the non-volatile memory 120.

[0124] In some example embodiments, when it is determined that the state of the tenant is not the protection state (No in operation S950), the storage controller 110 may perform a normal write operation (S970). Unlike the write operation performed in operation S940, when the storage controller 110 performs the normal write operation, the storage controller 110 may perform the write operation without writing the recovery information.

[0125] Fig.10 It is used to describe the reference Fig. 9 A flowchart of the operation of writing recovery information according to some example embodiments is described. Fig.10 , the storage system 10 can read the mapping table MT (S1010).

[0126] In some example embodiments, the storage controller 110 may determine whether the write request received from the host device 11 corresponds to an overwrite based on the mapping table MT (S1020). For example, when it is determined based on the mapping table MT that the logical address corresponding to the write request received from the host device 11 is mapped to a valid page, the storage controller 110 may determine that the received write request corresponds to an overwrite. For example, when it is determined based on the mapping table MT that the logical address corresponding to the write request is mapped to an invalid page, the write request may correspond to a request for writing new data; in this case, the storage controller 110 may determine that the write request does not correspond to an overwrite.

[0127] In some example embodiments, the ransomware attack is performed in a manner of overwriting the encrypted data at the logical address of the previously stored data. When the received write request corresponds to an overwrite, recovery information for recovering the original data needs to be maintained in the non-volatile memory 120 .

[0128] In some example embodiments, when it is determined that the write request received from the host device 11 corresponds to an overwrite (Yes in operation S1020), the storage controller 110 may set the address link of the first page to the address of the original data and set the second restore flag of the first page to a logic value of "1" (S1030). For example, data corresponding to the write request received from the host device 11 may be written in the data area of ​​the first page. The storage controller 110 may write the address link set to the address of the original data in the address link field of the first page and may write the second restore flag set to "1" in the restore flag field of the first page.

[0129] In some example embodiments, when it is determined that the write request received from the host device 11 does not correspond to an overwrite (No in operation S1020), the storage controller 110 may set the address link of the first page to a null value and may set the second resume flag of the first page to "1" (S1040). For example, data corresponding to the write request received from the host device 11 may be written in the data area of ​​the first page. The storage controller 110 may write the address link set to a null value in the address link field of the first page, and may write the second resume flag set to "1" in the resume flag field of the first page.

[0130] For example, a page including an address link field and a resume flag field in which resume information is written and a page in which data corresponding to a write request is written may be the same page as the first page.

[0131] The storage controller 110 may update the mapping table (S1050). For example, the first resume flag corresponding to the logical address of the write request received from the host device 11 may be set to a logical value of "1".

[0132] Fig.11 It is used to describe the reference Fig.10 A flowchart of the operation of writing to the address of the original data according to some example embodiments is described. Fig.11 , the storage controller 110 may determine whether a first resume flag corresponding to a logical address of a write request received from the host device 11 is set to a logic value of “1” ( S1110 ).

[0133] In some example embodiments, when a write request is received from a tenant corresponding to a warning state, the storage controller 110 sets the first recovery flag corresponding to the logical address of the write request to a logic value of "1" in the process of updating the mapping table MT. Therefore, when the first recovery flag corresponding to the received write request includes a logic value of "1", the data written in the previous page may correspond to the data written in the warning state. It may be determined that the second recovery flag of the previous page is set to a logic value of "1". For example, the logic value "1" may have been written in the recovery flag field of the spare area of ​​the previous page.

[0134] In some example embodiments, when the first recovery flag corresponding to the received write request includes a logic value of "0", the data written in the previous page may correspond to data written in a normal state rather than a warning state. It may be determined that the second recovery flag of the previous page is set to a logic value of "0". For example, the logic value "0" may have been written in the recovery flag field of the spare area of ​​the previous page. It may be necessary to write a logic value of "1" in the second recovery flag to indicate that the previous page is a page that can be used for data recovery. However, in some example embodiments, in-situ overwriting of pages included in the non-volatile memory 120 is limited. Therefore, in order to perform an overwrite, data may be written in a new page, and the mapping table may be updated so that the logical address is mapped to the physical address of the new page.

[0135] In some example embodiments, when it is determined that the first resume flag of the logical address corresponding to the received write request includes a logic value of "1" (yes in operation S1110), the storage controller 110 may write the previously mapped physical address PPN in the address link field of the first page, and may write a logic value of "1" in its resume flag field (S1120). For example. The storage controller 110 may set the address link of the first page to the previously mapped physical address, and may set the second resume flag of the first page to the logic value of "1". The storage controller 110 may write the address link set to the previously mapped physical address in the address link field of the spare area of ​​the first page, and may write the second resume flag set to "1" in the resume flag field of the spare area of ​​the first page.

[0136] In some example embodiments, when it is determined that the first resume flag corresponding to the logical address of the received write request includes a logic value of "0" (No in operation S1110), the storage controller 110 may perform a read operation with respect to the previously mapped physical page address PPN (S1130). In this way, the storage controller 110 may obtain data of the previously mapped physical address.

[0137] In some example embodiments, the storage controller 110 may write previous data obtained from a previously mapped physical address in a data area of ​​a second page different from the first page, may write a null value in an address link field of a spare area of ​​the second page, and may write a logic value of "1" in a recovery flag field of the spare area of ​​the second page (S1140). For example, the logic value of the second recovery flag corresponding to the previous data may be changed from "0" to "1". For example, the storage controller 110 may set the address link of the second page to a null value, and may set the second recovery flag of the second page to a logic value of "1". The storage controller 110 may write an address link set to a null value in the address link field of the spare area of ​​the second page, and may write a second recovery flag set to "1" in the recovery flag field of the spare area of ​​the second page.

[0138] In some example embodiments, the storage controller 110 may write the physical address PPN of the second page in the address link field of the spare area of ​​the first page, and may write "1" in the recovery flag field of the spare area of ​​the first page (S1150). For example. The storage controller 110 may set the address link of the first page to the physical address of the second page, and may set the second recovery flag of the first page to a logical value of "1". The storage controller 110 may write the address link set to the physical address of the second page in the address link field of the spare area of ​​the first page, and may write the second recovery flag set to "1" in the recovery flag field of the spare area of ​​the first page.

[0139] Then, in some example embodiments, when the recovery manager 111c of the storage controller 110 recovers data, it may be determined that the second page is a page to be used for data recovery by checking a logic value '1' in the recovery flag field written to the spare area of ​​the second page.

[0140] After the storage controller 110 completes the data write operation for the first page (ie, completes operation S1150), the storage controller 110 may update the mapping table (S1160). Operation S1160 may correspond to Fig.10 Operation S1050.

[0141] Fig.12 is a reference for describing some example embodiments Fig. 9 FIG. 10 is a diagram of an example of the operation of a storage controller. Fig.12, the storage controller 110 may receive a first write request WR1 for writing data DAT11 at a logical address LA1 from the host device 11 .

[0142] Assume that the continuous logical address range allocated to the third tenant T3 includes the logical address LA1.

[0143] In some example embodiments, the storage controller 110 may check the status of the third tenant T3 corresponding to the logical address LA1 based on the tenant status table TST. The storage controller 110 may write recovery information for data recovery in the nonvolatile memory 120 based on the status value of the third tenant T3 indicating the warning status "W".

[0144] In some example embodiments, the storage controller 110 may read the mapping table MT to write the recovery information in the nonvolatile memory 120. The storage controller 110 may determine that the invalid page is mapped to, for example, the logical address LA1, and may determine that the first write request WR1 does not correspond to an overwrite.

[0145] In some example embodiments, the storage controller 110 may write data DAT11 corresponding to the first write request WR1 in the data area of ​​the first page first PG corresponding to the physical page address PPN11, may write a null value in the address link field of the spare area of ​​the first page first PG, and may write a logic value "1" in the recovery flag field of the spare area thereof. For example, the first page first PG corresponding to the physical page address PPN11 is a valid page in which valid data is stored.

[0146] In some example embodiments, the storage controller 110 may update the mapping table MT so that the physical page address PPN11 and the logical address LA1 are mapped. For example, the first flag corresponding to the logical address LA1 may be set to a logic value of "1".

[0147] In some example embodiments, the data newly written after the state of the third tenant T3 is changed to the warning state "W", that is, the data DAT11, corresponds to the original data. Then, in some example embodiments, assuming that overwriting is performed with respect to the logical address LA1, the data DAT11 associated with the logical address LA1 as the original data can be restored when the storage controller 110 performs data recovery.

[0148] Fig.13 It is used to describe the reference Fig.10 FIG. 1 is a diagram illustrating an example of the operation of a storage controller according to some example embodiments. Fig.13 , the storage controller 110 may receive a second write request WR2 for writing data DAT22 at a logical address LA2 from the host device 11 .

[0149] Assume that the continuous logical address range allocated to the third tenant T3 includes the logical address LA2.

[0150] In some example embodiments, the storage controller 110 may check the status of the third tenant T3 corresponding to the logical address LA2 based on the tenant status table TST. The storage controller 110 may write recovery information for data recovery in the nonvolatile memory 120 based on the status value of the third tenant T3 indicating the warning status "W".

[0151] In some example embodiments, the storage controller 110 may read the mapping table MT to write the recovery information in the nonvolatile memory 120. The storage controller 110 may determine that the physical page address PPN21 of the valid page is mapped to the logical address LA2, that is, it may be determined that the second write request WR2 corresponds to an overwrite. For example, the page of the physical page address PPN21 previously mapped to the logical address LA2 corresponds to a valid page, and the data DAT21 stored in its data area corresponds to valid data. In this case, the second write request WR2 received from the host device 11 is a request for changing the data DAT21 as valid data to the data DAT22, and the storage controller 110 may determine that the second write request WR2 corresponds to an overwrite.

[0152] The storage controller 110 may determine that the first restore flag of the logical address LA2 includes a logic value of “1” based on the mapping table MT.

[0153] The storage controller 110 may write the physical page address PPN21 previously mapped to the logical address LA2 in the address link of the spare area of ​​the first page first PG, and may write a logic value '1' in the second recovery flag thereof.

[0154] The storage controller 110 may update the mapping table MT so that the previous mapping relationship between the logical address LA2 and the physical page address PPN21 is changed to a mapping relationship between the logical address LA2 and the physical page address PPN22. For example, the first flag corresponding to the logical address LA2 may remain at "1". The page of the previously mapped physical page address PPN21 may be changed from a valid page to an invalid page. Because the page of the physical page address PPN21 is a page including original data or an address link to the original data, the address link of the physical page address PPN22 and the physical page address PPN21 may be used for the recovery manager 111c of the storage controller 110 to perform data recovery associated with the logical address LA2.

[0155] Fig.14 is a reference for describing some example embodiments Fig.10 FIG. 10 is a diagram of another example of the operation of a storage controller described herein. Fig.14, the storage controller 110 may receive a third write request WR3 for writing data DAT32 at a logical address LA3 from the host device 11 .

[0156] Assume that the continuous logical address range allocated to the third tenant T3 includes the logical address LA3.

[0157] In some example embodiments, the storage controller 110 may check the status of the third tenant T3 corresponding to the logical address LA3 based on the tenant status table TST. The storage controller 110 may write recovery information for data recovery in the nonvolatile memory 120 based on the status value of the third tenant T3 indicating the warning status "W".

[0158] In some example embodiments, the storage controller 110 may read the mapping table MT to write the recovery information in the nonvolatile memory 120. The storage controller 110 may determine that the physical page address PPN31 of the valid page is mapped to the logical address LA3, that is, may determine that the third write request WR3 corresponds to overwriting.

[0159] The storage controller 110 may determine that the first restore flag of the logical address LA3 includes a logic value of '0' based on the mapping table MT.

[0160] In order to set the second recovery flag corresponding to the data DAT31 to a logic value of "1", the storage controller 110 may perform a read operation with respect to the previously mapped physical page address PPN31. The storage controller 110 may write the data DAT31 obtained by the read operation with respect to the physical page address PPN31 in the data area of ​​the second page second PG corresponding to the physical page address PPN32, may write a null value in the address link of the spare area of ​​the second page second PG, and may write a logic value "1" in the second recovery flag of the spare area thereof. The second page second PG may be a page different from the first page first PG among a plurality of free pages of the nonvolatile memory 120 in which data can be written.

[0161] The storage controller 110 may write data DAT32 corresponding to the third write request WR3 in the data area of ​​the first page first PG, may write the physical page address PPN32 of the second page second PG in the address link of the spare area of ​​the first page first PG, and may write a logical value "1" in the second recovery flag of its spare area.

[0162] In some example embodiments, the storage controller 110 may update the mapping table MT so that the previous mapping relationship between the logical address LA3 and the physical page address PPN31 is changed to a mapping relationship between the logical address LA3 and the physical page address PPN33. For example, the first recovery flag corresponding to the logical address LA3 may be set to a logical value of "1". The page of the previously mapped physical page address PPN31 may be changed from a valid page to an invalid page. The second page second PG in which the data DAT31 is written may be an invalid page. Because the second page second PG is a page including the original data or an address link to the original data, the address link of the physical page address PPN33 and the physical page address PPN32 can be used by the recovery manager 111c of the storage controller 110 to perform data recovery associated with the logical address LA3.

[0163] Fig.15 is a diagram showing some example embodiments Figure 4 Figure 1 shows the communication between the host manager and the protector manager. Fig.15 , the protector manager 111d may send an alarm signal to the host manager HM (S1510). For example, the protector manager 111d may send an alarm signal in the case of performing data recovery based on the recovery information or in the case of needing to discard the recovery information.

[0164] For example, when the capacity of the recovery information is greater than or equal to the reference, the protector manager 111d may send an alarm signal. Because the recovery information is managed in the recovery area including the invalid page and the recovery information is maintained or discarded before the data recovery is performed, the recovery information may occupy the capacity of the non-volatile memory 120. Alternatively, when the available capacity of the non-volatile memory 120 is less than or equal to the reference, the protector manager 111d may send an alarm signal. In some example embodiments, to ensure the available capacity of the non-volatile memory 120, it is necessary to perform an operation to ensure the capacity required for storing the recovery information. Alternatively, when the state of the tenant changes to a normal state based on the result of detecting a ransomware attack, the protector manager 111d may send an alarm signal. When the state of the tenant changes to a normal state, since it is not necessary to maintain the recovery information, it may be necessary to discard the recovery information to ensure the available capacity.

[0165] In some example embodiments, the host manager HM may notify the administrator of the received alarm signal and may receive information indicating to perform or discard data recovery from the administrator. The host manager HM may send a recovery signal or a discard signal to the protector manager 111d (S1520).

[0166] The protector manager 111d may determine whether the signal received from the host manager HM is a recovery signal or a discard signal (S1530).

[0167] For example, when determining that the signal received from the host manager HM is a recovery signal (R in operation S1530), the protector manager 111d may output a recovery control signal (S1540). For example, when receiving the recovery control signal, the recovery manager 111c may recover data associated with the tenant using recovery information.

[0168] For example, when determining that the signal received from the host manager HM is a discard signal (D in operation S1530), the protector manager 111d may output a discard control signal (S1550). The recovery manager 111c may discard the recovery information in response to the discard control signal.

[0169] In some example embodiments, the protector manager 111d may output a table control signal for updating the status value of the tenant of the tenant status table (S1560). The tenant status table manager 111b may update the status value of the tenant status table based on the table control signal.

[0170] Fig.16 is used to describe the Figure 4 Flowchart of the operation of restoring data by the storage controller. Fig.16 , the storage system 10 may read the meta field of the target logical address in the mapping table MT (S1610). In some example embodiments, the target logical address is one of a plurality of logical addresses allocated to a tenant that is a target of data recovery.

[0171] The storage controller 110 may determine whether the first restoration flag 1 RF of the target logical address includes a logic value of '1' (S1620).

[0172] For example, when it is determined that the first restoration flag first RF of the target logical address includes a logic value of '1' (Yes in operation S1620 ), the storage controller 110 restores data of the target logical address to original data based on the restoration information ( S1630 ).

[0173] For example, when it is determined that the first restoration flag 1 RF does not include a logic value of '1' (No in operation S1620 ), the storage controller 110 may determine whether a restoration operation for the tenant is ended ( S1640 ).

[0174] In some example embodiments, when it is determined that the recovery operation for the tenant is not completed (No in operation S1640), the storage controller 110 may newly set (e.g., change) the target logical address to any other logical address instead of setting it to the target logical address (S1650). The storage controller 110 may read the meta field of the target logical address newly set in the mapping table MT (S1610).

[0175] In some example embodiments, when it is determined that the recovery operation for the tenant is completed (Yes in operation S1640), the storage controller 110 may update the tenant status table (S1660). Operation S1660 may correspond to Fig.15 Operation S1560.

[0176] Fig.17 is used to describe the Fig.16 A flowchart of an operation in which a storage controller restores original data associated with a target logical address based on restoration information. Fig.17 , the storage controller 110 can read the page mapped to the target logical address (S1710).

[0177] The storage controller 110 may determine whether the second recovery flag of the mapped page includes a logic value of '1' ( S1720 ).

[0178] For example, when it is determined that the second restore flag of the mapped page includes a logic value of '1' (Yes in operation S1720 ), the storage controller 110 may determine whether the address link includes a null value ( S1730 ).

[0179] When it is determined that the address link does not include a null value (No in operation S1730), the storage controller 110 may read a page corresponding to the address link (S1740). The storage controller 110 may determine whether the second restore flag of the read page includes a logic value of '1' (S1720).

[0180] For example, the storage controller 110 may read a page of original data, that is, a page in which the second restoration flag second RF includes a logic value of “1” and the address link includes a null value. The storage controller 110 may obtain the original data.

[0181] In some example embodiments, when it is determined that the address link includes a null value (yes in operation S1730), the storage controller 110 may write the original data stored in the data area of ​​the read page in the data area of ​​the third page, and may write "0" in the second recovery flag of the third page (S1750).

[0182] The storage controller 110 may update the mapping table (S1760). For example, the storage controller 110 may update the mapping table so that the target logical address is mapped to the physical page address of the third page. For example, the first restore flag of the target logical address may be set to a logical value of "0".

[0183] Fig.18 is a reference for describing some example embodiments Fig.17 FIG. 10 is a diagram of an example of the operation of a storage controller. Fig.18, the storage controller 110 may read the meta-field of the logical address LA4 as the target logical address TLA from the mapping table MT loaded into the buffer memory 130. The storage controller 110 may determine whether the first restore flag of the meta-field of the logical address LA4 includes a logic value of '1'.

[0184] According to some example embodiments, since it is determined that the first restoration flag of the logical address LA4 includes a logic value of '1', the storage controller 110 may restore data of the logical address LA4 to original data.

[0185] In some example embodiments, to restore data of the logical address LA4 to original data, the storage controller 110 may perform a read operation with respect to a physical page address PPN41 mapped to the logical address LA4.

[0186] For example, the storage controller 110 may determine whether the second recovery flag in the recovery flag field of the spare area written to the physical page address PPN41 includes a logic value of "1". Because it is determined that the second recovery flag of the physical page address PPN41 includes a logic value of "1", the storage controller 110 may determine whether the address link in the address link field of the spare area written to the physical page address PPN41 includes a null value. Because it is determined that the address link of the spare area of ​​the physical page address PPN41 includes a null value, the data DAT4 in the data area of ​​the physical page address PPN41 corresponds to the original data.

[0187] In some example embodiments, the storage controller 110 may write data DAT4 as original data in the data area of ​​the third page third PG corresponding to the physical page address PPN42 and may write a second recovery flag set to a logic value of "0" in the recovery flag field of the spare area of ​​the third page third PG. The third page third PG may be one of a plurality of pages in which data writing may be performed. Because the data of the logical address LA4 is recovered as original data by using the recovery information, the physical page address PPN42 is not used for data recovery. Therefore, a page in which the second recovery flag includes a logic value of "0" may mean that the page is not used for data recovery.

[0188] In some example embodiments, the storage controller 110 may update the mapping table MT so that the mapping relationship between the logical address LA4 and the physical page address PPN41 is changed to the mapping relationship between the logical address LA4 and the physical page address PPN42. In this case, the first restore flag corresponding to the logical address LA4 may be set to a logic value of "0".

[0189] The reference may be performed by the recovery manager 111c included in the storage controller 110. Fig.18 The data recovery described is performed as a background operation.

[0190] Fig.19 is a reference for describing some example embodiments Fig.17 FIG. 10 is a diagram of another example of the operation of a storage controller described herein. Fig.19 , the storage controller 110 may read the meta-field of the logical address LA5 as the target logical address TLA from the mapping table MT loaded into the buffer memory 130. The storage controller 110 may determine whether the first restore flag of the meta-field of the logical address LA5 includes a logic value of '1'.

[0191] Because the first restore flag of the logical address LA5 is determined to include a logic value of "1", the storage controller 110 may restore the data of the logical address LA5 to the original data. In some example embodiments, to restore the data of the logical address LA5 to the original data, the storage controller 110 may perform a read operation with respect to the physical page address PPN53 mapped to the logical address LA5.

[0192] In some example embodiments, the storage controller 110 may determine whether the second recovery flag of the spare area of ​​the physical page address PPN53 includes a logic value of "1". Since it is determined that the second recovery flag of the physical page address PPN53 includes "1", the storage controller 110 may determine whether the address link of the spare area of ​​the physical page address PPN53 includes a null value.

[0193] Since the address link of the spare area determining the physical page address PPN53 does not include a null value but includes the physical page address PPN52 , the storage controller 110 may perform a read operation with respect to the physical page address PPN52 included in the address link.

[0194] Because the second recovery flag of the spare area determining the physical page address PPN52 includes a logic value of '1', the storage controller 110 may perform a read operation with respect to the physical page address PPN51 included in the address link.

[0195] Because the second recovery flag of the spare area determining the physical page address PPN51 includes a logic value of "1" and the address link of the spare area determining the physical page address PPN51 includes a null value, the data DAT51 stored in the data area of ​​the physical page address PPN51 corresponds to the original data. In this case, the data DAT52 and the data DAT53 correspond to the data updated by overwriting.

[0196] In some example embodiments, the storage controller 110 may write data DAT51 as original data in the data area of ​​the third page third PG corresponding to the physical page address PPN54, and may write a second recovery flag second RF set to a logical value of "0" in the recovery flag field of the spare area of ​​the third page third PG corresponding to the physical page address PPN54.

[0197] In some example embodiments, the storage controller 110 may update the mapping table MT so that the mapping relationship between the logical address LA5 and the physical page address PPN53 is changed to the mapping relationship between the logical address LA5 and the physical page address PPN54. For example, the first restore flag corresponding to the logical address LA5 may be set to a logic value of "0".

[0198] The reference may be performed by the recovery manager 111c included in the storage controller 110. Fig.19 The data recovery described is performed as a background operation.

[0199] Fig. 20 is used to describe a method in which a storage controller discards recovery information based on a received discard signal according to some example embodiments. Fig.15 . Fig. 20 , the storage controller 110 may discard the recovery information stored in the non-volatile memory 120 .

[0200] like Fig.15 As shown, when it is determined that it is not necessary to retain the recovery information to cope with the ransomware attack, the host manager HM may send a discard signal to the protector manager 111d. The protector manager 111d may output a discard control signal in response to the discard signal.

[0201] The protector manager 111d included in the storage controller 110 may control the storage controller 110 to discard the recovery information stored in the nonvolatile memory 120 in response to the discard control signal. The storage controller 110 may discard: the original data, the information about the link to the original data, and the information about the second recovery flag stored in the nonvolatile memory 120.

[0202] For example, Fig. 20 As shown, the storage controller 110 may perform a read operation with respect to the physical page address PPN63 mapped to the logical address LA6 as the target logical address TLA. The page of the physical page address PPN63 may store the data DAT63 as the data updated by the most recent overwrite. The storage controller 110 may write the data DAT63 in the data area of ​​the third page third PG corresponding to the physical page address PPN64 and may write a logic value "0" in the second recovery flag of the spare area of ​​the third page third PG.

[0203] The storage controller 110 may update the mapping table MT so that the mapping relationship between the logical address LA6 and the physical page address PPN63 is changed to the mapping relationship between the logical address LA6 and the physical page address PPN64. In this case, the first restore flag corresponding to the logical address LA6 may be set to a logic value of "0".

[0204] After completely discarding the recovery information about the tenant, the status value of the tenant in the tenant status table may be updated. For example, after discarding the recovery information, the status of the tenant may be updated to change to a normal state. The storage controller 110 may ensure the available capacity of the non-volatile memory 120 by restoring pages storing invalid data to pages capable of storing data through a garbage collection operation.

[0205] Fig.21 is used to describe the Figure 1 A flowchart of the operation of the storage controller to perform garbage collection. Fig.21 , the storage controller 110 may select a memory block based on the invalid page ( S2110 ).

[0206] The storage controller 110 may determine whether the selected memory block includes a page satisfying the following conditions among the plurality of pages included in the selected memory block: for example, a page in which the corresponding tenant is in a warning state and a logic value “1” is written in the second recovery flag of the spare area.

[0207] For example, when it is determined that a memory block includes a page in which a corresponding tenant is in a warning state and a logic value '1' is written in a second recovery flag of the spare area (yes in operation S2120), the storage controller 110 may select another memory block based on the invalid page (S2110).

[0208] For example, when it is determined that the memory block does not include a page in which the corresponding tenant is in a warning state and a logic value "1" is written in the second recovery flag of the spare area (No in operation S2120), the storage controller 110 may include the memory block in the garbage collection victim pool (S2130).

[0209] The storage controller 110 may determine whether a garbage collection signal instructing to perform a garbage collection operation is generated ( S2140 ).

[0210] When the garbage collection signal is not generated (No in operation S2140 ), the storage controller 110 may select another memory block based on the invalid page ( S2110 ).

[0211] When the garbage collection signal is generated (Yes in operation S2140 ), the storage controller 110 may perform a garbage collection operation on one or more memory blocks included in the garbage collection victim pool ( S2150 ).

[0212] According to some example embodiments, the storage controller 110 may perform a garbage collection operation as a background operation.

[0213] In some example embodiments, a page in which the corresponding tenant is in a warning state and a logic value "1" is written in a recovery flag (e.g., a first recovery flag or a second recovery flag) corresponds to an invalid page in addition to a page in which recovery information for data recovery is written. Therefore, the recovery information can be erased by performing a garbage collection operation on a memory block including a page in which the corresponding tenant is in a warning state and a logic value "1" is written in the recovery flag, and thus, the operation of performing data recovery can be limited. The storage controller 110 may not include a memory block including a page in which the corresponding tenant is in a warning state and a logic value "1" is written in the recovery flag in the garbage collection victim pool, and thus the recovery information stored in the non-volatile memory 120 may be maintained.

[0214] When data corresponding to a tenant is restored or recovery information is discarded, the state of the tenant may be changed to any other state other than the warning state. For example, after data recovery for the tenant is completed, the state of the tenant may be changed to the normal state. When a page in which recovery information no longer used is written is in the normal state, the storage controller 110 may ensure the available capacity of the nonvolatile memory 120 by performing a garbage collection operation on the page.

[0215] Fig. 22 is a reference for describing some example embodiments Fig.21 A diagram describing the operation of the storage controller. Fig. 22 , the nonvolatile memory 120 may include memory blocks BLK1 , BLK2 , BLK3 , and BLK4 .

[0216] For example, the storage controller 110 may select a memory block BLK1 including an invalid page from among a plurality of memory blocks BLK1 to BLK3 .

[0217] For example, the storage controller 110 may determine that the memory block BLK1 does not include a page in which the corresponding tenant is in a warning state and a logic value “1” is written in the recovery flag. The storage controller 110 may include the memory block BLK1 in the garbage collection victim pool.

[0218] The storage controller 110 may select a memory block BLK2 including an invalid page from a plurality of memory blocks BLK1 to BLK3. The storage controller 110 may determine that the memory block BLK2 includes a page in which the corresponding tenant is in a warning state and a logic value "1" is written in the recovery flag. The storage controller 110 may not include the memory block BLK2 in the garbage collection victim pool and may select the memory block BLK3.

[0219] The storage controller 110 may determine that the memory block BLK3 does not include a page in which the corresponding tenant is in a warning state and a logic value “1” is written in the recovery flag. The storage controller 110 may include the memory block BLK3 in the garbage collection victim pool.

[0220] The storage controller 110 may determine whether to generate a garbage collection signal. When it is determined that the garbage collection signal is generated, the storage controller 110 may perform a garbage collection operation on the memory blocks BLK1 and BLK3 included in the garbage collection victim pool.

[0221] The storage controller 110 may set the memory block BLK1 as the source memory block and may write the valid pages included in the memory block BLK1 into the destination memory block BLK4. In addition, the storage controller 110 may set the memory block BLK3 as the source memory block and may write the valid pages included in the memory block BLK3 into the destination memory block BLK4.

[0222] In some example embodiments, after writing a valid page in the destination memory block BLK4, the storage controller 110 may perform an erase operation on the memory blocks BLK1 and BLK3. The storage controller 110 may ensure the available capacity of the nonvolatile memory 120 by performing a garbage collection operation on the memory blocks BLK1 and BLK3 and may not perform a garbage collection operation on the memory block BLK2 including a page in which the corresponding tenant is in a warning state and a logic value "1" is written in the recovery flag. In this way, the recovery information may be maintained in the nonvolatile memory 120.

[0223] Fig.23 is a block diagram of another example of a storage system according to some example embodiments. Fig.23 , the host 1100 may include a ransomware detector 1110. The ransomware detector 1110 may detect a ransomware attack on a plurality of tenants T1 to T3 executed in the host 1100 in various methods. For example, the ransomware detector 1110 may detect a ransomware attack by behavior-based detection, antivirus software, endpoint detection and response (EDR), network traffic analysis, or file integrity monitoring (FIM), but example embodiments are not limited thereto.

[0224] In some example embodiments, the ransomware detector 1110 may send a detection signal DS to the host manager HM. The host manager HM may send an alarm signal AS to the administrator ADM. The host manager HM may send a detection alarm signal DAS to a protector manager 1011c included in the write protector 1011. The protector manager 1011c may send a table control signal TCS to the tenant state table manager 1011a based on the detection alarm signal DAS received from the host manager HM. The tenant state table manager 1011a may update the tenant state table TST in response to the table control signal TCS.

[0225] For example, when a ransomware attack on the second tenant T2 is detected, the ransomware detector 1110 may output a detection alarm signal DAS providing a notification that a ransomware attack on the second tenant T2 has been detected. The protector manager 1011c may receive the detection alarm signal DAS. The protector manager 1011c may output a table control signal TCS based on the detection alarm signal DAS so that the state value of the second tenant T2 is updated to the protection state. The tenant state table manager 1011a may receive the table control signal TCS. The tenant state table manager 1011a may update the tenant state table TST based on the table control signal TCS so that the state value of the second tenant T2 is changed to the protection state.

[0226] In some example embodiments, when a ransomware attack on the third tenant T3 is suspected, the ransomware detector 1110 may output a detection alarm signal DAS providing a notification that the ransomware attack on the third tenant T3 is suspected. The protector manager 1011c may output a table control signal TCS based on the received detection alarm signal DAS. The tenant state table manager 1011a may update the tenant state table TST based on the table control signal TCS so that the state value of the third tenant T3 is changed to a warning state.

[0227] In some example embodiments, when the storage controller 1010 receives a write request for the second tenant T2 from the host 1100 as an input / output I / O, the storage controller 1010 may operate in a read-only mode and may not perform a write operation corresponding to the write request. In some example embodiments, the storage controller 1010 receives a write request for the third tenant T3 from the host 1100 as an input / output I / O, and the storage controller 1010 may write recovery information for recovering the original data together in the process of performing a write operation of the non-volatile memory 1020.

[0228] In some example embodiments, when data recovery is required, the administrator ADM may output a recovery signal RS, and the host manager HM may send the recovery signal RS to the protector manager 1011c. The protector manager 1011c may output a recovery control signal RCS. The recovery manager 1011b may receive the recovery control signal RCS and may perform data recovery in response to the recovery control signal RCS. The recovery manager 1011b may perform data recovery as a background operation.

[0229] Fig.24 is a block diagram showing a data center to which a storage system according to some example embodiments is applied. Fig.24 , the data center 2000 may include a plurality of computing nodes (or servers) 2100 to 2400. The plurality of computing nodes (or servers) 2100 to 2400 may communicate with each other through a network NT. In some example embodiments, the network NT may be a storage-specific network such as a storage area network (SAN) or may be the Internet such as TCP / IP, but example embodiments are not limited thereto. In some example embodiments, the network NT may include at least one of various communication protocols such as Fibre Channel, iSCSI protocol, FCoE, NAS, and NVMe-oF, but example embodiments are not limited thereto.

[0230] Multiple computing nodes (or servers) 2100 to 2400 may include processors 2110, 2210, 2310 and 2410; memories 2120, 2220, 2320 and 2420; storage devices 2130, 2230, 2330 and 2430 and interface circuits 2140, 2240, 2340 and 2440, but example embodiments are not limited thereto.

[0231] For example, the first computing node (or server) 2100 may include a first processor 2110, a first memory 2120, a first storage device 2130, and a first interface circuit 2140. In some example embodiments, the first processor 2110 may be implemented by a single core or multiple cores. The first memory 2120 may include a memory such as DRAM, SDRAM, SRAM, 3D XPoint memory, MRAM, PRAM, FeRAM, or ReRAM. The first memory 2120 may be used as a system memory, a working memory, or a buffer memory of the first computing node 2100, but example embodiments are not limited thereto. The first storage device 2130 may be a large-capacity storage medium such as a hard disk drive (HDD) or a solid-state drive (SSD). The first interface circuit 2140 may be a network interface controller (NIC) configured to communicate through a network NT.

[0232] In some example embodiments, the first processor 2110 of the first computing node (or server) 2100 may be configured to access the first memory 2120 based on a given memory interface. Alternatively, in some example embodiments of a shared memory architecture, the first processor 2110 of the first computing node (or server) 2100 may be configured to access the memories 2220, 2320, and 2420 of the remaining computing nodes (or servers) 2200, 2300, and 2400 through a network NT. The first interface circuit 2140 may include a network switch (not shown) configured to control or support access to a shared memory (i.e., a memory of any other computing node).

[0233] In some example embodiments, the first processor 2110 of the first computing node (or server) 2100 may be configured to access the first storage device 2130 based on a given storage interface. Alternatively, the first processor 2110 of the first computing node (or server) 2100 may be configured to access the storage devices 2230, 2330, and 2430 of the remaining computing nodes (or servers) 2200, 2300, and 2400 through the network NT. The first interface circuit 2140 may include a network switch (not shown) configured to control or support access to the storage devices 2230, 2330, and 2430 of any other computing nodes (or servers) 2200, 2300, and 2400. In some example embodiments, the storage devices 2130 to 2430 respectively included in the plurality of computing nodes (or servers) 2100 to 2140 may constitute one RAID volume, but example embodiments are not limited thereto. The operations of the second computing node (or server) 2200 to the fourth computing node (or server) 2400 may be similar to the operations of the first computing node (or server) 2100 described above, and therefore, additional description will be omitted to avoid redundancy.

[0234] In some example embodiments, various applications may be executed at the data center 2000. The application may be configured to execute instructions for data movement or replication between the computing nodes 2100 to 2400, or may be configured to execute instructions for combining, processing, or reproducing a variety of information present on the computing nodes (or servers) 2100 to 2400. In some example embodiments, the application may be executed by one of the plurality of computing nodes (or servers) 2100 to 2400 included in the data center 2000, or the application may be distributed and executed among the plurality of computing nodes (or servers) 2100 to 2400.

[0235] In some example embodiments, data center 2000 may be used for high performance computing (HPC) (e.g., finance, petroleum, materials science, weather forecasting), enterprise applications (e.g., scale-out databases), and / or big data applications (e.g., NoSQL databases or in-memory replication), but example embodiments are not limited thereto.

[0236] In some example embodiments, at least one of the plurality of computing nodes (or servers) 2100 to 2400 may be an application server. For example, the application server may be configured to execute an application configured to perform various operations at the data center 2000. For example, at least one of the plurality of computing nodes (or servers) 2100 to 2400 may be a storage server. The storage server may be configured to store data generated or managed at the data center 2000.

[0237] In some example embodiments, the plurality of computing nodes (or servers) 2100 to 2400 or a portion thereof included in the data center 2000 may exist in the same location or in multiple locations physically separated from each other, and may communicate with each other through a wireless communication-based network NT or a wired communication-based network NT. In some example embodiments, the plurality of computing nodes (or servers) 2100 to 2400 included in the data center 2000 may be implemented by the same memory technology or may be implemented by different memory technologies.

[0238] Although not shown in the figure, in some example embodiments, at least a portion of the plurality of computing nodes (or servers) 2100 to 2400 of the data center 2000 may communicate with an external client node (not shown) through a network NT or through any other communication interface (not shown). In some example embodiments, at least a portion of the plurality of computing nodes 2100 to 2400 may automatically process a request (e.g., data storage or data transfer) according to a request of an external client node or may process a request of any other computing node.

[0239] In some example embodiments, the number of computing nodes (or servers) 2100 to 2400 included in data center 2000 is exemplary, and example embodiments are not limited thereto. In addition, in each computing node (or server) 2100, 2200, 2300, and / or 2400, the number of processors, the number of memories, and the number of storage devices are exemplary, and example embodiments are not limited thereto.

[0240] In some example embodiments, each of the plurality of computing nodes (or servers) 2100 to 2400 may be a reference Figures 1 to 23 The host described, and each of the plurality of storage devices 2130 to 2430 respectively included in the plurality of computing nodes (or servers) 2100 to 2400 may be configured to support reference Figures 1 to 23 In some example embodiments, each of the plurality of storage devices 2130 to 2430 respectively included in the plurality of computing nodes 2100 to 2400 may be configured to be based on a reference Figures 1 to 23 Describes how to protect data from ransomware attacks and support data recovery.

[0241] According to some example embodiments, in order to deal with ransomware, the storage device may write recovery information for data recovery according to the state of the tenant in the process of performing a write operation. The storage device may recover the data based on the recovery information. Therefore, a storage device and an operating method thereof are provided that can recover the original data against a ransomware attack that encrypts the data stored therein and requires money in exchange for a decryption key required to decrypt the encrypted data.

[0242] As described herein, any device, electronic device, module, model, unit and / or some parts thereof may include, may be included in and / or may be implemented by one or more instances of processing circuitry, such as hardware including logic circuitry; a hardware / software combination such as a processor that executes software; or a combination thereof. For example, the processing circuitry may more specifically include (but not limited to) a central processing unit (CPU), an arithmetic logic unit (ALU), a graphics processing unit (GPU), an application processor (AP), a digital signal processor (DSP), a microcomputer, a field programmable gate array (FPGA), a programmable logic unit, a microprocessor, an application specific integrated circuit (ASIC), a neural network processing unit (NPU), an electronic control unit (ECU), etc. In some example embodiments, the processing circuitry may include a non-transitory computer-readable storage device (e.g., a memory) storing a program of instructions, such as a solid-state drive (SSD), and a processor (e.g., a CPU) configured to execute the program of instructions to implement the functions and / or methods performed by any device, electronic device, module, unit and / or part thereof according to any one of the example embodiments.

[0243] While the inventive concept has been shown and described with reference to certain exemplary embodiments, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the following claims.

Claims

1. A method for operating a storage device, the method include: detecting a ransomware attack on one or more tenants executing in the host; updating a tenant status table including a status of each of the one or more tenants based on a result of the detecting; In response to receiving a write request from the host, based on determining that a status value of a tenant among the one or more tenants corresponding to the write request is a status value corresponding to a warning status among a plurality of status values, writing recovery information for data recovery in a non-volatile memory; as well as In response to receiving a resume signal from the host, the data recovery is performed based on the resume information.

2. The method according to claim 1, in, The tenant status table also includes a contiguous logical address range assigned to each of the one or more tenants.

3. The method according to claim 1, in, The mapping table mapping the logical address and the physical address includes a first resume flag.

4. The method according to claim 3, in, The restoration information includes an address link to the original data and a second restoration flag.

5. The method according to claim 4, in, The steps of writing the recovery information include: writing data corresponding to the write request in a data area of ​​a first page included in the nonvolatile memory, and writing the address link and the second restoration flag set to a first value in a spare area of ​​the first page; and A logical address corresponding to the write request is mapped to a physical page address of the first page.

6. The method according to claim 5, in, The step of mapping the logical address corresponding to the write request to the physical page address of the first page comprises: The first resume flag corresponding to the write request is set to the first value.

7. The method according to claim 6, in, The step of writing the address link and the second restoration flag comprises: determining whether the write request corresponds to an overwrite; In response to determining that the write request corresponds to the overwrite, determining whether the first resume flag corresponding to the write request is the first value; and In response to determining that the first resume flag corresponding to the write request is the first value, the address link of the first page is set to a physical page address of a page previously mapped to the logical address corresponding to the write request, and the second resume flag of the first page is set to the first value.

8. The method according to claim 7, further comprising: include: In response to determining that the first resume flag corresponding to the write request is not the first value, writing the data existing in the data area of ​​the previously mapped page in a data area of ​​a second page different from the first page, and writing an address link set to a null value and a second resume flag set to the first value in a spare area of ​​the second page; as well as The address link of the first page is set to a physical page address of the second page, and the second restore flag of the first page is set to the first value.

9. The method according to claim 5, in, The step of writing the address link and the second restoration flag set to the first value in the spare area of ​​the first page comprises: In response to determining that the write request does not correspond to an overwrite, the address link of the first page is set to a null value, and the second restore flag of the first page is set to the first value.

10. The method according to claim 5, in, The step of performing the data recovery based on the recovery information comprises: obtaining original data based on an address link stored in a spare area of ​​a page mapped to a target logical address whose first restore flag is set to the first value; writing the original data at a third page, and writing a second restoration flag set to a second value different from the first value at the third page; and The target logical address and the physical page address of the third page are mapped.

11. The method according to claim 10, in, The step of mapping the target logical address and the physical page address of the third page comprises: The first restore flag of the target logical address is set to the second value.

12. The method according to claim 10, in, The steps of obtaining the original data include: reading the page mapped to the target logical address; determining whether the address link of the spare area of ​​the page mapped to the target logical address is a null value; In response to determining that the address link does not correspond to the null value, performing a read operation relative to a physical page address corresponding to the address link; and In response to determining that the address link corresponds to the null value, the data of the data area of ​​the read page is determined to be the original data.

13. The method according to claim 5, in, Garbage collection is not performed on pages in which the corresponding tenant is in the warning state and the second recovery flag is set to the first value.

14. The method according to claim 1, further comprising: include: Based on determining that the state value of the tenant corresponding to the write request is a state value corresponding to a protection state among the plurality of state values, a read-only operation is performed.

15. A storage device, include: A nonvolatile memory comprising a plurality of data areas and a plurality of spare areas respectively corresponding to the plurality of data areas; as well as Storage controller, which is configured as: updating a tenant state table including a state of each of the one or more tenants based on a result of detecting a ransomware attack on each of the one or more tenants; In response to determining that a write request is received from the host device, based on determining that a status value of a tenant among the one or more tenants corresponding to the write request is a status value among a plurality of status values ​​corresponding to a warning status, writing data corresponding to the write request in a first data area among the plurality of data areas of the nonvolatile memory, and writing recovery information in a first spare area corresponding to the first data area; as well as In response to a resume signal received from the host device, data recovery is performed based on the resume information.

16. The storage device according to claim 15, in, The recovery information includes a recovery flag, and The storage controller is configured to write the recovery flag set to a first value in the recovery flag field of the first spare area.

17. The storage device according to claim 16, in, The recovery information also includes an address link to the original data, and The storage controller is configured to write the address link in an address link field of the first spare area.

18. The storage device according to claim 17, in, When performing the data recovery, the storage controller is configured to: reading the original data based on the address link; and The read original data is written in the second data area.

19. The storage device according to claim 16, in, The storage controller does not perform garbage collection with respect to a spare area whose recovery flag is the first value and a data area corresponding to the spare area.

20. A storage controller, include: A processing circuit configured to: detecting a ransomware attack on one or more tenants based on input / output signals with a host device; sending an alarm signal to the host device based on a result of the detection, to output a table update signal, to receive a restoration signal from the host device, and to output a restoration control signal corresponding to the restoration signal; updating the tenant status table based on the table update signal; controlling a nonvolatile memory in response to a write request received from the host device, wherein when data corresponding to the write request is written at a page included in the nonvolatile memory, based on determining that a status value of a tenant among the one or more tenants corresponding to the write request is a status value corresponding to a warning status among a plurality of status values, the processing circuit controls the nonvolatile memory so that an address link to the original data is written in a spare area of ​​the page; and In response to the restore control signal, a data restore operation is performed based on link information included in the page.