Trusted security control method for dual-arm multi-head hard disk
By verifying the control firmware and generating checkpoint snapshot data summaries, the problem of reliable connection of the mapping state in dual-arm multi-head hard disks is solved, realizing the verifiability of the mapping data and the traceability of anomaly handling, thus ensuring the reliable operation of the hard disk.
Patent Information
- Application Number
- CN202611348737.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-27
AI Technical Summary
In dual-arm multi-head hard disks, there is a lack of reliable connection between the control firmware, the current mapping state during operation, and the checkpoint snapshot for fault recovery. This makes it difficult to verify whether the mapping state is consistent after recovery, and it is also difficult to determine the media access range of the abnormal state.
The system verifies the external trusted signature and local hard disk signature of the control firmware through the hard disk controller, loads and updates global address mapping data and branch arm location mapping data, generates checkpoint snapshot data digest and signs it, ensures the continuity and verifiability of the mapping data, and isolates the media access channel in abnormal situations.
It improves the reliability of dual-arm multi-head hard disks in the control firmware loading, normal read and write, and checkpoint snapshot recovery processes, enhances the verifiability of mapped data and the traceability of anomaly handling, and limits the impact of local anomalies.
Smart Images

Figure CN123179486A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of hard disk data security and storage control technology, and in particular to a trusted security control method for dual-arm multi-head hard disks. Background Technology
[0002] The content in this section provides only background information related to this application and may not constitute prior art.
[0003] After the hard drive is powered on, the hard drive controller loads the control firmware and, while processing host read / write commands, sequentially converts the logical block address into the physical block address, read / write head arm, and physical media location based on the global address mapping data and the arm position mapping data. To restore operation after power failure, malfunction, or maintenance, the hard drive controller can also save a checkpoint snapshot containing the current mapping state during operation and load this checkpoint snapshot upon restart or recovery.
[0004] A dual-arm multi-head hard disk has two actuator arms and media access channels corresponding to each actuator arm. Media access for each actuator arm depends on global address mapping data and corresponding arm position mapping data. Therefore, the loading state of the control firmware, the current mapping state used during normal read and write operations, and the current mapping state obtained from checkpoint snapshot recovery all affect whether the logical block address can be translated to the expected physical media location.
[0005] When the control firmware, the current mapping state used during operation, and the checkpoint snapshots used for fault recovery are represented by independent state information, there may be a lack of continuous and reliable connections between the stages. As a result, after a reboot or recovery, it is difficult to verify whether the recovered current mapping state corresponds to the current mapping state saved during normal operation, and it is difficult to determine the head actuator arm and media access range associated with the abnormal state. Summary of the Invention
[0006] This application aims to improve the reliable continuity of the current mapping state of a dual-arm multi-head hard disk during the process from control firmware loading, normal read and write operations to checkpoint snapshot recovery, and to improve the verifiability of the recovery results.
[0007] To address the aforementioned technical problems, this application provides a trusted security control method for dual-arm multi-head hard disks, executed by the hard disk controller, comprising the following steps: Step 1: Respond to hard drive power-on, verify the external trusted signature and the local hard drive signature of the control firmware to be loaded, and load and run the control firmware after successful verification; Step 2: The hard disk controller loads and verifies the global address mapping data and the arm position mapping data corresponding to the two read / write heads by controlling the firmware. It determines the physical block address, the corresponding read / write head arm and the physical medium position based on the logical block address in the host read / write command, and updates the corresponding data when the mapping changes. Among them, the global address mapping data records the correspondence between logical block addresses and physical block addresses, and the sub-arm position mapping data records the correspondence between physical block addresses, the magnetic head execution arm responsible for accessing the physical block address, and the physical medium position. Step 3: During hard disk operation, the hard disk controller determines the current valid global address mapping data and the arm position mapping data as the current mapping state and uses them as checkpoint snapshot data. It generates a checkpoint snapshot data digest for the checkpoint snapshot data, signs the checkpoint snapshot data digest using the hard disk local private key, and associates and saves the checkpoint snapshot data, checkpoint snapshot data digest and the corresponding hard disk local signature to generate a checkpoint snapshot. Step 4: After the hard drive is powered on again, the fault is cleared, or maintenance is completed, the hard drive controller regenerates the checkpoint snapshot data digest based on the checkpoint snapshot data in the target checkpoint snapshot. Based on the regenerated checkpoint snapshot data digest, the hard drive local signature associated with the target checkpoint snapshot is verified using the hard drive local public key. After successful verification, the current mapping state is restored, and the host read and write commands are continued to be processed using the restored current mapping state.
[0008] Compared with related technologies, this application has at least the following beneficial effects: After the mapping data changes, a mapping data digest and a local hard disk signature are generated. The mapping data digest is regenerated and verified before loading, so that the changes in the mapping data can be checked before entering the current mapping state. When the mapping data of the split arm position is abnormal, the corresponding media access channel is isolated, which can limit the impact of local anomalies to the associated head execution arm.
[0009] Checkpoint snapshots control recovery permissions through a chain of consecutive snapshot version identifiers, sub-arm position mapping data fingerprints, and head actuator arm ownership identifiers. This reduces the possibility of incorrect recovery of sub-arm position mapping data with discontinuous snapshot version identifiers or across head actuator arms.
[0010] The secure erasure task is split into sections based on the read / write head execution arm, and the execution status and erasure segment records are saved separately. Then, the secure erasure audit credentials are formed by using the erase audit record summary, local hard disk signature, and hardware-protected read-only audit log area. This can improve the traceability and verifiability of the secure erasure process and results.
[0011] Anomaly handling employs media access channel isolation for a single read / write head actuator or global data read / write restrictions based on the scope of the anomaly's impact. Anomaly events are output via the PCIe asynchronous event notification mechanism, ensuring that access control actions correspond to the scope of the anomaly. Attached Figure Description
[0012] Figure 1 A flowchart illustrating the overall process of the trusted security control method provided in the embodiments of this application; Figure 2 This is a schematic diagram of the trusted security control system structure provided in the embodiments of this application; Figure 3 This is a schematic diagram of the signature and verification data flow provided in an embodiment of this application; Figure 4 This application provides a flowchart for the control of checkpoint snapshot creation and current mapping state restoration in an embodiment of the present application. Figure 5 This is a flowchart illustrating the generation of secure erase and secure erase audit credentials for the split-arm method, as provided in the embodiments of this application. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application are described clearly and completely below in conjunction with specific embodiments. It should be noted that the embodiments listed in this application are for illustrating the technical solutions and are not intended to limit the scope of protection; equivalent substitutions or adjustments made by those skilled in the art within the technical concept of this application can all be considered as corresponding implementation methods.
[0014] The hard disk in this application is a dual-arm multi-head hard disk, and the hard disk controller is the internal control unit of the hard disk used to perform boot control, address translation, media access, checkpoint snapshot management, secure erasure and abnormal output.
[0015] The control firmware consists of program code and associated data that are loaded and run by the hard disk controller to implement the aforementioned control logic.
[0016] The hardware root of trust is a trusted execution component inside the hard drive that provides the ability to generate, sign, and verify key material.
[0017] The logical block address in this application is the logical address used by host read / write commands; The physical block address is the address used internally by the hard drive to identify the physical block of data. The physical media location is the actual location of the media accessed by the corresponding read / write head actuator arm, which can be represented by the head markings, disk surface, track, sector, or equivalent positioning information inside the hard drive.
[0018] The global address mapping data completes the first level of conversion from "logical block address to physical block address"; The arm position mapping data completes the second-level conversion from "physical block address to the position of the head execution arm and physical medium". The currently valid global address mapping data and the arm position mapping data together constitute the current mapping state.
[0019] The current mapping state serves as the basis for checkpoint snapshot data; When a checkpoint snapshot also includes a snapshot version identifier, timestamp, global address mapping data fingerprint, branch arm location mapping data fingerprint, and running status information, the above information also belongs to the checkpoint snapshot data.
[0020] A checkpoint snapshot is formed by associating and saving checkpoint snapshot data, checkpoint snapshot data digest, and corresponding local hard disk signature.
[0021] The control firmware summary takes the control firmware as input, the mapping data summary takes the mapping data as input, the checkpoint snapshot data summary takes the checkpoint snapshot data as input, and the erase audit log summary takes the erase audit log as input. These four are not interchangeable.
[0022] Mapping data version identifiers are used to identify mapping data versions, and snapshot version identifiers are used to identify checkpoint snapshots; the relationship between adjacent snapshot version identifiers stored on the hard disk forms a continuous snapshot version identifier chain.
[0023] The normal operating procedure of this application is as follows: After the hard drive is powered on, the control firmware is loaded; the control firmware loads and verifies the global address mapping data and the arm position mapping data, uses the global address mapping data and the arm position mapping data to process host read and write commands, and updates the corresponding mapping data when the mapping changes; during hard drive operation, the current mapping state is used as checkpoint snapshot data, a checkpoint snapshot data digest and a local hard drive signature are generated, and a checkpoint snapshot is formed; after power failure, failure, or maintenance, the target checkpoint snapshot is verified, and after successful verification, the current mapping state is restored and host read and write commands are processed again.
[0024] Secure erasure is a new procedure triggered independently by the host via the PCIe interface, and it does not require a checkpoint snapshot recovery to have already been performed. Anomaly handling is integrated throughout the trusted boot, mapped data loading, checkpoint snapshot recovery, and secure erasure processes.
[0025] Example 1: Reference Figures 1 to 4 In this embodiment, the trusted and secure control method for dual-arm multi-head hard disks, executed by the hard disk controller, includes the following steps: Step 1: Respond to hard drive power-on, verify the external trusted signature and the local hard drive signature of the control firmware to be loaded, and load and run the control firmware after successful verification; After the hard drive is powered on, the hard drive controller first reads the control firmware to be loaded and its associated external trusted signature and local hard drive signature, and then generates a control firmware digest for the control firmware to be loaded. The hard drive controller only loads the control firmware to be loaded into the runtime storage area and enters the control firmware execution entry point if both the external trusted signature and the local hard drive signature are verified successfully; if either verification fails, the control firmware is not used to enter the normal mapping process.
[0026] For example, the control firmware version identifier of the control firmware to be loaded is 3. The hard disk controller generates a control firmware digest for the control firmware to be loaded and verifies the external trusted signature and the hard disk local signature associated with the control firmware digest respectively; if both verifications pass, the control firmware to be loaded is loaded and run; if either verification fails, the control firmware to be loaded is refused to be loaded and run.
[0027] External trusted signatures are signatures generated by firmware vendors using their signature private keys on the control firmware digest, while local hard disk signatures are signatures generated by hardware root of trust using the local hard disk private keys on the control firmware digest. Before delivering the control firmware, the firmware vendor generates an external trusted signature for the control firmware digest, while the hard drive's internal hardware root of trust generates a local signature for the same control firmware digest. During verification, both types of signatures correspond to the control firmware digest regenerated based on the control firmware to be loaded. Therefore, it is possible to verify both the external trusted source of the control firmware and the local trusted relationship between the control firmware and the current hard drive.
[0028] For example, firmware vendors use their vendor signing private key to generate an external trusted signature for the control firmware digest, while the hardware root of trust uses the hard drive's local private key to generate a local hard drive signature for the same control firmware digest. During verification, the hard drive controller regenerates the control firmware digest based on the control firmware to be loaded, and uses the regenerated control firmware digest as verification input for both the external trusted signature and the local hard drive signature.
[0029] The hard disk local signature key pair is generated from the hard disk unique key material derived from the physical non-cloning function by the hardware root of trust, wherein the hard disk local private key is restricted to use within the hardware root of trust; The hardware trust root derives a unique key material corresponding to the current hard drive based on the physical unclonable function, and generates a local signature key pair for the hard drive using the unique key material through a preset key generation algorithm.
[0030] When the hard disk controller needs to generate a local hard disk signature, it submits the control firmware digest, mapping data digest, checkpoint snapshot data digest, or erase audit log digest to the hardware root of trust. The hardware root of trust uses the hard disk's local private key to generate a local hard disk signature from the submitted control firmware digest, mapping data digest, checkpoint snapshot data digest, or erase audit log digest.
[0031] For example, when the hard drive initializes or needs to restore signature capabilities, the hardware root of trust derives the hard drive's unique key material from a physically unclonable function response and generates a local signature key pair. The hard drive controller obtains the local signature by submitting the control firmware digest to the hardware root of trust, but cannot read the local private key.
[0032] The hard drive controller uses the manufacturer's signature public key to verify external trusted signatures and the hard drive's local public key to verify local hard drive signatures. When both types of signatures are verified, the controller firmware is loaded and run.
[0033] The hard drive controller inputs the regenerated control firmware digest, external trusted signature, and vendor signature public key into the first verification process, and inputs the regenerated control firmware digest, hard drive local signature, and hard drive local public key into the second verification process. The results of the two verifications jointly drive the firmware loading gating, preventing the control firmware from running after only one type of verification is completed.
[0034] For example, if the vendor's signature public key passes the external trusted signature verification and the hard drive's local public key passes the hard drive's local signature verification, the firmware loading gating outputs an allowed result; if the external trusted signature verification passes but the hard drive's local signature verification fails, the firmware loading gating still outputs a rejected result and hands the hard drive's local signature verification failure result over to the exception handling process.
[0035] Step 2: The hard disk controller loads and verifies the global address mapping data and the arm position mapping data corresponding to the two read / write heads by controlling the firmware. It determines the physical block address, the corresponding read / write head arm and the physical medium position based on the logical block address in the host read / write command, and updates the corresponding data when the mapping changes. After the firmware is running, the hard disk controller first verifies the global address mapping data and the individual arm position mapping data for the first and second read / write heads. Upon successful verification, the hard disk controller uses the logical block address in the host read / write command to query the global address mapping data to obtain the physical block address. Then, it uses the physical block address to query the individual arm position mapping data to obtain the corresponding read / write head arm and physical media position, thereby controlling the corresponding media access channel. When address remapping or physical position adjustments cause changes in the correspondence, the hard disk controller updates the changed global address mapping data or individual arm position mapping data.
[0036] For example, a host read command reads logical block address 1000. Global address mapping data translates logical block address 1000 to physical block address 42000. The sub-arm position mapping data corresponding to the first head actuator arm then translates physical block address 42000 to the first head actuator arm, first head, track 120, and corresponding sector position. The hard disk controller then reads the data through the media access channel of the first head actuator arm. If the physical block address corresponding to logical block address 1000 is remapped from 42000 to 43000, the hard disk controller updates the corresponding mapping entry.
[0037] Among them, the global address mapping data records the correspondence between logical block addresses and physical block addresses, and the sub-arm position mapping data records the correspondence between physical block addresses, the magnetic head execution arm responsible for accessing the physical block address, and the physical medium position. Global address mapping data and sub-arm position mapping data are stored in layers with different correspondences. The global address mapping data does not directly bind logical block addresses to specific read / write head actuator arms; instead, it outputs physical block addresses. The sub-arm position mapping data corresponding to the first and second read / write head actuator arms then take the physical block addresses as input and output the corresponding actuator arm and its accessible physical media location. The two query results are concatenated to form a data stream from logical block addresses to physical media locations.
[0038] For example, a mapping entry in the global address mapping data records "logical block address 1000 → physical block address 42000"; a mapping entry in the sub-arm position mapping data corresponding to the first head actuator arm records "physical block address 42000 → first head actuator arm, first head, track 120, sector 8". The output physical block address 42000 of the previous mapping entry serves as the query input for the next mapping entry.
[0039] When the global address mapping data or the arm position mapping data changes, the hard disk controller generates a mapping data digest for the changed mapping data, signs the mapping data digest using the hard disk's local private key, and associates and saves the changed mapping data, the mapping data digest, the hard disk's local signature, the mapping data version identifier, and the timestamp. After the mapping data is updated, the hard disk controller uses the changed complete mapping data as input to obtain a mapping data digest that represents the content of the mapping data version. It then uses the hard disk's local private key within the hardware trust root to generate a local hard disk signature. The hard disk controller associates and saves the changed mapping data, mapping data digest, local hard disk signature, mapping data version identifier, and timestamp as a single mapping data version record, enabling subsequent loading processes to determine the mapping data digest, local hard disk signature, and mapping data version identifier that need to be verified.
[0040] For example, when the physical block address corresponding to logical block address 1000 changes from 42000 to 43000, the global address mapping data forms a new version of the mapping data. The hard disk controller generates a mapping data digest for the changed global address mapping data, calls the hardware root of trust to generate a local hard disk signature, and saves the changed global address mapping data, mapping data digest, local hard disk signature, mapping data version identifier, and timestamp as the same mapping data version record.
[0041] Before loading the mapping data, the hard disk controller regenerates the mapping data digest and uses the hard disk's local public key to verify the hard disk's local signature associated with the mapping data. Once the verification is successful, loading the mapping data is allowed.
[0042] Before using the saved mapping data, the hard drive controller regenerates a mapping data digest based on the mapping data to be loaded, and inputs the regenerated mapping data digest, the hard drive local signature associated with the mapping data, and the hard drive local public key into the verification process. Regenerating the mapping data digest ensures that the verification result directly corresponds to the currently read mapping data content; only after successful verification does the control firmware load this mapping data version as valid mapping data into the current mapping state.
[0043] For example, before loading the aforementioned modified global address mapping data, the hard disk controller regenerates the mapping data digest. If the hard disk's local public key and the regenerated mapping data digest can verify the hard disk's local signature associated with the global address mapping data, loading is allowed; if the global address mapping data has been changed, causing the regenerated mapping data digest to not correspond to the hard disk's local signature, loading is refused.
[0044] When the local hard disk signature verification of any arm position mapping data fails, the hard disk controller refuses to load the arm position mapping data and isolates the media access channel of the read / write head actuator corresponding to the arm position mapping data. Each arm position mapping data corresponds to the media access range of a read / write head arm. When the hard drive's local signature verification of a certain arm position mapping data fails, the hard drive controller does not load that arm position mapping data into the current mapping state, and disables or prohibits the control firmware from initiating positioning and read / write operations through the corresponding media access channel, thereby avoiding driving the read / write head arm using a physical position relationship whose correctness cannot be confirmed.
[0045] For example, if the local hard disk signature verification of the sub-arm position mapping data corresponding to the first read / write head arm fails, the hard disk controller refuses to load the sub-arm position mapping data and puts the media access channel of the first read / write head arm into an isolated state. Whether the second read / write head arm can continue to work depends on the trusted state of the global address mapping data and the sub-arm position mapping data corresponding to the second read / write head arm, and access is not performed using the sub-arm position mapping data that failed verification.
[0046] Step 3: During hard disk operation, the hard disk controller determines the current valid global address mapping data and the arm position mapping data as the current mapping state and uses them as checkpoint snapshot data. It generates a checkpoint snapshot data digest for the checkpoint snapshot data, signs the checkpoint snapshot data digest using the hard disk local private key, and associates and saves the checkpoint snapshot data, checkpoint snapshot data digest and the corresponding hard disk local signature to generate a checkpoint snapshot. During operation, the hard disk controller selects the currently valid global address mapping data, the sub-arm position mapping data corresponding to the first read / write head actuator arm, and the sub-arm position mapping data corresponding to the second read / write head actuator arm at the same save point in time. These three data points are then used as the current mapping state and served as the checkpoint snapshot data. The hard disk controller generates a checkpoint snapshot data digest from the checkpoint snapshot data, uses the hard disk's local private key within the hardware trust root to sign the checkpoint snapshot data digest to obtain a local hard disk signature, and associates and saves the checkpoint snapshot data, the checkpoint snapshot data digest, and the corresponding local hard disk signature as a checkpoint snapshot.
[0047] For example, at the time a checkpoint snapshot is saved, the currently valid data includes global address mapping data, the sub-arm position mapping data corresponding to the first read / write head actuator arm, and the sub-arm position mapping data corresponding to the second read / write head actuator arm. The hard disk controller determines these three as the current mapping state and uses them as checkpoint snapshot data, generates a checkpoint snapshot data digest and a corresponding local hard disk signature, and then associates and saves the checkpoint snapshot data, checkpoint snapshot data digest, and local hard disk signature as a third checkpoint snapshot.
[0048] The checkpoint snapshot data also includes the snapshot version identifier, timestamp, global address mapping data fingerprint, the sub-arm position mapping data fingerprint corresponding to the two magnetic head actuator arms respectively, and running status information; The snapshot version identifier is used to distinguish checkpoint snapshots from different save points; the timestamp is used to record the time information when the checkpoint snapshot was formed; a global address mapping data fingerprint and two branch arm position mapping data fingerprints are used to identify the global address mapping data and the two branch arm position mapping data within the checkpoint snapshot, respectively; the running status information is used to record the running status that the hard disk controller needs to restore or verify when the checkpoint snapshot is formed. The above fields, together with the current mapping status, constitute the checkpoint snapshot data.
[0049] For example, the third checkpoint snapshot includes a snapshot version identifier 31, a timestamp indicating that the third checkpoint snapshot was formed, a global address mapping data fingerprint, a sub-arm position mapping data fingerprint corresponding to the first head actuator arm, a sub-arm position mapping data fingerprint corresponding to the second head actuator arm, and operational status information. Each mapping data fingerprint points to the corresponding mapping data in the third checkpoint snapshot.
[0050] The hard disk controller generates a checkpoint snapshot data digest for the checkpoint snapshot data, signs the checkpoint snapshot data digest using the hard disk's local private key, and associates and saves the checkpoint snapshot data, the checkpoint snapshot data digest, and the corresponding hard disk local signature.
[0051] The hard disk controller organizes the snapshot version identifier, timestamp, a global address mapping data fingerprint, two branch arm position mapping data fingerprints, operating status information, and current mapping status into checkpoint snapshot data. This ensures that the snapshot version identifier, each mapping data fingerprint, and operating status information are all protected by the checkpoint snapshot data digest and the hard disk's local signature. The hard disk controller generates a checkpoint snapshot data digest from the checkpoint snapshot data, then generates a local hard disk signature using the hard disk's local private key within the hardware root of trust. Finally, it associates and stores the checkpoint snapshot data digest and the local hard disk signature with the same checkpoint snapshot data.
[0052] For example, the hard disk controller organizes the snapshot version identifier 31, timestamp, a global address mapping data fingerprint, two branch arm position mapping data fingerprints, running status information, and current mapping status of the third checkpoint snapshot into checkpoint snapshot data. It then generates a checkpoint snapshot data digest from this data, and finally, the hardware root of trust generates a local hard disk signature. Whenever any mapping data or field in the checkpoint snapshot data changes, the regenerated checkpoint snapshot data digest reflects that change.
[0053] Step 4: After the hard drive is powered on again, the fault is cleared, or maintenance is completed, the hard drive controller regenerates the checkpoint snapshot data digest based on the checkpoint snapshot data in the target checkpoint snapshot. Based on the regenerated checkpoint snapshot data digest, the hard drive local signature associated with the target checkpoint snapshot is verified using the hard drive local public key. After successful verification, the current mapping state is restored, and the host read and write commands are continued to be processed using the restored current mapping state.
[0054] When the hard drive re-enters a recoverable operating state, the hard drive controller reads the target checkpoint snapshot, regenerates the checkpoint snapshot data digest based on the checkpoint snapshot data in the target checkpoint snapshot, and verifies the hard drive's local signature associated with the target checkpoint snapshot using the hard drive's local public key. After successful verification, the hard drive controller restores the global address mapping data and the two sets of arm position mapping data in the checkpoint snapshot data to the current mapping state; subsequent host read and write commands are still processed according to the query chain of "logical block address - physical block address - head execution arm and physical media position".
[0055] For example, after a hard drive loses power and is powered on again, the hard drive controller selects the third checkpoint snapshot as the target checkpoint snapshot. It regenerates the checkpoint snapshot data digest based on the checkpoint snapshot data in the third checkpoint snapshot and verifies the hard drive's local signature associated with the third checkpoint snapshot using the hard drive's local public key. After successful verification, the hard drive controller restores the global address mapping data and the sub-arm position mapping data corresponding to each of the two read / write heads. When the host subsequently reads logical block address 1000, it continues to locate physical block address 43000 and its physical media location using the restored global address mapping data and the sub-arm position mapping data corresponding to the first read / write head.
[0056] Restoring the current mapping state also includes: the hard disk controller determining whether the snapshot version identifier of the target checkpoint snapshot is located in the chain of consecutive snapshot version identifiers saved by the hard disk, determining whether the fingerprint of the split arm position mapping data in the target checkpoint snapshot corresponds to the target head execution arm to be restored, and determining whether the head execution arm ownership identifier of the split arm position mapping data to be restored points to the target head execution arm to be restored. In addition to verifying the local hard drive signature associated with the checkpoint snapshot data digest, the hard drive controller also checks the snapshot version identifier continuity and head actuator affixation of the target checkpoint snapshot. The snapshot version identifier continuity check confirms that the snapshot version identifier of the target checkpoint snapshot can be traced in the continuous snapshot version identifier chain stored on the hard drive; the correspondence between the arm position mapping data fingerprint and the target head actuator to be recovered, as well as the head actuator affixation identifier check of the arm position mapping data to be recovered, are used together to prevent the arm position mapping data corresponding to one head actuator from being recovered to another head actuator.
[0057] For example, the hard drive sequentially saves a first checkpoint snapshot, a second checkpoint snapshot, and a third checkpoint snapshot at different operating times. The snapshot version identifiers for these three snapshots are 29, 30, and 31, respectively. The hard drive controller maintains the relationship that snapshot version identifier 29 is adjacent to snapshot version identifier 30, and snapshot version identifier 30 is adjacent to snapshot version identifier 31, thus forming a continuous snapshot version identifier chain. After the hard drive loses power, the hard drive controller selects the third checkpoint snapshot as the target checkpoint snapshot and confirms that snapshot version identifier 31 can be traced back sequentially along the continuous snapshot version identifier chain to snapshot version identifier 30 and snapshot version identifier 29. When restoring the sub-arm position mapping data corresponding to the first head actuator arm, the hard drive controller also confirms that the sub-arm position mapping data fingerprint corresponds to the first head actuator arm, and that the head actuator arm attribution identifier points to the first head actuator arm. If the sub-arm position mapping data fingerprint corresponds to the second head actuator arm, or the head actuator arm attribution identifier points to the second head actuator arm, then the controller refuses to restore the sub-arm position mapping data to the first head actuator arm.
[0058] If the local hard disk signature verification associated with the checkpoint snapshot data digest passes and all judgment results meet the recovery conditions, the global address mapping data in the target checkpoint snapshot is restored, and the arm position mapping data to be restored is restored to the corresponding head execution arm. If any judgment result does not meet the recovery conditions, the recovery is rejected.
[0059] The hard disk controller combines the hard disk local signature verification associated with the checkpoint snapshot data summary, snapshot version identifier continuity judgment, arm position mapping data fingerprint correspondence judgment, and head actuator arm ownership identifier judgment into recovery permission conditions. If all conditions are met, the global address mapping data in the target checkpoint snapshot is first used as the basis for global query after recovery, and then the arm position mapping data is restored to the corresponding head actuator arm; if any condition is not met, the current mapping state is not replaced by the target checkpoint snapshot.
[0060] For example, the hard disk controller selects a third checkpoint snapshot as the target checkpoint snapshot and checks each recovery permission condition. The hard disk controller regenerates the checkpoint snapshot data digest based on the checkpoint snapshot data in the third checkpoint snapshot and uses the hard disk's local public key to verify the hard disk's local signature associated with the third checkpoint snapshot.
[0061] The hard disk controller also confirms that the snapshot version identifier 31 of the third checkpoint snapshot is located in the continuous snapshot version identifier chain, confirms that the sub-arm position mapping data fingerprint and the head execution arm ownership identifier corresponding to the first head execution arm both point to the first head execution arm, and confirms that the sub-arm position mapping data fingerprint and the head execution arm ownership identifier corresponding to the second head execution arm both point to the second head execution arm.
[0062] After all recovery conditions are met, the hard disk controller first restores the global address mapping data in the third checkpoint snapshot, then restores the sub-arm position mapping data corresponding to the first head execution arm to the first head execution arm, and restores the sub-arm position mapping data corresponding to the second head execution arm to the second head execution arm.
[0063] If the local hard disk signature verification associated with the checkpoint snapshot data summary fails, the snapshot version identifier 31 is not in the chain of consecutive snapshot version identifiers, the mapping data fingerprint of any branch arm position is incorrect, or the head execution arm attribution identifier points to the wrong position, the hard disk controller refuses to use the third checkpoint snapshot to perform the recovery and does not replace the current mapping state with the third checkpoint snapshot.
[0064] This embodiment uses global address mapping data and sub-arm position mapping data to convert logical block addresses into physical media locations accessible by the corresponding read / write head execution arms. By generating a mapping data digest after the mapping data is updated, and generating a checkpoint snapshot data digest and a local hard disk signature when saving the checkpoint snapshot, the current mapping state to be restored and its local trusted relationship with the current hard disk can be verified before recovery. By judging the continuity of snapshot version identifiers and the ownership of read / write head execution arms, errors in recovery due to non-continuous snapshot version identifiers or cross-read / write head execution arms are further restricted.
[0065] Example 2: Reference Figure 5 This embodiment describes the secure erase procedure based on the trusted operation established in Embodiment 1. This procedure is triggered independently by the host secure erase command and does not require the hard drive to have previously performed a checkpoint snapshot recovery.
[0066] When the hard disk controller receives a secure erase command sent by the host through the PCIe interface, it breaks down the secure erase task corresponding to the secure erase command into erase sub-tasks corresponding to the two read / write head arms, and maintains the execution status of each erase sub-task.
[0067] After receiving a secure erase command from the PCIe interface, the hard drive controller first determines the area to be erased corresponding to the command. Then, based on the affiliation between the area to be erased and the first and second read / write head arms, it forms two erase sub-tasks. The two erase sub-tasks are respectively bound to their corresponding read / write head arms and have their own execution states such as not executed, in execution, completed, or abnormal, enabling the hard drive controller to distinguish the execution progress and results of the two read / write head arms.
[0068] For example, after the host sends a secure erase command, the hard disk controller creates an erase subtask corresponding to the first head execution arm and an erase subtask corresponding to the second head execution arm. When the erase subtask corresponding to the first head execution arm is completed, but the erase subtask corresponding to the second head execution arm is still being executed, the hard disk controller saves "Eraser subtask corresponding to the first head execution arm: Completed" and "Eraser subtask corresponding to the second head execution arm: Executing" respectively, without marking the secure erase task as completed in advance.
[0069] The erasure scope of each erasure subtask includes at least one of the following: the user logic block address space associated with the corresponding head execution arm, the head private cache, the remapped bad sector region, and the spare track region; The hard disk controller determines at least one region to be processed for each erase subtask based on the media regions actually supported by the hard disk and the range specified by the secure erase command. The region is assigned based on the user logical block address space accessible by the corresponding head actuator, the head private cache, the remapped bad sector region, or the spare track region, so that the first head actuator and the second head actuator can process their respective associated erase ranges.
[0070] For example, the erasure range of the erase subtask corresponding to the first head execution arm includes the user logic block address space and spare track region associated with the first head execution arm, while the erasure range of the erase subtask corresponding to the second head execution arm includes the user logic block address space and remapped bad sector region associated with the second head execution arm. The two erase subtasks are executed according to their respective erasure ranges and are not replaced by the erasure range of the other head execution arm.
[0071] The hard disk controller collects erase segment records during the execution of the erase subtask. The erase segment records include the head actuator identifier, head identifier, track interval, overwrite mode, timestamp, and media verification information.
[0072] Each erase subtask forms one or more erase segments according to the media access order of the corresponding head actuator arm. During the execution of an erase segment, the hard disk controller records the head actuator arm and head to which the erase segment belongs, the track range covered, the overwrite mode used, the execution time, and media verification information, so that the erase audit log can be traced back to the actual erase segment executed.
[0073] For example, the erase subtask corresponding to the first head execution arm forms an erase segment record, which records "first head execution arm, first head, tracks 10 to 19, first overwrite mode, first timestamp, and first media verification information"; the erase subtask corresponding to the second head execution arm forms another erase segment record, and uses the head identifier, track interval, and media verification information corresponding to the second head execution arm.
[0074] After each erase subtask meets its completion conditions, the hard disk controller aggregates the erased segments of records according to the read / write head arm and execution order. The hard disk controller determines whether each of the two erase subtasks meets the completion conditions. After all the erase subtasks that need to be included in this secure erase task meet the completion conditions, the hard disk controller first groups the erase segment records according to the read / write head actuator arm, and then arranges them according to the execution order of each erase segment, thereby obtaining an erase audit record that reflects the actual secure erase process of the two read / write head actuator arms.
[0075] For example, the erase subtask corresponding to the first head execution arm and the erase subtask corresponding to the second head execution arm each generate two erase segment records. After the erase segments corresponding to the four erase segment records are completed, the hard disk controller first groups them by head execution arm, and then aggregates them according to the execution order within each group; if the erase subtask corresponding to the second head execution arm is still in an abnormal state, it will not enter the aggregation completion branch that represents the completion of all erase subtasks.
[0076] Generate an erase audit log digest, sign the erase audit log digest using the hard drive's local private key, and write the erase audit log, the erase audit log digest, and the corresponding hard drive local signature into the hardware-protected read-only audit log area. The hard disk controller uses the aggregated erase audit logs as input to generate an erase audit log digest, and then uses the hard disk's local private key within the hardware trust root to sign the erase audit log digest. The hard disk controller writes the erase audit logs, erase audit log digests, and their corresponding local hard disk signatures as associated objects into the hardware-protected read-only audit log area for subsequent reading and verification, but does not write the hard disk's local private key into the hardware-protected read-only audit log area.
[0077] For example, the hard disk controller aggregates all erase segment records to form an erase audit record, generates an erase audit record summary for the erase audit record, and generates a corresponding local hard disk signature by the hardware root of trust. Then, the erase audit record, erase audit record summary and local hard disk signature are associated and written into the read-only audit log area protected by the hardware.
[0078] It outputs a secure erase audit credential that can be verified using the local public key of the hard drive to the host.
[0079] The hard drive controller generates a secure erase audit credential based on the erase audit log, the erase audit log summary, and the corresponding local hard drive signature, and outputs it to the host via the PCIe interface. After obtaining the local hard drive public key, the host can verify the local hard drive signature in the secure erase audit credential and check the erase segment overwriting and execution order of the two read / write head execution arms in conjunction with the erase audit log.
[0080] For example, after a secure erase task is completed, the hard drive controller returns a secure erase audit credential to the host. This credential is associated with the erase audit log, the erase audit log digest, and the corresponding local hard drive signature. The host uses the hard drive's local public key and the erase audit log digest to verify the local hard drive signature. Once verified, the host reads the erase segment records corresponding to the two read / write heads in the erase audit log.
[0081] This embodiment converts a secure erase command into traceable erase subtasks corresponding to two read / write head execution arms, so as to erase segmented records to reflect the actual processing of each media range, and forms an audit chain from command input to result output through erase audit record summary, hard disk local signature, hardware-protected read-only audit log area and secure erase audit credentials.
[0082] Example 3: This example is used to illustrate the unified anomaly handling exit corresponding to Example 1 and Example 2.
[0083] Inputs for exception handling can come from external trusted signature verification of the control firmware to be loaded, local hard disk signature verification of the control firmware to be loaded, local hard disk signature verification of the mapped data, checkpoint snapshot verification, or the execution process of the erase subtask.
[0084] When an abnormality is detected in the external trusted signature verification of the control firmware to be loaded, the local hard disk signature verification of the control firmware to be loaded, the local hard disk signature verification of the mapped data, the checkpoint snapshot verification, or the erase subtask, the hard disk controller determines the head execution arm associated with the abnormality. For example, an anomaly in the local hard disk signature verification of the sub-arm position mapping data corresponding to the first read / write head execution arm can be associated with the first read / write head execution arm; when the sub-arm position mapping data corresponding to the first read / write head execution arm in the target checkpoint snapshot is incorrectly marked as belonging to the second read / write head execution arm, the read / write head execution arm involved in the anomaly can be determined based on the recovery target and the read / write head execution arm attribution identifier; an interruption in the erase subtask corresponding to the second read / write head execution arm can be associated with the second read / write head execution arm; and failure to verify the external trusted signature or local hard disk signature of the control firmware to be loaded is treated as an anomaly during the firmware loading stage.
[0085] When the local hard disk signature verification of any arm position mapping data fails, the hard disk controller refuses to load the arm position mapping data and isolates the media access channel of the read / write head actuator corresponding to the arm position mapping data. For anomalies that can be identified in a single head actuator arm through the arm position mapping data, the hard disk controller treats load refusal and media access channel isolation as a single handling chain.
[0086] For example, if the regenerated mapping data digest of the sub-arm position mapping data corresponding to the first read / write head actuator arm cannot be verified by the hard drive local public key to verify its associated hard drive local signature, the hard drive controller refuses to load the sub-arm position mapping data and isolates the media access channel of the first read / write head actuator arm. At the same time, it retains the "hard drive local signature verification error of sub-arm position mapping data" and the first read / write head actuator arm identifier for use in the output of abnormal events.
[0087] When the local signature verification of the global address mapping data fails, the hard drive controller puts the hard drive into a security restricted mode that restricts data reading and writing.
[0088] For example, the hard disk controller regenerates the mapping data digest based on the global address mapping data to be loaded, but cannot use the hard disk's local public key and the regenerated mapping data digest to verify the hard disk's local signature associated with the global address mapping data. The hard disk controller no longer uses the global address mapping data to query the physical block address corresponding to logical block address 1000, and puts the hard disk into a security-restricted mode that restricts data read and write operations.
[0089] For anomalies that can be associated with a single head actuator arm, the corresponding media access channel is isolated, and an anomaly event containing the head actuator arm identifier is output to the host through the PCIe asynchronous event notification mechanism. For example, if the erase subtask corresponding to the second head execution arm is interrupted and the exception can be associated with the second head execution arm, the hard disk controller isolates the media access channel of the second head execution arm and outputs an exception event containing "erasure subtask exception" and the identifier of the second head execution arm to the host through the PCIe asynchronous event notification mechanism; this exception event does not mark the first head execution arm as an abnormal head execution arm.
[0090] For exceptions where the reliability of global address mapping data cannot be verified, restrict data read and write operations on the hard drive.
[0091] For example, after power-on, if the local hard disk signature verification associated with the checkpoint snapshot data digest in the target checkpoint snapshot fails, and there is no other target checkpoint snapshot that meets the recovery conditions and can be used to recover the global address mapping data, the hard disk controller refuses to use the target checkpoint snapshot to recover the current mapping state and restricts the host from initiating data read and write operations to logical block addresses such as logical block address 1000.
[0092] Example 1 illustrates the trusted workflow of a hard drive from power-on, normal read / write, checkpoint snapshot saving to restoration of the current mapped state; Example 2 illustrates the new secure erase procedure independently triggered by the host via the PCIe interface; Example 3 illustrates the unified control exit point when anomalies occur at each stage of the first two examples. Example 2 does not presuppose that the checkpoint snapshot restoration in Example 1 has already occurred, but the secure erase process can use the hard drive local signature capability established in Example 1 to generate secure erase audit credentials.
[0093] The above are merely preferred embodiments of this application and are not intended to limit this application. Modifications, equivalent substitutions, or improvements made by those skilled in the art within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A trusted and secure control method for dual-arm multi-head hard disks, executed by a hard disk controller, characterized in that, include: Step 1: Respond to hard drive power-on, verify the external trusted signature and the local hard drive signature of the control firmware to be loaded, and load and run the control firmware after successful verification; Step 2: The hard disk controller loads and verifies the global address mapping data and the arm position mapping data corresponding to the two read / write heads by controlling the firmware. It determines the physical block address, the corresponding read / write head arm and the physical medium position based on the logical block address in the host read / write command, and updates the corresponding data when the mapping changes. Among them, the global address mapping data records the correspondence between logical block addresses and physical block addresses, and the sub-arm position mapping data records the correspondence between physical block addresses, the magnetic head execution arm responsible for accessing the physical block address, and the physical medium position. Step 3: During hard disk operation, the hard disk controller determines the current valid global address mapping data and the arm position mapping data as the current mapping state and uses them as checkpoint snapshot data. It generates a checkpoint snapshot data digest for the checkpoint snapshot data, signs the checkpoint snapshot data digest using the hard disk local private key, and associates and saves the checkpoint snapshot data, checkpoint snapshot data digest and the corresponding hard disk local signature to generate a checkpoint snapshot. Step 4: After the hard drive is powered on again, the fault is cleared, or maintenance is completed, the hard drive controller regenerates the checkpoint snapshot data digest based on the checkpoint snapshot data in the target checkpoint snapshot. Based on the regenerated checkpoint snapshot data digest, the hard drive local signature associated with the target checkpoint snapshot is verified using the hard drive local public key. After successful verification, the current mapping state is restored, and the host read and write commands are continued to be processed using the restored current mapping state.
2. The trusted security control method for dual-arm multi-head hard disks according to claim 1, characterized in that, The external trusted signature is a signature generated by the firmware vendor using the vendor's signature private key to control the firmware digest. The hard disk local signature is a signature generated by the hardware root of trust using the hard disk local private key to control the firmware digest. The hard disk local signature key pair is generated by the hardware root of trust based on the hard disk's unique key material derived from a physically non-cloning function. The hard disk local private key is restricted to use within the hardware root of trust. The hard disk controller uses the vendor's signature public key to verify the external trusted signature and uses the hard disk local public key to verify the hard disk local signature. When both types of signatures are verified, the control firmware is loaded and run.
3. The trusted security control method for dual-arm multi-head hard disks according to claim 1, characterized in that, When the global address mapping data or the arm position mapping data changes, the hard disk controller generates a mapping data digest for the changed mapping data, signs the mapping data digest using the hard disk's local private key, and associates and saves the changed mapping data, the mapping data digest, the hard disk's local signature, the mapping data version identifier, and the timestamp. Before loading the mapping data, the hard disk controller regenerates the mapping data digest and verifies the hard disk's local signature associated with the mapping data using the hard disk's local public key. Once the verification is successful, loading the mapping data is allowed.
4. The trusted security control method for dual-arm multi-head hard disks according to claim 3, characterized in that, When the local hard disk signature verification of any arm position mapping data fails, the hard disk controller refuses to load the arm position mapping data and isolates the media access channel of the read / write head actuator corresponding to the arm position mapping data. When the local signature verification of the global address mapping data fails, the hard drive controller puts the hard drive into a security restricted mode that restricts data reading and writing.
5. The trusted security control method for dual-arm multi-head hard disks according to claim 1, characterized in that, The checkpoint snapshot data also includes a snapshot version identifier, a timestamp, a global address mapping data fingerprint, a split arm position mapping data fingerprint corresponding to the two read / write head execution arms respectively, and running status information; the hard disk controller generates a checkpoint snapshot data digest for the checkpoint snapshot data, signs the checkpoint snapshot data digest using the hard disk local private key, and associates and saves the checkpoint snapshot data, the checkpoint snapshot data digest, and the corresponding hard disk local signature.
6. The trusted security control method for dual-arm multi-head hard disks according to claim 5, characterized in that, Restoring the current mapping state also includes: the hard disk controller determining whether the snapshot version identifier of the target checkpoint snapshot is located in the chain of consecutive snapshot version identifiers saved by the hard disk, determining whether the fingerprint of the arm position mapping data in the target checkpoint snapshot corresponds to the target head execution arm to be restored, and determining whether the head execution arm ownership identifier of the arm position mapping data to be restored points to the target head execution arm to be restored; when the hard disk local signature verification associated with the checkpoint snapshot data digest passes and all judgment results meet the recovery conditions, the global address mapping data in the target checkpoint snapshot is restored, and the arm position mapping data to be restored is restored to the corresponding head execution arm; if any judgment result does not meet the recovery conditions, the restoration is rejected.
7. The trusted security control method for dual-arm multi-head hard disks according to claim 1, characterized in that, When the hard disk controller receives a secure erase command sent by the host through the PCIe interface, it breaks down the secure erase task corresponding to the secure erase command into erase sub-tasks corresponding to the two read / write head arms, and maintains the execution status of each erase sub-task.
8. The trusted security control method for dual-arm multi-head hard disks according to claim 7, characterized in that, The erasure scope of each erasure subtask includes at least one of the user logic block address space associated with the corresponding head actuator arm, the head private cache, the remapped bad sector region, and the spare track region; the hard disk controller collects erasure segment records during the execution of the erasure subtask, and the erasure segment records include the head actuator arm identifier, head identifier, track interval, overwrite mode, timestamp, and media verification information.
9. The trusted security control method for dual-arm multi-head hard disks according to claim 8, characterized in that, After each erasure subtask meets the completion conditions, the hard disk controller aggregates the erasure segment records according to the read / write head execution arm and execution order, generates an erasure audit record summary, signs the erasure audit record summary using the hard disk's local private key, writes the erasure audit record, the erasure audit record summary and the corresponding hard disk local signature into the hardware-protected read-only audit log area, and outputs a secure erasure audit credential that can be verified using the hard disk's local public key to the host.
10. The trusted security control method for dual-arm multi-head hard disks according to claim 7, characterized in that, When an external trusted signature verification anomaly is detected in the control firmware to be loaded, a local hard disk signature verification anomaly in the control firmware to be loaded, a local hard disk signature verification anomaly in the mapped data, a checkpoint snapshot verification anomaly, or an erase subtask anomaly, the hard disk controller determines the head actuator arm associated with the anomaly. For anomalies that can be associated with a single head actuator arm, the corresponding media access channel is isolated, and an anomaly event containing the head actuator arm identifier is output to the host through the PCIe asynchronous event notification mechanism. For exceptions where the reliability of global address mapping data cannot be verified, restrict data read and write operations on the hard drive.
