Hot patch generation method and device and server

A hot patch and configuration file technology, applied in program code conversion, program files, software maintenance/management, etc., can solve problems such as jump_entrystatic_key value association loss, missing, static_key symbol cannot be corrected, etc.

Pending Publication Date: 2021-02-26
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The hot patch can repair the defects of the current software version of the device without restarting the device and service; in the Linux kernel, there are many conditional jump instructions, and the corresponding two branches are executed according to the conditional judgment results. One of the branches, the Linux kernel binds this judgment relationship with static_key, generates the corresponding jump_entry in the generated target file, associates the code address related to the jump instruction in jump_entry with static_key, and modifies the correspondi

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hot patch generation method and device and server
  • Hot patch generation method and device and server
  • Hot patch generation method and device and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0026] A patch can be understood as a program package used to fix a certain defect. It is some code that can fix software or hardware vulnerabilities. It is a fast and low-cost way to fix product software version defects. Compared with upgrading the software version, the main advantage of the hot patch is that it will not interrupt the business currently running on the device, that is, the defects of the current software version of the device can be repaired without restarting the device and services .

[0027] In the p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a hot patch generation method and device, and a server. A comparison file generated based on a comparison result obtained in advance comprises a target structure variable associated with a changed _jump_table segment in the _jump_table segment of a second target file, and relocation information of a specified address in the target structure variable; and based on the comparison file, generating a hot patch file containing the relocation information of the specified address. According to the method, a comparison file comprises a target structural body variable associatedwith a changed _jump_table segment and relocation information of a related specified address; the hot patch file generated on the basis of the comparison file also contains the correct relocation information of the specified address, the incidence relation between the hot patch file and the original module can be kept through the relocation information, and the correctness of code logic in the hotpatch file is guaranteed.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a hot patch generation method, device and server. Background technique [0002] The hot patch can repair the defects of the current software version of the device without restarting the device and service; in the Linux kernel, there are many conditional jump instructions, and the corresponding two branches are executed according to the conditional judgment results. One of the branches, the Linux kernel binds this judgment relationship with static_key, generates the corresponding jump_entry in the generated target file, associates the code address related to the jump instruction in jump_entry with static_key, and modifies the corresponding value in jump_entry according to the value of static_key In related technologies, __jump_table includes multiple elements, and each element corresponds to a jump_entry. Since the static_key symbol cannot be corrected during the hot ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/41G06F8/73
CPCG06F8/41G06F8/73
Inventor 程相群
Owner BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products