Search

CN-114490145-B - Fault processing method and device and computer readable storage medium

CN114490145BCN 114490145 BCN114490145 BCN 114490145BCN-114490145-B

Abstract

The embodiment of the invention discloses a fault processing method, a device and a computer readable storage medium, which comprise the steps of receiving first information from fault equipment, including fault information, determining a first patch unit fault according to the first information, and sending second information including the first patch unit information to the fault equipment so that the fault equipment can disable the first patch unit, thereby reducing the influence of patch problems on services.

Inventors

  • WANG ZEHUA

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260512
Application Date
20201113

Claims (19)

  1. 1. A method of fault handling comprising: Receiving first information from fault equipment, wherein the first information comprises fault information, the fault information comprises an interrupt vector and register information, the register information comprises a first instruction address, the first instruction address is an instruction address corresponding to an instruction code which is being executed when a fault occurs, the first information also comprises information of a patch corresponding to the fault, and the patch corresponding to the fault is a patch which is being installed or is being operated when the fault occurs; determining an interrupt type corresponding to the interrupt vector; When the interrupt type is determined to be a software interrupt, obtaining patch configuration information according to the information of the patch; When the patch configuration information comprises the first instruction address, determining that the fault is caused by a patch unit; determining that an instruction code corresponding to the first instruction address in the patch configuration information is a first patch unit with a fault; And sending second information to the fault equipment, wherein the second information comprises information of the first patch unit, the second information is used for disabling the first patch unit, and disabling the first patch unit comprises backing the first patch unit to a state in which the first patch unit is not installed.
  2. 2. The method of claim 1, wherein the first information further comprises user information, wherein the patch configuration information comprises a set of permissions for patch units, and wherein the sending the second information to the malfunctioning device comprises: And when the first patch unit corresponding permission group comprises the user information corresponding user, second information is sent to the fault equipment.
  3. 3. The method of claim 1, wherein the patch configuration information includes a status of a patch unit, the method further comprising: receiving third information from the fault equipment, wherein the third information comprises result information after the first patch unit is disabled; And updating the state of the first patch unit according to the third information.
  4. 4. A method according to claim 3, wherein the patch configuration information further includes a tree structure, the second information further includes information of a second patch unit, the second patch unit is a patch unit in the patch configuration information that belongs to the same tree structure as the first patch unit, the second information is further used to disable the second patch unit, and the third information further includes result information after the second patch unit is disabled; the method further comprises the steps of: And updating the state of the second patch unit according to the third information.
  5. 5. The method of claim 1, wherein the failed information further comprises exception stack information, wherein the determining that the failure is a failure caused by a patch unit when the patch configuration information includes the first instruction address comprises: And when the patch configuration information comprises the first instruction address and the exception stack information comprises the first instruction address, determining that the fault is a fault caused by a patch unit.
  6. 6. A method of fault handling comprising: When fault equipment is monitored to generate faults, first information is sent to fault analysis equipment, the first information comprises fault information, the fault information comprises interrupt vectors and register information, the register information comprises first instruction addresses, the first instruction addresses are instruction addresses corresponding to instruction codes which are being executed when the faults generate, the first information also comprises information of patches corresponding to the faults, the patches corresponding to the faults are patches which are being installed or are being executed when the faults generate, the interrupt vectors are used for determining interrupt types by the fault analysis equipment, when the interrupt types are software interrupts, the patch information is used for obtaining patch configuration information by the fault analysis equipment, when the patch configuration information comprises the first instruction addresses, the faults are determined to be faults caused by patch units, and the instruction codes corresponding to the first instruction addresses in the patch configuration information are first patch units of the faults; receiving second information from the fault analysis device, the second information including information of the first patch unit; disabling the first patch unit according to the second information includes rolling back the first patch unit to a state in which the first patch unit is not installed.
  7. 7. The method of claim 6, wherein the first information further comprises user information, wherein patch configuration information comprises a set of permissions for patch units, wherein the first information is further used by the fault analysis device to determine that the set of permissions for first patch units comprises the user information corresponding to users.
  8. 8. The method of claim 6, wherein the patch configuration information includes a status of a patch unit, the method further comprising: And sending third information to the fault analysis equipment, wherein the third information comprises result information after the first patch unit is disabled, and the third information is used for updating the state of the first patch unit by the fault analysis equipment.
  9. 9. The method of claim 8, wherein the patch configuration information further includes a tree structure, and the second information further includes information of a second patch unit, the second patch unit being a patch unit in the patch configuration information that belongs to the same tree structure as the first patch unit; the method further comprises the steps of: And enabling the second patch unit according to the second information, wherein the third information further comprises result information after the second patch unit is disabled, and the third information is further used for updating the state of the second patch unit by the fault analysis equipment.
  10. 10. The method of claim 6, wherein the failed information further comprises exception stack information, wherein determining that the failure is a failure caused by a patch unit when the patch configuration information includes the first instruction address comprises: And when the patch configuration information comprises the first instruction address and the exception stack information comprises the first instruction address, determining that the fault is a fault caused by a patch unit.
  11. 11. The method according to any one of claims 6-10, further comprising: receiving a first command, wherein the first command carries information of a third patch unit; And disabling the third patch unit according to the first command.
  12. 12. A fault handling device, characterized in that the device comprises means for performing the method according to any of claims 1-5.
  13. 13. A fault handling device, characterized in that the device comprises means for performing the method according to any of claims 6-11.
  14. 14. A fault handling device comprising a processor, a memory, an input interface for receiving information from other devices than the device, and an output interface for outputting information to other devices than the device, the processor invoking a computer program stored in the memory to implement the method of any of claims 1-5.
  15. 15. A fault handling device comprising a processor, a memory, an input interface for receiving information from other devices than the device, and an output interface for outputting information to other devices than the device, the processor invoking a computer program stored in the memory to implement the method of any of claims 6-11.
  16. 16. A fault handling system comprising the apparatus of claim 12 and the apparatus of claim 13.
  17. 17. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program or computer instructions, which, when executed, implement the method of any of claims 1-11.
  18. 18. A chip comprising a processor for executing a computer program stored in a memory, which when executed causes the chip to perform the method of any of claims 1-11.
  19. 19. A computer program product comprising computer instructions which, when executed, are adapted to carry out the method of any one of claims 1 to 11.

Description

Fault processing method and device and computer readable storage medium Technical Field The embodiment of the application relates to the technical field of software, in particular to a fault processing method, a fault processing device and a computer readable storage medium. Background Patches are small programs that are released to fix vulnerabilities against problems exposed during use of some large software systems. At present, after the patch is installed, if the patch has software defects, compatibility and other problems, the whole patch package needs to be rolled back, so that all updated contents in the patch package are invalid, and the service related to the patch package is damaged. Disclosure of Invention The embodiment of the application discloses a fault processing method, a fault processing device and a computer readable storage medium, which are used for reducing the influence of patch problems on services. The first aspect discloses a fault handling method that may be applied to a fault analysis apparatus, or may be applied to a module (e.g., a chip) in a fault analysis apparatus, and will be described below by taking the fault analysis apparatus as an example. The fault processing method can include receiving first information from a fault device, wherein the first information comprises fault information, determining that a first patch unit is faulty according to the first information, wherein the patch unit is the smallest functional unit in a patch, and sending second information to the fault device, wherein the second information comprises information of the first patch unit, and the second information is used for disabling the first patch unit. In the embodiment of the application, after the fault analysis equipment receives the fault information from the fault equipment, when the fault is determined to be the fault caused by the patch unit, the fault analysis equipment can send the information of the patch unit causing the fault to the fault equipment so that the fault equipment can disable the faulty patch unit instead of the whole patch, the disabling time can be reduced, and the operation of the service corresponding to the patch unit which is not disabled in the patch can not be influenced after the disabling, thereby reducing the influence of the patch problem on the service. As a possible implementation manner, the first information may further comprise user information, the patch configuration information comprises a permission set of the patch unit, and the fault analysis device sending the second information to the fault device comprises sending the second information to the fault device when the permission set corresponding to the first patch unit comprises a user corresponding to the user information. In the embodiment of the application, the fault analysis equipment sends the information of the patch unit causing the fault to the fault equipment under the condition that the current user using the fault equipment has the permission to disable, so that the fault equipment can disable the patch unit with the fault, and therefore, only the user with the permission can be enabled. As a possible implementation manner, the patch configuration information may include a state of the patch unit, and the fault processing method may further include receiving third information from the fault device, where the third information includes result information after the first patch unit is disabled, and updating the state of the first patch unit according to the third information. In the embodiment of the application, after the fault equipment is disabled, the disabled result can be returned to the fault analysis equipment, so that the fault analysis equipment can update the state of the patch unit according to the disabled result, and the latest state of the patch unit can be determined by inquiring the state of the patch unit. As a possible implementation manner, the patch configuration information can further comprise a tree structure, the second information can further comprise information of a second patch unit, the second patch unit is a patch unit which belongs to the same tree structure as the first patch unit in the patch configuration information, the second information is further used for disabling the second patch unit, the third information can further comprise result information after the second patch unit is disabled, and the fault processing method can further comprise updating the state of the second patch unit according to the third information. In the embodiment of the application, not only the patch unit causing the fault can be disabled, but also the patch unit with the dependency relationship with the patch unit can be disabled, so that the problem that the fault equipment needs to process the service corresponding to the patch unit with the dependency relationship with the patch unit and cannot successfully process the service due to the dependency relationship with th