CN103530184A - Method and device for online patch activation - Google Patents

Method and device for online patch activation Download PDF

Info

Publication number
CN103530184A
CN103530184A CN201310508687.5A CN201310508687A CN103530184A CN 103530184 A CN103530184 A CN 103530184A CN 201310508687 A CN201310508687 A CN 201310508687A CN 103530184 A CN103530184 A CN 103530184A
Authority
CN
China
Prior art keywords
patch
instruction
function
address
jump
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310508687.5A
Other languages
Chinese (zh)
Other versions
CN103530184B (en
Inventor
陈运生
强鸿斐
万汉阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610865260.4A priority Critical patent/CN106484369B/en
Priority to CN201310508687.5A priority patent/CN103530184B/en
Publication of CN103530184A publication Critical patent/CN103530184A/en
Application granted granted Critical
Publication of CN103530184B publication Critical patent/CN103530184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3005Arrangements for executing specific machine instructions to perform operations for flow control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements
    • G06F9/30105Register structure
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/32Address formation of the next instruction, e.g. by incrementing the instruction counter
    • G06F9/322Address formation of the next instruction, e.g. by incrementing the instruction counter for non-sequential address

Abstract

The invention relates to the technical field of computers, in particular to a method and device for online patch activation. The method comprises the steps of locating the address of a patch function and a first entry instruction of a function to be patched; writing the information comprising the address of the patch function into a jump table and obtaining the index of the information in the jump table; writing the address of the jump table into a register; obtaining the length of the first entry instruction of the function to be patched and constructing a short instruction with the length smaller than or equal to the length of the first entry instruction of the function to be patched, wherein the short instruction comprises the identification of the register and the index; and replacing the first entry instruction of the function to be patched with the short instruction, enabling the short instruction to be executed when the function to be patched is called, and then activating the patch function. By using the method and the device, online patch activation can be achieved by replacing the first instruction on the entry of the function to be patched, and therefore the safety of an operating system is improved.

Description

A kind of method of online patch activation and device
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of method and apparatus of online patch activation.
Background technology
In operating system, jump instruction can be carried out flow process by reprogramming, online patch for example, the object of online patch is in the situation that not losing program legacy version, to use the function for the treatment of patch installing in patch function replacement program legacy version, for the defect of repair procedure legacy version or the function of enhancing legacy version.Its ultimate principle is that the instruction for the treatment of the place, entry position of patch installing function in program legacy version is replaced with to jump instruction, when operating system is carried out program legacy version until patch installing function entrance, jump instruction will make operating system jump to patch function entrance place, carry out patch function.
At present, the method that realizes online patch activation has a lot, wherein, a kind of concrete implementation method is long jump method, long jump method can realize by register, first destination address is write to register, the destination address then jumping in register is carried out new instruction, but this long jump method needs many instructions just can complete redirect.
From the above, use long jump method to realize online patch activation, need to replace program legacy version and treat many instructions at patch installing function entrance place, if some thread maybe will carried out these and be replaced the part or all of of instruction when instruction is replaced, may cause the unknown instruction of thread execution, cause that operating system is abnormal.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus of online patch activation, the security that can improve operating system in activating the process of online patch.
The first aspect of the embodiment of the present invention discloses a kind of method of online patch activation, and described method comprises:
Positioning patch function address and article one entry instruction for the treatment of patch installing function; The information that comprises patch function address is write to jump list, and obtain the index of described information in described jump list; Described jump list address is write to register; Described in obtaining, treat the length of article one entry instruction of patch installing function, and construct the short instruction that a length is treated article one entry instruction length of patch installing function described in being less than or equal to, the sign that described short instruction comprises described register and described index; By described, treat that article one entry instruction of patch installing function replaces with described short instruction, described in making, when patch installing function is called, described short instruction is performed, and described patch function is activated.
In conjunction with first aspect, in the first implementation of first aspect, describedly the information that comprises patch function address write to jump list comprise:
Described patch function address is write to jump list;
Obtaining the index of described information in described jump list comprises:
Obtain the index of described patch function address in described jump list.
In conjunction with first aspect, in the second implementation of first aspect, describedly the information that comprises patch function address write to jump list comprise:
The jump instruction that jumps to the address of described patch function is write to jump list;
Obtaining the index of described information in described jump list comprises:
Obtain the index of described jump instruction in described jump list.
In conjunction with the first implementation of first aspect or first aspect or the second implementation of first aspect, in the third implementation of first aspect, described jump list is for storing at least one information that comprises patch function address.
The second aspect of the embodiment of the present invention discloses a kind of device of online patch activation, and described device comprises:
Positioning unit, for positioning patch function address and article one entry instruction for the treatment of patch installing function; Writing unit, writes jump list by the information that comprises described patch function address, and described jump list address is write to register, and described patch function address is located by described positioning unit; Acquiring unit, for obtaining information that said write unit writes at the index of described jump list; Obtain the length of article one entry instruction for the treatment of patch installing function of described positioning unit location; Tectonic element, for constructing a length, treat the short instruction of article one entry instruction length of patch installing function described in being less than or equal to, the sign that described short instruction comprises described register and described index, described in treat that article one entry instruction of patch installing function located by described positioning unit; Replacement unit, for treating that by described article one entry instruction of patch installing function replaces with the short instruction of described tectonic element structure; Performance element, for carrying out the short instruction that replacement unit is replaced described when patch installing function is called, activates described patch function.
In conjunction with second aspect, in the first implementation of second aspect, said write unit specifically for:
The address of the described patch function of location unit location is write to jump list;
Described acquiring unit specifically for:
Obtain the index of described patch function customization in described jump list.
In conjunction with second aspect, in the second implementation of second aspect, said write unit specifically for:
The jump instruction that can jump to the address of patch function writes jump list;
Described acquiring unit specifically for:
Obtain the index of described jump instruction customization in described jump list.
From the above, use the method and apparatus of the online patch activation that the embodiment of the present invention provides, can in the situation that only replacing program legacy version and treating article one instruction of patch installing function entrance place, realize online patch activation, improved the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The method flow diagram of the online patch activation that Fig. 1 provides for one embodiment of the invention;
The method flow diagram of the online patch activation that Fig. 2 provides for another embodiment of the present invention;
The method flow diagram of the online patch activation that Fig. 3 provides for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 4 provides for one embodiment of the invention;
The structure drawing of device of the online patch activation that Fig. 5 provides for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 6 provides for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 7 provides for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 8 provides for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 9 provides for another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 has described the method for a kind of online patch activation of the embodiment of the present invention, and what the method was described is the process of patch installing function entrance place article one instruction for the treatment of in short instruction replacement program, and the method specifically comprises:
101, positioning patch function address and treat article one entry instruction of patch installing function.
Online patch refers to the program patch that does not need to restart program and come into force in service, is widely used in all kinds of software.When patch installing program is moved, in online patch activation thread positioning patch function address and this program, treat article one entry instruction of patch installing function.Wherein, online patch activation thread can be the thread of program inside, can be also one for activating the thread of the application program of patch.
102, the information that comprises patch function address is write to jump list, and obtain the index of this information in this jump list.
Jump list is the block space that online patch activation thread is opened up in internal memory, can record the information that comprises patch function address.Wherein, the information that comprises patch function address can be patch function address, also can jump to the jump instruction of patch function address.Use jump list can realize a plurality of patch functions activates simultaneously.
Obtain the index of this information in this jump list.The information that comprises patch function address is write after jump list, obtain index or the sequence number of this information in this jump list.Can locate the position of this information in this jump list by this sequence number or index.
103, this jump list address is write in register.
Jump list address is write in register, and no matter where jump list is placed in internal memory, can pass through access register, the address of reading jump list, then obtain by jump list the information that each comprises patch function address.Wherein, the first address of jump list can be write in register, register can be base register.
104, obtain the length that this treats article one entry instruction of patch installing function, and construct a length and be less than or equal to short instruction, the sign that this short instruction comprises this register and this index that this treats article one entry instruction length of patch installing function.
In different operating system, the length that realizes the instruction of identical function is likely also different.Obtain the length that this treats article one entry instruction of patch installing function, construct a length and be less than or equal to short instruction, the sign that this short instruction comprises this register and this index that this treats article one entry instruction length of patch installing function.Wherein, when this short instruction is performed, can obtain the jump list first address in register, just can positioning patch function entrance address by first address and the index of jump list.
At jump list, only have in one, can by a base register, record the first address of this jump list, in short instruction, can write the index of information in jump list that comprises patch function address.When this short instruction is performed, will go the base register of acquiescence to obtain the first address of jump list, the entrance that the index in conjunction with this information in this jump list just can positioning patch function.Wherein, jump list can be stored a certain amount of information that comprises patch function address, and for example jump list can be stored 10 these information, thereby makes the length of index shorter.
When jump list has multiple, the first address of multiple jump lists need to be recorded by a plurality of base registers, the index of the information that just need to write the corresponding base register of jump list and comprise patch function address in short instruction in this jump list.When this short instruction is performed, by the base register of the record in short instruction, obtain the first address of jump list, the index positioning patch function entrance in conjunction with the information that comprises patch function address in jump list.
This short instruction has been realized long jump by base register, because this short instruction is less than or equal to, treats patch installing function entrance place article one instruction length, can guarantee to realize smoothly the activation of online patch.
105, article one entry instruction of this being treated to patch installing function replaces with this short instruction, makes this when patch installing function is called, and this short instruction is performed, and this patch function is activated.
Owing to treating in program that there are a lot of bar instructions the porch of patch installing function, if replace many instructions, so in replacement process, may occur that some instruction that need to replace is by some thread execution, may cause the unknown instruction of thread execution, cause that operating system is abnormal.
Article one instruction for the treatment of patch installing function entrance place in program is replaced with to this short instruction, the length of this short instruction is no more than the length of this article one entry instruction, in replacement process, can not have influence on other instructions so, can guarantee that online patch activates smoothly, also can guarantee operating system security operation.Wherein, the register identification in this short instruction and index are all shorter, can guarantee that the length of this short instruction is no more than the length of this article one entry instruction.
At this when patch installing function is called, the short instruction for the treatment of article one instruction of patch installing function entrance place as this is performed, this short instruction can be resolved, according to the content of resolving, remove base register access acquiescence or short instruction record, obtain the jump list first address of storing in this base register, index according to the information that comprises patch function address recording in this jump list first address and this short instruction in jump list, obtain patch function entrance address, jump to patch function entrance, and carry out function patch, patch function is activated.
From the above, the method for the online patch activation that the use embodiment of the present invention provides, the in the situation that of can treating article one instruction of patch installing function entrance place in a replacement program, realizes online patch activation, has improved the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
Fig. 2 has described the method for a kind of online patch activation of the embodiment of the present invention, and what the method was described is the process of patch installing function entrance place article one instruction for the treatment of in short instruction replacement program, and the method specifically comprises:
201, positioning patch function address and treat article one entry instruction of patch installing function.
Online patch refers to the program patch that does not need to restart program and come into force in service, is widely used in all kinds of software.When patch installing program is moved, in the address of online patch activation thread positioning patch function and this program, treat article one entry instruction of patch installing function.Wherein, online patch activation thread can be the thread of program inside, can be also one for activating the thread of the application program of patch.
202, patch function address is write to jump list, and obtain the index of this patch function address in this jump list.
Jump list is the block space that online patch activation thread is opened up in internal memory, can record patch function address.Use jump list can realize a plurality of patch functions activates simultaneously.
Obtain the index of this patch function address in this jump list.This patch function address is write after jump list, obtain index or the sequence number of this patch function address in this jump list.Can locate this position of patch function address in this jump list by this sequence number or index.
203, this jump list address is write in register.
Jump list address is write in register, and no matter where jump list is placed in internal memory, can pass through access register, the address of reading jump list, then obtain each patch function address by jump list.Wherein, the first address of jump list can be write in register, register can be base register.
204, obtain the length that this treats article one entry instruction of patch installing function, and construct a length and be less than or equal to short instruction, the sign that this short instruction comprises this register and this index that this treats article one entry instruction length of patch installing function.
In different operating system, the length that realizes the instruction of identical function is likely also different.Obtain the length that this treats article one entry instruction of patch installing function, construct a length and be less than or equal to short instruction, the sign that this short instruction comprises this register and this index that this treats article one entry instruction length of patch installing function.Wherein, when this short instruction is performed, can obtain the jump list first address in register, just can positioning patch function entrance address by first address and the index of jump list.
At jump list, only have in one, can by a base register, record the first address of this jump list, in short instruction, can write the index of patch function address in jump list.When this short instruction is performed, will go the base register of acquiescence to obtain the first address of jump list, entrance that just can positioning patch function in conjunction with this index.Wherein, jump list can be stored a certain amount of patch function address, and for example a jump list can be stored 5 or 10 patch function addresses, thereby makes the length of index shorter.
When jump list has multiple, need to by a plurality of base registers, record the first address of multiple jump lists, in short instruction, just need to write the index in the corresponding base register of jump list and this jump list of patch function address.When this short instruction is performed, by the base register of the record in short instruction, obtain the first address of jump list, the index positioning patch function entrance in conjunction with patch function address in jump list.
This short instruction has been realized long jump by base register, because this short instruction is less than or equal to, treats patch installing function entrance place article one instruction length, can guarantee to realize smoothly the activation of online patch.
205, article one entry instruction of this being treated to patch installing function replaces with this short instruction, makes this when patch installing function is called, and this short instruction is performed, and this patch function is activated.
Owing to treating in program that there are a lot of bar instructions the porch of patch installing function, if replace many instructions, so in replacement process, may occur that some instruction that need to replace is by some thread execution, may cause the unknown instruction of thread execution, cause that operating system is abnormal.
Article one instruction for the treatment of patch installing function entrance place in program is replaced with to this short instruction, the length of this short instruction is no more than the length of this article one entry instruction, in replacement process, can not have influence on other instructions so, can guarantee that online patch activates smoothly, also can guarantee operating system security operation.Wherein, the register identification in this short instruction and index are all shorter, can guarantee that the length of this short instruction is no more than the length of this article one entry instruction.
At this when patch installing function is called, the short instruction for the treatment of article one instruction of patch installing function entrance place as this is performed, this short instruction can be resolved, according to the content of resolving, remove base register access acquiescence or short instruction record, obtain the jump list first address of storing in this base register, index according to the patch function address recording in this jump list first address and this short instruction in jump list, obtain patch function entrance address, jump to patch function entrance, and carry out function patch, patch function is activated.
From the above, the method for the online patch activation that the use embodiment of the present invention provides, the in the situation that of can treating article one instruction of patch installing function entrance place in a replacement program, realizes online patch activation, has improved the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
Fig. 3 has described the method for the online patch activation of another kind of the embodiment of the present invention, and the method specifically comprises:
301, positioning patch function address and treat article one entry instruction of patch installing function.
Online patch refers to the program patch that does not need to restart program and come into force in service, is widely used in all kinds of software.When the operation until patch installing program, in the address of online patch activation thread positioning patch function and this program, treat article one entry instruction of patch installing function.Wherein, online patch activation thread can be the thread of program inside, can be also one for activating the thread of the application program of patch.
302, the jump instruction that jumps to patch function address is write to jump list, and obtain the index of this jump instruction in this jump list.
Jump list is the block space that online patch activation thread is opened up in internal memory, can store the jump instruction that jumps to patch function address.Use jump list can realize a plurality of patch functions activates simultaneously.
Obtain the index of this jump instruction in this jump list.This jump instruction is write after jump list, obtain index or the sequence number of this jump instruction in this jump list.Can locate the position of this jump instruction in this jump list by this sequence number or index.
303, this jump list address is write in register.
Jump list address is write in register, and no matter where jump list is placed in internal memory, can pass through access register, the address of reading jump list, then obtain each jump instruction by jump list.Wherein, the first address of jump list can be write in register, register can be base register.
304, obtain the length that this treats article one entry instruction of patch installing function, and construct a length and be less than or equal to short instruction, the sign that this short instruction comprises this register and this index that this treats article one entry instruction length of patch installing function.
In different operating system, the length that realizes the instruction of identical function is likely also different.Obtain the length that this treats article one entry instruction of patch installing function, construct a length and be less than or equal to short instruction, the sign that this short instruction comprises this register and this index that this treats article one entry instruction length of patch installing function.Wherein, when this short instruction is performed, can obtain the jump list first address in register, just can positioning patch function entrance address by first address and the index of jump list.
At jump list, only have in one, can by a base register, record the first address of this jump list, in short instruction, can write the index of jump instruction in jump list.When this short instruction is performed, will go the base register of acquiescence to obtain the first address of jump list, the entrance that the index in conjunction with this jump instruction in this jump list just can positioning patch function.Wherein, jump list can be stored a certain amount of jump instruction, thereby makes the length of index shorter, for example each jump list 10 instructions of record at most.When jump list has multiple, need to by a plurality of base registers, record the first address of multiple jump lists, in short instruction, just need to write the corresponding base register of jump list and the index of jump instruction in this jump list.When this short instruction is performed, by the base register of the record in short instruction, obtain the first address of jump list, in conjunction with comprising the index positioning patch function entrance of jump instruction in jump list.
This short instruction has been realized long jump by base register, because this short instruction is less than, treats patch installing function entrance place article one instruction length, can guarantee to realize smoothly the activation of online patch.
305, article one entry instruction of this being treated to patch installing function replaces with this short instruction, makes this when patch installing function is called, and this short instruction is performed, and this patch function is activated.
Owing to treating in program that there are a lot of bar instructions the porch of patch installing function, if replace many instructions, so in replacement process, may occur that some instruction that need to replace is by some thread execution, may cause the unknown instruction of thread execution, cause that operating system is abnormal.
Article one instruction for the treatment of patch installing function entrance place in program is replaced with to this short instruction, the length of this short instruction is no more than the length of this article one entry instruction, in replacement process, can not have influence on other instructions so, can guarantee that online patch activates smoothly, also can guarantee operating system security operation.Wherein, the register identification in this short instruction and index are all shorter, can guarantee that the length of this short instruction is no more than the length of this article one entry instruction.
At this when patch installing function is called, the short instruction for the treatment of article one instruction of patch installing function entrance place as this is performed, this short instruction can be resolved, according to the content of resolving, remove base register access acquiescence or short instruction record, obtain the jump list first address of storing in this base register, index according to the jump instruction of recording in this jump list first address and this short instruction in jump list, obtain jump instruction, according to jump instruction, jump to patch function entrance again, and carry out function patch, patch function is activated.
From the above, the method for the online patch activation that the use embodiment of the present invention provides, the in the situation that of can treating article one instruction of patch installing function entrance place in a replacement program, realizes online patch activation, has improved the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
Fig. 4 has described the device of a kind of online patch activation of the embodiment of the present invention, and this device specifically comprises:
Positioning unit 401, writing unit 402, acquiring unit 403, tectonic element 404, replacement unit 405, performance element 406.
Positioning unit 401, for positioning patch function address and article one entry instruction for the treatment of patch installing function.
When the operation until patch installing program, the address of positioning unit 401 positioning patch functions and the entry address for the treatment of patch installing function, to can make by follow-up operation to treat that article one entry instruction of patch installing function occurs associated with patch function address.
Writing unit 402, during for address at positioning unit 401 positioning patch functions, writes jump list by the information that comprises this patch function address, and this jump list address is write to register, and this patch function address is located by positioning unit 401.
When the address of positioning unit 401 positioning patch functions, writing unit 402 writes jump list by the information that comprises patch function address, then the address of this jump list is write to register.The information that wherein comprises patch function address can be patch function address, can be also the jump instruction that jumps to patch function address.No matter where jump list is placed in internal memory, can pass through access register, the address of reading jump list, then by jump list, obtain the entry address of each patch function.Wherein, the first address of jump list can be write in register, register can be base register.Wherein, this jump list can be used for storing the address of at least one patch function, can realize a plurality of online patches and activate simultaneously.
Acquiring unit 403, for obtaining the information that comprises patch function address that writing unit 402 writes at the index of this jump list; Obtain the length of article one entry instruction for the treatment of patch installing function of positioning unit 401 location.
Acquiring unit 403 obtains the information that comprises patch function address that writing unit 402 the writes index in this jump list.This information is write after jump list, obtain index or the sequence number of this information in this jump list.Can locate the position of this information in this jump list by this sequence number.
Acquiring unit 403 obtains the length of article one entry instruction for the treatment of patch installing function of positioning unit 401 location.In different operating system, the length that realizes the instruction of identical function is likely also different, therefore need to obtain the length that this treats article one entry instruction of patch installing function.
Tectonic element 404, for constructing a length, be less than or equal to the short instruction that this treats article one entry instruction length of patch installing function, the sign that this short instruction comprises this register and this index, this article one entry instruction for the treatment of patch installing function is located by this positioning unit.
The short instruction that can realize long jump of tectonic element 404 structures, the sign that this short instruction comprises this register and this index, can obtain the jump list first address in register by the sign of this register, just can positioning patch function entrance address by first address and this index of jump list.Wherein, the length of this short instruction is less than or equal to this article one entry instruction length for the treatment of patch installing function.
At jump list, only have in one, can by a base register, record the first address of this jump list, in short instruction, can write the index of information in jump list that comprises patch function address.When this short instruction is performed, will go the base register of acquiescence to obtain the first address of jump list, the entrance that the index in conjunction with this information in this jump list just can positioning patch function.Wherein, jump list can be stored a certain amount of information that comprises patch function address, thereby makes the length of index shorter.When jump list has multiple, the first address of multiple jump lists need to be recorded by a plurality of base registers, the index of the information that just need to write the corresponding base register of jump list and comprise patch function address in short instruction in this jump list.When this short instruction is performed, by the base register of the record in short instruction, obtain the first address of jump list, the index positioning patch function entrance in conjunction with the information that comprises patch function address in jump list.
This short instruction has been realized long jump by base register, because this short instruction is less than, treats patch installing function entrance place article one instruction length, can guarantee to realize smoothly the activation of online patch.
Replacement unit 405, for treating this article one instruction of patch installing function entrance position replaces with the short instruction of tectonic element 404 structures.
Owing to treating that there are a lot of bar instructions at patch installing function entrance place, if need to replace many instructions, so in replacement process, may occur that some instruction that need to replace is by some thread execution, may cause the unknown instruction of thread execution, cause that operating system is abnormal.
Replacement unit 405 replaces with article one instruction for the treatment of patch installing function entrance place the short instruction of tectonic element 404 structures, the length of this short instruction is no more than the length of this article one instruction, in replacement process, can not have influence on other instructions so, can guarantee that online patch activates smoothly, also can guarantee operating system security operation.
Performance element 406, at this when patch installing function is called, carry out the short instruction that replacement unit 405 is replaced, activate patch function.
At this when patch installing function is called, the short instruction for the treatment of article one instruction of patch installing function entrance place as this is performed, this short instruction can be resolved, according to the content of resolving, remove base register access acquiescence or short instruction record, obtain the jump list first address of storing in this base register, index according to the information that comprises patch function address recording in this jump list first address and this short instruction in jump list, obtain patch function entrance address, jump to patch function entrance, and carry out function patch, patch function is activated.
From the above, use the device of the online patch activation that the embodiment of the present invention provides, can in the situation that only replacing program legacy version and treating article one instruction of patch installing function entrance place, realize online patch activation, improved the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
Fig. 5 has described the device of a kind of online patch activation of the embodiment of the present invention, and this device specifically comprises:
Positioning unit 501, the first writing units 502, acquiring unit 503, tectonic element 504, replacement unit 505, performance element 506.
Positioning unit 501, for positioning patch function address and article one entry instruction for the treatment of patch installing function.
When the operation until patch installing program, the address of positioning unit 501 positioning patch functions and the entry address for the treatment of patch installing function, to can make by follow-up operation to treat that article one entry instruction of patch installing function occurs associated with patch function address.
The first writing unit 502, during for address at positioning unit 501 positioning patch functions, writes jump list by patch function address, and this jump list address is write to register.
When the address of positioning unit 501 positioning patch functions, the first writing unit 502 writes jump list by this patch function address, then the address of this jump list is write to register.Wherein, no matter where jump list is placed in internal memory, can pass through access register, the address of reading jump list, then by jump list, obtain the entry address of each patch function.Wherein, the first address of jump list can be write in register, register can be base register.Wherein, this jump list can be used for storing the address of at least one patch function, can realize a plurality of online patches and activate simultaneously.
Acquiring unit 503, for obtaining this patch function address that the first writing unit 502 writes at the index of this jump list; Obtain the length of article one entry instruction for the treatment of patch installing function of positioning unit 501 location.
The patch function address of each program can determine that at the index of jump list each patch function address is in the position of this jump list, by the first address of this jump list and the index of each patch function address, can determine the particular location of each patch function in internal memory.
Obtain patch function address that the first writing unit 502 the writes index in this jump list.This patch function address is write after jump list, obtain index or the sequence number of this patch function address in this jump list.Can locate this position of patch function address in this jump list by this sequence number.
Obtain the length of article one entry instruction for the treatment of patch installing function of positioning unit 501 location.In different operating system, the length that realizes the instruction of identical function is likely also different, therefore need to obtain the length that this treats article one entry instruction of patch installing function.
Tectonic element 504, for constructing a length, be less than or equal to the short instruction that this treats article one entry instruction length of patch installing function, the sign that this short instruction comprises this register and this index, this article one entry instruction for the treatment of patch installing function is located by this positioning unit.
The short instruction that can realize long jump of tectonic element 504 structures, the sign that this short instruction comprises this register and this index, can obtain the jump list first address in register by the sign of this register, just can positioning patch function entrance address by first address and this index of jump list.Wherein, the length of this short instruction is less than or equal to this article one entry instruction length for the treatment of patch installing function.
At jump list, only have in one, can by a base register, record the first address of this jump list, in short instruction, can write the index of patch function address in jump list.When this short instruction is performed, will go the base register of acquiescence to obtain the first address of jump list, the entrance that the index in conjunction with patch function address in this jump list just can positioning patch function.Wherein, jump list can be stored a certain amount of patch function address, thereby makes the length of index shorter.When jump list has multiple, need to by a plurality of base registers, record the first address of multiple jump lists, in short instruction, just need to write the corresponding base register of jump list and the index of patch function address in this jump list.When this short instruction is performed, by the base register of the record in short instruction, obtain the first address of jump list, the index positioning patch function entrance in conjunction with patch function address in jump list.
This short instruction has been realized long jump by base register, because this short instruction is less than or equal to, treats patch installing function entrance place article one instruction length, can guarantee to realize smoothly the activation of online patch.
Replacement unit 505, for treating this article one instruction of patch installing function entrance position replaces with the short instruction of tectonic element 504 structures.
Owing to treating that there are a lot of bar instructions at patch installing function entrance place, if need to replace many instructions, so in replacement process, may occur that some instruction that need to replace is by some thread execution, may cause the unknown instruction of thread execution, cause that operating system is abnormal.
Replacement unit 505, article one instruction for the treatment of patch installing function entrance place is replaced with to the short instruction of tectonic element 504 structures, the length of this short instruction is no more than the length of this article one instruction, in replacement process, can not have influence on other instructions so, can guarantee that online patch activates smoothly, also can guarantee operating system security operation.
Performance element 506, at this when patch installing function is called, carry out the short instruction that replacement unit 505 is replaced, activate patch function.
At this when patch installing function is called, the short instruction for the treatment of article one instruction of patch installing function entrance place as this is performed, this short instruction can be resolved, according to the content of resolving, remove base register access acquiescence or short instruction record, obtain the jump list first address of storing in this base register, index according to the patch function address recording in this jump list first address and this short instruction in jump list, obtain patch function entrance address, jump to patch function entrance, and carry out function patch, patch function is activated.
From the above, the device of the online patch activation that the use embodiment of the present invention provides can be realized online patch activation in the situation that a replacement program is treated article one instruction of patch installing function entrance place, has improved the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
Fig. 6 has described the device of a kind of online patch activation of the embodiment of the present invention, and this device specifically comprises:
Positioning unit 601, the second writing unit 602, acquiring unit 603, tectonic element 604, replacement unit 605, jump-transfer unit 606.
Positioning unit 601, for positioning patch function address and article one entry instruction for the treatment of patch installing function.
When the operation until patch installing program, the address of positioning unit 601 positioning patch functions and the entry address for the treatment of patch installing function, to can make by follow-up operation to treat that article one entry instruction of patch installing function occurs associated with patch function address.
The second writing unit 602, during for address at positioning unit 601 positioning patch functions, writes jump list by the jump instruction that jumps to patch function address, and this jump list address is write to register.
When the address of positioning unit 601 positioning patch functions, the first writing unit 602 writes jump list by the jump instruction that jumps to patch function address, then the address of this jump list is write to register.Wherein, no matter where jump list is placed in internal memory, can pass through access register, the address of reading jump list, then obtain each jump instruction by jump list.Wherein, the first address of jump list can be write in register, register can be base register.Wherein, this jump list can be used for storing at least one jump instruction, can realize a plurality of online patches and activate simultaneously.
Acquiring unit 603, for obtaining the jump instruction that jumps to this patch function address that the second writing unit 602 writes at the index of this jump list; Obtain the length of article one entry instruction for the treatment of patch installing function of positioning unit 601 location.
Obtain jump instruction that the second writing unit 602 the writes index in this jump list.This jump instruction is write after jump list, obtain index or the sequence number of this jump instruction in this jump list.Can locate the position of this jump instruction in this jump list by this sequence number or this index.
Obtain the length of article one entry instruction for the treatment of patch installing function of positioning unit 601 location.In different operating system, the length that realizes the instruction of identical function is likely also different, therefore need to obtain the length that this treats article one entry instruction of patch installing function.
Tectonic element 604, for constructing a length, be less than or equal to the short instruction that this treats article one entry instruction length of patch installing function, the sign that this short instruction comprises this register and this index, this article one entry instruction for the treatment of patch installing function is located by this positioning unit.
The short instruction that can realize long jump of tectonic element 604 structures, the sign that this short instruction comprises this register and this index, can obtain the jump list first address in register by the sign of this register, first address and this index by jump list just can be located jump instruction, then by the address of jump instruction positioning patch function.Wherein, the length of this short instruction is less than or equal to this article one entry instruction length for the treatment of patch installing function.
At jump list, only have in one, can by a base register, record the first address of this jump list, in short instruction, can write the index of jump instruction in jump list that jumps to patch function address.When this short instruction is performed, will go the base register of acquiescence to obtain the first address of jump list, the entrance that the index in conjunction with jump instruction in this jump list just can positioning patch function.Wherein, jump list can be stored a certain amount of jump instruction, thereby makes the length of index shorter.When jump list has multiple, need to by a plurality of base registers, record the first address of multiple jump lists, in short instruction, just need to write the corresponding base register of jump list and the index of jump instruction in this jump list.When this short instruction is performed, by the base register of the record in short instruction, obtain the first address of jump list, the index positioning patch function entrance in conjunction with jump instruction in jump list.
This short instruction has been realized long jump by base register, because this short instruction is less than or equal to, treats patch installing function entrance place article one instruction length, can guarantee to realize smoothly the activation of online patch.
Replacement unit 605, for treating this article one instruction of patch installing function entrance position replaces with the short instruction of tectonic element 604 structures.
Owing to treating that there are a lot of bar instructions at patch installing function entrance place, if need to replace many instructions, so in replacement process, may occur that some instruction that need to replace is by some thread execution, may cause the unknown instruction of thread execution, cause that operating system is abnormal.
Replacement unit 605 replaces with article one instruction for the treatment of patch installing function entrance place the short instruction of tectonic element 604 structures, the length of this short instruction is no more than the length of this article one instruction, in replacement process, can not have influence on other instructions so, can guarantee that online patch activates smoothly, also can guarantee operating system security operation.
Performance element 606, at this when patch installing function is called, carry out the short instruction that replacement unit 605 is replaced, activate patch function.
At this when patch installing function is called, the short instruction for the treatment of article one instruction of patch installing function entrance place as this is performed, this short instruction can be resolved, according to the content of resolving, remove base register access acquiescence or short instruction record, obtain the jump list first address of storing in this base register, index according to the jump instruction of recording in this jump list first address and this short instruction in jump list, obtain patch function entrance address, jump to patch function entrance, and carry out function patch, patch function is activated.
From the above, the device of the online patch activation that the use embodiment of the present invention provides can be realized online patch activation in the situation that a replacement program is treated article one instruction of patch installing function entrance place, has improved the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
Fig. 7 has described the structure of the operation driving arrangement that another embodiment of the present invention provides, and comprises for example CPU of at least one processor 701(), storer 702, internal memory 703 and at least one communication bus 704, for realizing the connection communication between these devices.Processor 701 for example, for the executable module of execute store 702 storages, computer program.Storer 702 may comprise high-speed random access memory (RAM:Random Access Memory), also may also comprise non-unsettled storer (non-volatile memory), for example at least one magnetic disk memory.By the address at least one processor access internal memory.
In some embodiments, storer 702 has been stored program 7021, and program 7021 can be carried out by processor 701, and this program comprises: positioning patch function address and article one entry instruction for the treatment of patch installing function; The information that comprises patch function address is write to jump list, and obtain the index of this information in this jump list; This jump list address is write to register; Obtain the length that this treats article one entry instruction of patch installing function, and construct a length and be less than or equal to the short instruction that this treats article one entry instruction length of patch installing function, the sign that this short instruction comprises this register and this index; Article one entry instruction that this is treated to patch installing function replaces with this short instruction, makes this when patch installing function is called, and this short instruction is performed, and this patch function is activated.Concrete implementation step is identical with the embodiment shown in Fig. 1, repeats no more herein.
The above technical scheme providing from the embodiment of the present invention can be found out, the device of the online patch activation that the use embodiment of the present invention provides, can in the situation that a replacement program is treated article one instruction of patch installing function entrance place, realize online patch activation, improve the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
Fig. 8 has described the structure of the operation driving arrangement that another embodiment of the present invention provides, and comprises for example CPU of at least one processor 801(), storer 802, internal memory 803 and at least one communication bus 804, for realizing the connection communication between these devices.Processor 801 for example, for the executable module of execute store 802 storages, computer program.Storer 802 may comprise high-speed random access memory (RAM:Random Access Memory), also may also comprise non-unsettled storer (non-volatile memory), for example at least one magnetic disk memory.By the address at least one processor access internal memory.
In some embodiments, storer 802 has been stored program 8021, and program 8021 can be carried out by processor 801, and this program comprises: positioning patch function address and article one entry instruction for the treatment of patch installing function; Patch function address is write to jump list, and obtain the index of this patch function address in this jump list; This jump list address is write to register; Obtain the length that this treats article one entry instruction of patch installing function, and construct a length and be less than or equal to the short instruction that this treats article one entry instruction length of patch installing function, the sign that this short instruction comprises this register and this index; Article one entry instruction that this is treated to patch installing function replaces with this short instruction, makes this when patch installing function is called, and this short instruction is performed, and this patch function is activated.Concrete implementation step is identical with the embodiment shown in Fig. 2, repeats no more herein.
The above technical scheme providing from the embodiment of the present invention can be found out, the device of the online patch activation that the use embodiment of the present invention provides, can in the situation that a replacement program is treated article one instruction of patch installing function entrance place, realize online patch activation, improve the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
Fig. 9 has described the structure of the operation driving arrangement that another embodiment of the present invention provides, and comprises for example CPU of at least one processor 901(), storer 902, interior 903, and at least one communication bus 904, for realizing the connection communication between these devices.Processor 901 for example, for the executable module of execute store 902 storages, computer program.Storer 902 may comprise high-speed random access memory (RAM:Random Access Memory), also may also comprise non-unsettled storer (non-volatile memory), for example at least one magnetic disk memory.By the address at least one processor access internal memory.
In some embodiments, storer 902 has been stored program 9021, and program 9021 can be carried out by processor 901, and this program comprises: positioning patch function address and article one entry instruction for the treatment of patch installing function; The jump instruction that jumps to patch function address is write to jump list, and obtain the index of this jump instruction in this jump list; This jump list address is write to register; Obtain the length that this treats article one entry instruction of patch installing function, and construct a length and be less than or equal to the short instruction that this treats article one entry instruction length of patch installing function, the sign that this short instruction comprises this register and this index; Article one entry instruction that this is treated to patch installing function replaces with this short instruction, makes this when patch installing function is called, and this short instruction is performed, and this patch function is activated.Concrete implementation step is identical with the embodiment shown in Fig. 3, repeats no more herein.
The above technical scheme providing from the embodiment of the present invention can be found out, the device of the online patch activation that the use embodiment of the present invention provides, can in the situation that a replacement program is treated article one instruction of patch installing function entrance place, realize online patch activation, improve the security of operating system; Further, because the embodiment of the present invention provides jump list, in jump list, can record the information of a plurality of patch functions, thereby realize a plurality of online patches, upgrade simultaneously, improve user's experience.
It should be noted that, for aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
The contents such as the information interaction between said apparatus and intrasystem each module, implementation, due to the inventive method embodiment based on same design, particular content can, referring to the narration in the inventive method embodiment, repeat no more herein.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, above-mentioned program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, above-mentioned storage medium can be magnetic disc, CD, read-only store-memory body (ROM:Read-Only Memory) or random store-memory body (RAM:Random Access Memory) etc.
Applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and thought thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (7)

1. a method for online patch activation, is characterized in that, comprising:
Positioning patch function address and article one entry instruction for the treatment of patch installing function;
The information that comprises patch function address is write to jump list, and obtain the index of described information in described jump list;
Described jump list address is write to register;
Described in obtaining, treat the length of article one entry instruction of patch installing function, and construct the short instruction that a length is treated article one entry instruction length of patch installing function described in being less than or equal to, the sign that described short instruction comprises described register and described index;
By described, treat that article one entry instruction of patch installing function replaces with described short instruction, described in making, when patch installing function is called, described short instruction is performed, and described patch function is activated.
2. the method for online patch activation as claimed in claim 1, is characterized in that, describedly the information that comprises patch function address is write to jump list comprises:
Described patch function address is write to jump list;
Obtaining the index of described information in described jump list comprises:
Obtain the index of described patch function address in described jump list.
3. the method for online patch activation as claimed in claim 1, is characterized in that, describedly the information that comprises patch function address is write to jump list comprises:
The jump instruction that jumps to the address of described patch function is write to jump list;
Obtaining the index of described information in described jump list comprises:
Obtain the index of described jump instruction in described jump list.
4. the method for the online patch activation as described in as arbitrary in claims 1 to 3, is characterized in that, described jump list is for storing at least one information that comprises patch function address.
5. a device for online patch activation, is characterized in that, comprising:
Positioning unit, for positioning patch function address and article one entry instruction for the treatment of patch installing function;
Writing unit, writes jump list by the information that comprises described patch function address, and described jump list address is write to register, and described patch function address is located by described positioning unit;
Acquiring unit, for obtaining information that said write unit writes at the index of described jump list; Obtain the length of article one entry instruction for the treatment of patch installing function of described positioning unit location;
Tectonic element, for constructing a length, treat the short instruction of article one entry instruction length of patch installing function described in being less than or equal to, the sign that described short instruction comprises described register and described index, described in treat that article one entry instruction of patch installing function located by described positioning unit;
Replacement unit, for treating that by described article one entry instruction of patch installing function replaces with the short instruction of described tectonic element structure;
Performance element, for carrying out the short instruction that described replacement unit is replaced described when patch installing function is called, activates described patch function.
6. the device of online patch activation according to claim 5, is characterized in that, said write unit specifically for:
The address of the described patch function of location unit location is write to jump list;
Described acquiring unit specifically for:
Obtain the index of described patch function customization in described jump list.
7. the device of online patch activation according to claim 5, is characterized in that, said write unit specifically for:
The jump instruction that can jump to the address of patch function writes jump list;
Described acquiring unit specifically for:
Obtain the index of described jump instruction customization in described jump list.
CN201310508687.5A 2013-10-24 2013-10-24 Method and device for online patch activation Active CN103530184B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610865260.4A CN106484369B (en) 2013-10-24 2013-10-24 A kind of method and device of online patch activation
CN201310508687.5A CN103530184B (en) 2013-10-24 2013-10-24 Method and device for online patch activation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310508687.5A CN103530184B (en) 2013-10-24 2013-10-24 Method and device for online patch activation

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201610865260.4A Division CN106484369B (en) 2013-10-24 2013-10-24 A kind of method and device of online patch activation

Publications (2)

Publication Number Publication Date
CN103530184A true CN103530184A (en) 2014-01-22
CN103530184B CN103530184B (en) 2017-04-12

Family

ID=49932222

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201310508687.5A Active CN103530184B (en) 2013-10-24 2013-10-24 Method and device for online patch activation
CN201610865260.4A Active CN106484369B (en) 2013-10-24 2013-10-24 A kind of method and device of online patch activation

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201610865260.4A Active CN106484369B (en) 2013-10-24 2013-10-24 A kind of method and device of online patch activation

Country Status (1)

Country Link
CN (2) CN103530184B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809018A (en) * 2015-05-18 2015-07-29 烽火通信科技股份有限公司 Method and system for injecting hotfix into software of embedded system
CN105607937A (en) * 2015-12-25 2016-05-25 京信通信技术(广州)有限公司 Hot patching method and equipment
CN105630491A (en) * 2015-12-18 2016-06-01 Tcl集团股份有限公司 Method and device for changing functions of program
WO2017096917A1 (en) * 2015-12-11 2017-06-15 中兴通讯股份有限公司 Method and apparatus for injecting hot patch
CN107193538A (en) * 2016-03-14 2017-09-22 无锡天脉聚源传媒科技有限公司 A kind of improved method and device for hooking up technology
CN107943517A (en) * 2017-10-26 2018-04-20 北京奇虎科技有限公司 The hook method and device of terminal applies
WO2018086313A1 (en) * 2016-11-10 2018-05-17 华为技术有限公司 Method for acquiring address of function, and electronic device
CN110928570A (en) * 2019-11-27 2020-03-27 北京知道创宇信息技术股份有限公司 Firmware upgrading method and device and readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019047142A1 (en) * 2017-09-08 2019-03-14 深圳市汇顶科技股份有限公司 Method for program patching, device, micro control unit, and terminal device
CN111381905B (en) * 2018-12-27 2023-07-18 北京华为数字技术有限公司 Program processing method, device and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1373872A (en) * 1999-09-14 2002-10-09 高通股份有限公司 Method and apparats for modifying microinstructions in static memory device
WO2003009136A1 (en) * 2001-07-16 2003-01-30 Yuqing Ren Embedded software update system
US20070006201A1 (en) * 2005-06-21 2007-01-04 International Business Machines Corporation Method and system for generating and applying patches to a computer program concurrently with its execution
CN101004681A (en) * 2006-12-22 2007-07-25 中兴通讯股份有限公司 Method for implementing long jumping dynamic patch in embedded system
CN101482834A (en) * 2009-01-20 2009-07-15 华为技术有限公司 On-line patch activation method, communication device and system
CN101706734A (en) * 2009-11-10 2010-05-12 中国科学院计算技术研究所 Method and system thereof for translating indirect jump instruction in binary translation
CN102156661A (en) * 2010-02-11 2011-08-17 华为技术有限公司 Method, device and system for online activating patches
CN103218262A (en) * 2010-02-11 2013-07-24 华为技术有限公司 Activation method, activation device and activation system of online patches

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609241B (en) * 2012-01-19 2018-04-27 中兴通讯股份有限公司 hot patch method and device
CN102982277A (en) * 2012-12-24 2013-03-20 广东威创视讯科技股份有限公司 Method and system achieving embedded system software patching

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1373872A (en) * 1999-09-14 2002-10-09 高通股份有限公司 Method and apparats for modifying microinstructions in static memory device
WO2003009136A1 (en) * 2001-07-16 2003-01-30 Yuqing Ren Embedded software update system
US20070006201A1 (en) * 2005-06-21 2007-01-04 International Business Machines Corporation Method and system for generating and applying patches to a computer program concurrently with its execution
CN101004681A (en) * 2006-12-22 2007-07-25 中兴通讯股份有限公司 Method for implementing long jumping dynamic patch in embedded system
CN101482834A (en) * 2009-01-20 2009-07-15 华为技术有限公司 On-line patch activation method, communication device and system
CN101706734A (en) * 2009-11-10 2010-05-12 中国科学院计算技术研究所 Method and system thereof for translating indirect jump instruction in binary translation
CN102156661A (en) * 2010-02-11 2011-08-17 华为技术有限公司 Method, device and system for online activating patches
CN103218262A (en) * 2010-02-11 2013-07-24 华为技术有限公司 Activation method, activation device and activation system of online patches

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809018A (en) * 2015-05-18 2015-07-29 烽火通信科技股份有限公司 Method and system for injecting hotfix into software of embedded system
CN104809018B (en) * 2015-05-18 2018-01-02 烽火通信科技股份有限公司 A kind of method and system of built-in system software injection hot patch
WO2017096917A1 (en) * 2015-12-11 2017-06-15 中兴通讯股份有限公司 Method and apparatus for injecting hot patch
CN105630491A (en) * 2015-12-18 2016-06-01 Tcl集团股份有限公司 Method and device for changing functions of program
CN105607937A (en) * 2015-12-25 2016-05-25 京信通信技术(广州)有限公司 Hot patching method and equipment
CN105607937B (en) * 2015-12-25 2019-01-18 京信通信系统(中国)有限公司 A kind of hot patch method and apparatus
CN107193538A (en) * 2016-03-14 2017-09-22 无锡天脉聚源传媒科技有限公司 A kind of improved method and device for hooking up technology
WO2018086313A1 (en) * 2016-11-10 2018-05-17 华为技术有限公司 Method for acquiring address of function, and electronic device
CN107943517A (en) * 2017-10-26 2018-04-20 北京奇虎科技有限公司 The hook method and device of terminal applies
CN110928570A (en) * 2019-11-27 2020-03-27 北京知道创宇信息技术股份有限公司 Firmware upgrading method and device and readable storage medium

Also Published As

Publication number Publication date
CN106484369B (en) 2019-11-29
CN103530184B (en) 2017-04-12
CN106484369A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN103530184A (en) Method and device for online patch activation
CN103744709B (en) patch loading method and device
CN102819442B (en) A kind of method and system of embedded device program burn writing
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN102473223A (en) Information processing device and information processing method
US9715398B2 (en) Program code loading method of application and computing system using the same
US20180157605A1 (en) Configuration of a memory controller for copy-on-write
CN105988875B (en) Method and device for running process
US9037773B2 (en) Methods for processing and addressing data between volatile memory and non-volatile memory in an electronic apparatus
CN104049947A (en) Dynamic Rename Based Register Reconfiguration Of A Vector Register File
CN103514004A (en) Method and device for managing system environment under Windows system
JP5225054B2 (en) IC card
US11675628B2 (en) Methods for operating storage driver in container environment and storage driver apparatuses
US20140025870A1 (en) Computer reprogramming method, data storage medium and motor vehicle computer
CN112199116B (en) Operand stack register identification method, device, equipment and storage medium
US20140075092A1 (en) Simulating eeprom in virtual distributed switches
CN114238934A (en) Equipment information acquisition method, device, equipment and medium
TWI614684B (en) Field firmware upgrading method and computer-readable medium
CN104765626A (en) Firmware program writing method and device
CN108121667B (en) Data erasing method and device and computer storage medium
CN102629259A (en) Read-only file system setting up method in embedded system, device and embedded system
CN110851181B (en) Data processing method and device and computing equipment
US20150127888A1 (en) Data Storage Device and Error Correction Method Thereof
US10977215B2 (en) System and method for storage optimization in a de-duplication system
WO2017019006A1 (en) Component compatibility verification

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant