# US 2022/0035698 A1 · End-to-end datapath protection

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0035698 A1
- Document ID: US20220035698A1
- Status: Published application
- Kind: A1
- Application number: 16/945,358
- Filed: 2020-07-31
- Published: 2022-02-03
- Earliest claimed: 2020-07-31
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Vamsi K. Vankamamidi; Philippe Armangau; Geng Han; Xinlei Xu
- Web page: https://patentgrep.com/patent/US20220035698A1

## CPC

- G06F 11/1044: {with specific ECC/EDC distribution}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0641: {De-duplication techniques}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/467: {Transactional memory (G06F9/528 takes precedence)}
- G06F 11/073: {in a memory management context, e.g. virtual memory or cache management (memory management G06F12/00; testing of static memory units G11C29/00)}
- G06F 11/1004: {to protect a block of data words, e.g. CRC or checksum (G06F11/1076 takes precedence; security arrangements for protecting computers or computer systems against unauthorized activity G06F21/00)}
- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G06F 11/1435: {using file system or storage system metadata}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A technique of protecting data in a data storage system includes, in response to receiving a write request that specifies data to be written in the data storage system, calculating an error detection code (EDC) of the specified data. The technique further includes persisting the specified data and the EDC in persistent cache and, in response to receiving a read request for reading the specified data, validating the specified data using the EDC before returning the specified data in satisfaction of the read request.

## Claims

### Claim 1

A method of protecting data in a data storage system, the method comprising:
in response to receiving a write request that specifies data to be written in the data storage system, calculating an error detection code (EDC) of the specified data;
persisting the specified data and the EDC in persistent cache; and
in response to receiving a read request for reading the specified data, validating the specified data using the EDC before returning the specified data in satisfaction of the read request,
wherein the write request is received from a host application, and wherein the method further comprises acknowledging fulfillment of the write request to the host application only after persisting the specified data and the EDC.

### Claim 2

(canceled)

### Claim 3 (depends on 1)

The method of claim 1, wherein receiving the write request includes:
ingesting the specified data into a set of kernel buffers in kernel space of the data storage system; and
transferring the specified data from the set of kernel buffers to a set of buffer caches in userspace of the data storage system.

### Claim 4 (depends on 3)

The method of claim 3, wherein calculating the EDC of the specified data is performed while transferring the specified data from the set of kernel buffers to the set of buffer caches.

### Claim 5 (depends on 4)

The method of claim 4, wherein calculating the EDC of the specified data includes:
fetching, by a CPU (central processing unit) of the data storage system, the specified data from the set of kernel buffers into a local cache of the CPU; and
calculating the EDC from the specified data in the local cache of the CPU.

### Claim 6 (depends on 3)

The method of claim 3, further comprising, while transferring the specified data from the set of kernel buffers to the set of buffer caches, checking the specified data for any of a set of predetermined patterns.

### Claim 7 (depends on 3)

The method of claim 3, wherein returning the specified data in satisfaction of the read request includes:
transferring the specified data to a second set of kernel buffers in the kernel memory of the data storage system; and
providing the specified data from the second set of kernel buffers to the host application,
wherein validating the specified data is performed while transferring the specified data to the second set of kernel buffers.

### Claim 8 (depends on 7)

The method of claim 7, wherein validating the specified data includes:
calculating a checksum of the specified data; and
confirming that the calculated checksum is consistent with the EDC.

### Claim 9 (depends on 1)

The method of claim 1, further comprising performing a flushing operation to flush the specified data to backend storage, wherein the method further comprises validating the specified data while performing the flushing operation.

### Claim 10 (depends on 9)

The method of claim 9, wherein the method further comprises calculating a deduplication fingerprint of the specified data while performing the flushing operation.

### Claim 11 (depends on 9)

The method of claim 9 wherein while performing the flushing operation, the method further comprises loading the specified data into local cache of a CPU of the data storage system, the CPU then performing the acts of:
calculating a new checksum of the specified data from the specified data in the local cache;
confirming that the new checksum is consistent with the EDC, and
calculating a deduplication fingerprint of the specified data in the local cache.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
opening a transaction that specifies a set of changes in metadata of the data storage system;
forming a set of metadata pages of the transaction;
calculating a set of EDCs for the set of metadata pages; and
committing the transaction by the set of metadata pages and the set of EDCs to the persistent cache.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
performing a flushing operation to flush the new metadata of the transaction to backend storage; and
validating the new metadata while performing the flushing operation.

### Claim 14 (depends on 13)

The method of claim 13,
wherein performing the flushing operation includes writing the new metadata of the transaction in pages, the pages having associated generation numbers, and
wherein writing the new metadata includes redundantly storing the pages in at least two disks of a mirrored array.

### Claim 15 (depends on 14)

The method of claim 14, further comprising resolving differences between two instances of a page of metadata as read from two disks of the mirrored array by replacing an instance having a smaller generation number with an instance having a larger generation number.

### Claim 16 (depends on 13)

The method of claim 13, further comprising processing a request to read an element of metadata from backend storage and, prior to returning the element of metadata in satisfaction of the request to read, validating the element of metadata.

### Claim 17 (depends on 13)

The method of claim 13, further comprising processing a request to read an element of metadata from the persistent cache and, prior to returning the element of metadata in satisfaction of the request to read, validating the element of metadata.

### Claim 18

A computerized apparatus, comprising control circuitry that includes a set of processing units coupled to memory, the control circuitry constructed and arranged to:
in response to receipt of a write request that specifies data to be written, calculate an error detection code (EDC) of the specified data;
persist the specified data and the EDC in persistent cache; and
in response to receipt of a read request for reading the specified data, validate the specified data using the EDC before returning the specified data in satisfaction of the read request,
wherein the control circuitry constructed and arranged to receive the write request is further constructed and arranged to ingest the specified data into a set of kernel buffers in kernel space of the data storage system and transfer the specified data from the set of kernel buffers to a set of buffer caches in userspace of the data storage system.

### Claim 19

A computer program product including a set of non-transitory, computer-readable media having instructions which, when executed by control circuitry of a computerized apparatus, cause the computerized apparatus to perform a method of protecting data, the method comprising:
in response to receiving a write request that specifies data to be written in the computerized apparatus, calculating an error detection code (EDC) of the specified data;
persisting the specified data and the EDC in persistent cache; and
in response to receiving a read request for reading the specified data, validating the specified data using the EDC before returning the specified data in satisfaction of the read request,
wherein receiving the write request includes ingesting the specified data into a set of kernel buffers in kernel space of the data storage system and transferring the specified data from the set of kernel buffers to a set of buffer caches in userspace of the data storage system.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein calculating the EDC of the specified data is performed while transferring the specified data from the set of kernel buffers to the set of buffer caches.

### Claim 21 (depends on 20)

The computer program product of claim 20, wherein the method further comprises, while transferring the specified data from the set of kernel buffers to the set of buffer caches, checking the specified data for any of a set of predetermined patterns.
