# US 2021/0081238 A1 · Exception analysis for data storage devices

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

- Number: US 2021/0081238 A1
- Document ID: US20210081238A1
- Status: Published application
- Kind: A1
- Application number: 16/572,973
- Filed: 2019-09-17
- Published: 2021-03-18
- Earliest claimed: 2019-09-17
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Bernd Lamberts; Remmelt Pit; Cory J. Peterson; Kris Schouterden; David Hall; Shad Thorstenson; Andy Larson
- Web page: https://patentgrep.com/patent/US20210081238A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06F 9/466: {Transaction processing}
- G06F 11/0727: {in a storage system, e.g. in a DASD or network based storage system (drivers for digital recording or reproducing units G06F3/06; circuits for error detection or correction within digital recording or reproducing units G11B20/18; for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS], H04L67/1097)}
- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 11/3017: {where the computing system is implementing multitasking (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3419: {by assessing time}
- G06F 11/3485: {for I/O devices}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 17/40: Data acquisition and logging (for input to computer G06F3/00)
- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 21/552: {involving long-term monitoring or reporting}
- H04L 9/0637: {Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]}
- G06F 11/006: {Identification (G06F11/2289 takes precedence)}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/3636: {by tracing the execution of the program}
- G06F 11/366: {using diagnostics (G06F11/0703 takes precedence)}
- G06F 2201/865: Monitoring of software
- G06F 2209/481: Exception handling
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A Data Storage Device (DSD) includes a memory for storing data, and a controller configured to execute firmware or code to perform a task. While performing the task, the controller is further configured to assign unique identifiers to respective firmware or code portions that are executed to perform the task, and create a list or data structure including the unique identifier assigned to the firmware or code portion that created the task. A unique identifier is added to the list or data structure for each firmware or code portion executed for the task. The list or data structure indicates the order in which the firmware or code portions are executed.

## Claims

### Claim 1

A Data Storage Device (DSD), comprising:
a memory for storing data; and
a controller configured to execute firmware of the DSD to perform a task, wherein while performing the task, the controller is further configured to:
assign unique identifiers to respective firmware portions that are executed to perform the task;
create a list in the memory with a first entry including the unique identifier assigned to the firmware portion that created the task; and
add an entry to the list for each firmware portion that the controller executes for the task, wherein each entry indicates the unique identifier assigned to the firmware portion corresponding to the entry and the list indicates the order in which the firmware portions are executed.

### Claim 2 (depends on 1)

The DSD of claim 1, wherein the list is a blockchain with entries in the list being cryptographically linked.

### Claim 3 (depends on 1)

The DSD of claim 1, wherein the controller is further configured to:
detect an exception during execution of the task; and
in response to detecting the exception, add the list to an exception log stored in the DSD.

### Claim 4 (depends on 3)

The DSD of claim 3, wherein the controller is further configured to compare a plurality of lists in the exception log to identify one or more sequences of firmware execution common among different lists of the plurality of lists.

### Claim 5 (depends on 1)

The DSD of claim 1, wherein the controller is further configured to store state information for the task in the list.

### Claim 6 (depends on 1)

The DSD of claim 1, wherein the controller is further configured to randomly store linked lists for different tasks performed by the controller for determining typical execution paths of the firmware.

### Claim 7 (depends on 1)

The DSD of claim 1, wherein the controller is further configured to:
determine that the task has completed without an exception; and
in response to determining that the task has completed without an exception, delete the list from the memory.

### Claim 8 (depends on 1)

The DSD of claim 1, wherein the controller is further configured to:
determine a task type for the task; and
based on the determined task type, perform at least one of determining how long to retain the list in the memory and whether to retain particular state information in the list.

### Claim 9

A method for operating a Data Storage Device (DSD), the method comprising:
assigning unique identifiers to respective code portions executed by the DSD to perform a task;
creating a data structure including the unique identifier assigned to the code portion that created the task; and
adding a respective unique identifier to the data structure for each code portion that executes for the task, wherein the data structure indicates the order in which the code portions are executed.

### Claim 10 (depends on 9)

The method of claim 9, wherein the data structure is a blockchain including blocks that are cryptographically linked.

### Claim 11 (depends on 9)

The method of claim 9, further comprising:
detecting an exception during execution of the task; and
in response to detecting the exception, adding the data structure to an exception log.

### Claim 12 (depends on 11)

The method of claim 11, further comprising comparing a plurality of data structures in the exception log to identify one or more common sequences of code execution among different data structures in the plurality of data structures.

### Claim 13 (depends on 11)

The method of claim 11, further comprising comparing data structures added to a plurality of exception logs for respective DSDs to identify sequences of code execution associated with a higher probability of encountering an exception during execution.

### Claim 14 (depends on 9)

The method of claim 9, further comprising storing state information for the task in the data structure.

### Claim 15 (depends on 9)

The method of claim 9, further comprising inputting a plurality of data structures into a neural network to identify sequences of code execution associated with a higher probability of encountering an exception during execution.

### Claim 16 (depends on 9)

The method of claim 9, further comprising:
randomly retaining data structures for different tasks after completion of the tasks;
comparing the retained data structures to determine typical execution paths of the code;
identifying outlier events using the determined typical execution paths, wherein in response to the DSD encountering an identified outlier event, an indication of the outlier event is added to an exception log for the DSD.

### Claim 17 (depends on 9)

The method of claim 9, further comprising:
determining that the task completed without an exception; and
in response to determining that the task completed without an exception, deleting the data structure.

### Claim 18 (depends on 9)

The method of claim 9, further comprising:
determining a task type for the task; and
based on the determined task type, performing at least one of determining how long to retain the data structure in a memory and whether to retain particular state information in the data structure.

### Claim 19

A non-transitory computer readable medium storing computer-executable instructions, wherein when the computer-executable instructions are executed by a controller of a Data Storage Device (DSD), the computer-executable instructions cause the controller to:
assign unique identifiers to respective firmware portions for the DSD that are executed to perform a task;
create a list in a memory of the DSD with a first entry including the unique identifier assigned to the firmware portion that created the task; and
add an entry to the list for each firmware portion that the controller executes for the task, wherein each entry indicates the unique identifier assigned to the firmware portion corresponding to the entry and the list indicates the order in which the firmware portions are executed.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the list is a blockchain with the entries in the list being cryptographically linked.
