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

Method and device for online patch activation Download PDF

Info

Publication number
CN103530184B
CN103530184B CN201310508687.5A CN201310508687A CN103530184B CN 103530184 B CN103530184 B CN 103530184B CN 201310508687 A CN201310508687 A CN 201310508687A CN 103530184 B CN103530184 B CN 103530184B
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.)
Active
Application number
CN201310508687.5A
Other languages
Chinese (zh)
Other versions
CN103530184A (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

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 and device of online patch activation
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method and apparatus of online patch activation.
Background technology
In an operating system, jump instruction can perform flow process, such as online patch, the purpose of online patch with reprogramming It is in the case where program legacy version is not lost using the function that patch installing is treated in patch function replacement program legacy version, for repairing The defect of multiple program legacy version or the function of enhancing legacy version.Its ultimate principle is patch installing function will to be treated in program legacy version Instruction at entry position replaces with jump instruction, when operating system goes to program legacy version whne patch installing function entrance, Jump instruction will cause operating system to jump to patch function porch, perform patch function.
At present, realizing the method for online patch activation has a lot, wherein, a kind of concrete implementation method is long jump side Method, long jump method can be realized by depositor, first destination address be write into depositor, in then branching to depositor Destination address performs new instruction, but the long jump method needs a plurality of instruction just can complete to redirect.
From the above it can be seen that realizing online patch activation using long jump method, replacement program legacy version is needed to treat patch installing letter The a plurality of instruction of number porch, if some threads or will perform these parts for being replaced instruction when instruction is replaced Or all, be then likely to result in thread and perform unknown instruction, cause operating system exception.
The content of the invention
A kind of method and apparatus of online patch activation is embodiments provided, can be in the mistake for activating online patch The safety of operating system is improved in journey.
The first aspect of the embodiment of the present invention discloses a kind of method of online patch activation, and methods described includes:
Positioning patch function address and first entry instruction for treating patch installing function;By the letter comprising patch function address Breath write jump list, and obtain index of the described information in the jump list;Table address write depositor is redirected by described;Obtain The length of first entry instruction for treating patch installing function is taken, and constructs a length and treat patch installing less than or equal to described The short instruction of first entry instruction length of function, mark of the short instruction comprising the depositor and the index;Will First entry instruction for treating patch installing function replaces with the short instruction so that described to treat that patch installing function is called When, the short instruction is performed, and the patch function is activated.
With reference in a first aspect, in the first implementation of first aspect, the letter that patch function address will be included Breath write jump list includes:
The patch function address is write into jump list;
Obtaining index of the described information in the jump list includes:
Obtain index of the patch function address in the jump list.
With reference in a first aspect, in second implementation of first aspect, the letter that patch function address will be included Breath write jump list includes:
Will jump to the jump instruction write jump list of the address of the patch function;
Obtaining index of the described information in the jump list includes:
Obtain index of the jump instruction in the jump list.
With reference to the first implementation or second implementation of first aspect of first aspect or first aspect, In the third implementation of one side, the jump list is used for information of the storage at least one comprising 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 includes:
Positioning unit, for positioning patch function address and first entry instruction for treating patch installing function;Writing unit, By the write jump list of the information comprising the patch function address, by described table address write depositor, the patch letter are redirected Number address is positioned by the positioning unit;Acquiring unit, for obtaining the information of said write unit write in the jump Turn the index in table;Obtain the length of first entry instruction for treating patch installing function of the positioning unit positioning;Construction is single Unit, for the short instruction that one length of construction is less than or equal to the first entry instruction length for treating patch installing function, institute Mark of the short instruction comprising the depositor and the index are stated, first entry instruction for treating patch installing function is by institute State positioning unit positioning;Replacement unit, for first entry instruction for treating patch installing function to be replaced with into the structure Make the short instruction of unit construction;Performance element, when patch installing function is called, performs what replacement unit was replaced for described Short instruction, activates the patch function.
With reference to second aspect, in the first implementation of second aspect, said write unit specifically for:
The address write jump list of the patch function that positioning units are positioned;
The acquiring unit specifically for:
Obtain index of the patch function customization in the jump list.
With reference to second aspect, in second implementation of second aspect, said write unit specifically for:
The jump instruction that the address of patch function can be jumped to is write into jump list;
The acquiring unit specifically for:
Obtain index of the jump instruction customization in the jump list.
From the above it can be seen that using the method and apparatus of online patch activation provided in an embodiment of the present invention, can only replace In the case that program legacy version treats at patch installing function entrance first instruction, online patch activation is realized, improve operation system The safety of system;Further, due to embodiments providing jump list, multiple patch functions can be recorded in jump list Information, so as to realize that multiple online patches update simultaneously, improves Consumer's Experience.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without having to pay creative labor, can be obtaining it according to these accompanying drawings His accompanying drawing.
The method flow diagram of the online patch activation that Fig. 1 is provided for one embodiment of the invention;
The method flow diagram of the online patch activation that Fig. 2 is provided for another embodiment of the present invention;
The method flow diagram of the online patch activation that Fig. 3 is provided for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 4 is provided for one embodiment of the invention;
The structure drawing of device of the online patch activation that Fig. 5 is provided for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 6 is provided for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 7 is provided for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 8 is provided for another embodiment of the present invention;
The structure drawing of device of the online patch activation that Fig. 9 is provided for another embodiment of the present invention.
Specific 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 carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The method that Fig. 1 describes a kind of online patch activation of the embodiment of the present invention, the method describes short instruction and replaces Change in program and treat the process of first instruction at patch installing function entrance, the method is specifically included:
101st, positioning patch function address and first entry instruction of patch installing function is treated.
Online patch refers to the patch for not needing reset routine in program operation and coming into force, and is widely used in all kinds of softwares. When patch installing program is run, in online patch activation thread positioning patch function address and the program patch installing function is treated First entry instruction.Wherein, online patch activation thread can be that thread inside program, or one are used to swash The thread of the application program of patch living.
102nd, by the write jump list of the information comprising patch function address, and rope of the information in the jump list is obtained Draw.
Jump list is the block space that online patch activation thread is opened up in internal memory, can be recorded comprising patch function ground The information of location.Wherein, the information comprising patch function address can be patch function address, it is also possible to jump to patch function ground The jump instruction of location.Can realize that multiple patch functions are activated simultaneously using jump list.
Obtain index of the information in the jump list.After by the write jump list of the information comprising patch function address, obtain Take index or sequence number of the information in the jump list.The information can be positioned in the jump list by the sequence number or index In position.
103rd, this is redirected in table address write depositor.
During table address write depositor will be redirected, no matter where jump list is placed in internal memory, can be by visiting Depositor is asked, the address of jump list is read, then each information comprising patch function address is obtained by jump list.Wherein, may be used So that the first address of jump list is write in depositor, depositor can be base register.
104th, the length of first entry instruction for treating patch installing function is obtained, and constructs a length and be less than or equal to This treats the short instruction of first entry instruction length of patch installing function, mark of the short instruction comprising the depositor and the rope Draw.
In different operating system, the length of the instruction of identical function is realized it could also be possible that different.Obtain this to wait to beat The length of first entry instruction of patch function, one length of construction treats that first of patch installing function enters less than or equal to this The short instruction of mouth command length, mark of the short instruction comprising the depositor and the index.Wherein, it is performed in the short instruction When, the jump list first address in depositor can be obtained, just can be with positioning patch function by the first address and index of jump list Entry address.
When jump list only has one, the first address of the jump list can be recorded by a base register, Index of the information comprising patch function address in jump list can be write in short instruction.When the short instruction is performed, will Go the base register given tacit consent to obtain the first address of jump list, with reference to index of the information in the jump list benefit can be just positioned The entrance of fourth function.Wherein, jump list can store a certain amount of information comprising patch function address, and such as jump list can be deposited 10 information of storage, so that the length of index is shorter.
When jump list there are multiple, the first address that multiple jump lists are recorded by multiple base registers is needed, short The base register being accomplished by instruction corresponding to write jump list and the information comprising patch function address are in the jump list Index.When the short instruction is performed, the first address of jump list, knot are obtained by the base register of the record in short instruction Close index positioning patch function entrance of the information comprising patch function address in jump list.
The short instruction realizes long jump by base register, and because the short instruction is less than or equal to patch installing function is treated The command length of porch first, it is ensured that smoothly realize the activation of online patch.
105th, first entry instruction for treating patch installing function is replaced with into the short instruction so that this treats patch installing function When called, the short instruction is performed, and the patch function is activated.
Because the porch that patch installing function is treated in program has many bars to instruct, if to replace a plurality of instruction, then In replacement process, in fact it could happen that some need the instruction replaced being performed by some threads, then be likely to result in thread execution unknown Instruction, causes operating system exception.
To treat that first instruction at patch installing function entrance replaces with the short instruction in program, the length of the short instruction is not More than the length of first entry instruction, then other instructions are not interfered with replacement process, it is ensured that online to mend Fourth is smoothly activated, it is also ensured that operating system security runs.Wherein, in the short instruction register identification and index all compared with It is short, it is ensured that the length of of length no more than first entry instruction of the short instruction.
At this when patch installing function is called, as this short instruction quilt of first instruction at patch installing function entrance is treated Perform, the short instruction can be resolved, gone to access acquiescence or short instruction record base register according to the content of parsing, obtain The jump list first address stored in the base register is taken, according to recording in the jump list first address and the short instruction comprising benefit Index of the information of fourth function address in jump list, obtains patch function entry address, jumps to patch function entrance, and holds Line function patch so that patch function is activated.
From the above it can be seen that using the method for online patch activation provided in an embodiment of the present invention, can be in only replacement program In the case for the treatment of at patch installing function entrance first instruction, online patch activation is realized, improve the safety of operating system; Further, due to embodiments providing jump list, the information of multiple patch functions can be recorded in jump list, so as to reality Existing multiple online patches update simultaneously, improve Consumer's Experience.
The method that Fig. 2 describes a kind of online patch activation of the embodiment of the present invention, the method describes short instruction and replaces Change in program and treat the process of first instruction at patch installing function entrance, the method is specifically included:
201st, positioning patch function address and first entry instruction of patch installing function is treated.
Online patch refers to the patch for not needing reset routine in program operation and coming into force, and is widely used in all kinds of softwares. When patch installing program is run, in the address of online patch activation thread positioning patch function and the program patch installing letter is treated First several entry instructions.Wherein, online patch activation thread can be that thread inside program, or one are used for The thread of the application program of activation patch.
202nd, patch function address is write into jump list, and obtains the index of the patch function address in the jump list.
Jump list is the block space that online patch activation thread is opened up in internal memory, can record patch function address. Can realize that multiple patch functions are activated simultaneously using jump list.
Obtain the index of the patch function address in the jump list.After by the patch function address write jump list, obtain Take index or sequence number of the patch function address in the jump list.The patch function can be positioned by the sequence number or index Position of the address in the jump list.
203rd, this is redirected in table address write depositor.
During table address write depositor will be redirected, no matter where jump list is placed in internal memory, can be by visiting Depositor is asked, the address of jump list is read, then each patch function address is obtained by jump list.Wherein it is possible to by jump list First address write depositor in, depositor can be base register.
204th, the length of first entry instruction for treating patch installing function is obtained, and constructs a length and be less than or equal to This treats the short instruction of first entry instruction length of patch installing function, mark of the short instruction comprising the depositor and the rope Draw.
In different operating system, the length of the instruction of identical function is realized it could also be possible that different.Obtain this to wait to beat The length of first entry instruction of patch function, one length of construction treats that first of patch installing function enters less than or equal to this The short instruction of mouth command length, mark of the short instruction comprising the depositor and the index.Wherein, it is performed in the short instruction When, the jump list first address in depositor can be obtained, just can be with positioning patch function by the first address and index of jump list Entry address.
When jump list only has one, the first address of the jump list can be recorded by a base register, Index of the patch function address in jump list can be write in short instruction.When the short instruction is performed, the base given tacit consent to will be removed Location depositor obtains the first address of jump list, just can be with the entrance of positioning patch function with reference to the index.Wherein, jump list can be deposited A certain amount of patch function address is stored up, such as one jump list can store 5 or 10 patch function addresses, so that rope The length drawn is shorter.
When jump list there are multiple, the first address that multiple jump lists are recorded by multiple base registers is needed, short It is accomplished by writing the index in the base register and the patch function address jump list corresponding to jump list in instruction.It is short at this When instruction is performed, the first address of jump list is obtained by the base register of the record in short instruction, with reference to patch function ground Index positioning patch function entrance of the location in jump list.
The short instruction realizes long jump by base register, and because the short instruction is less than or equal to patch installing function is treated The command length of porch first, it is ensured that smoothly realize the activation of online patch.
205th, first entry instruction for treating patch installing function is replaced with into the short instruction so that this treats patch installing function When called, the short instruction is performed, and the patch function is activated.
Because the porch that patch installing function is treated in program has many bars to instruct, if to replace a plurality of instruction, then In replacement process, in fact it could happen that some need the instruction replaced being performed by some threads, then be likely to result in thread execution unknown Instruction, causes operating system exception.
To treat that first instruction at patch installing function entrance replaces with the short instruction in program, the length of the short instruction is not More than the length of first entry instruction, then other instructions are not interfered with replacement process, it is ensured that online to mend Fourth is smoothly activated, it is also ensured that operating system security runs.Wherein, in the short instruction register identification and index all compared with It is short, it is ensured that the length of of length no more than first entry instruction of the short instruction.
At this when patch installing function is called, as this short instruction quilt of first instruction at patch installing function entrance is treated Perform, the short instruction can be resolved, gone to access acquiescence or short instruction record base register according to the content of parsing, obtain The jump list first address stored in the base register is taken, according to the patch letter recorded in the jump list first address and the short instruction Index of the number address in jump list, obtains patch function entry address, jumps to patch function entrance, and performs function benefit Fourth so that patch function is activated.
From the above it can be seen that using the method for online patch activation provided in an embodiment of the present invention, can be in only replacement program In the case for the treatment of at patch installing function entrance first instruction, online patch activation is realized, improve the safety of operating system; Further, due to embodiments providing jump list, the information of multiple patch functions can be recorded in jump list, so as to reality Existing multiple online patches update simultaneously, improve Consumer's Experience.
The method that Fig. 3 describes the online patch activation of another kind of the embodiment of the present invention, the method is specifically included:
301st, positioning patch function address and first entry instruction of patch installing function is treated.
Online patch refers to the patch for not needing reset routine in program operation and coming into force, and is widely used in all kinds of softwares. When whne the operation of patch installing program, in the address of online patch activation thread positioning patch function and the program patch installing is treated First entry instruction of function.Wherein, online patch activation thread can be the thread, or a use inside program In the thread of the application program of activation patch.
302nd, the jump instruction write jump list of patch function address is will jump to, and is obtained the jump instruction and is redirected at this Index in table.
Jump list is the block space that online patch activation thread is opened up in internal memory, can store and jump to patch function The jump instruction of address.Can realize that multiple patch functions are activated simultaneously using jump list.
Obtain index of the jump instruction in the jump list.After by the jump instruction write jump list, obtain this and redirect Index or sequence number of the instruction in the jump list.Can by the sequence number or index position the jump instruction in the jump list Position.
303rd, this is redirected in table address write depositor.
During table address write depositor will be redirected, no matter where jump list is placed in internal memory, can be by visiting Depositor is asked, the address of jump list is read, then each jump instruction is obtained by jump list.Wherein it is possible to by the first ground of jump list In location write depositor, depositor can be base register.
304th, the length of first entry instruction for treating patch installing function is obtained, and constructs a length and be less than or equal to This treats the short instruction of first entry instruction length of patch installing function, mark of the short instruction comprising the depositor and the rope Draw.
In different operating system, the length of the instruction of identical function is realized it could also be possible that different.Obtain this to wait to beat The length of first entry instruction of patch function, one length of construction treats that first of patch installing function enters less than or equal to this The short instruction of mouth command length, mark of the short instruction comprising the depositor and the index.Wherein, it is performed in the short instruction When, the jump list first address in depositor can be obtained, just can be with positioning patch function by the first address and index of jump list Entry address.
When jump list only has one, the first address of the jump list can be recorded by a base register, Index of the jump instruction in jump list can be write in short instruction.When the short instruction is performed, the plot given tacit consent to will be gone to post Storage obtains the first address of jump list, and the index with reference to the jump instruction in the jump list just can entering with positioning patch function Mouthful.Wherein, jump list can store a certain amount of jump instruction, so that the length of index is shorter, for example each jump list is most 10 instructions of many records.When jump list there are multiple, the first ground that multiple jump lists are recorded by multiple base registers is needed Location, is accomplished by index of the base register and jump instruction corresponding to write jump list in the jump list in short instruction. When the short instruction is performed, the first address of jump list is obtained by the base register of the record in short instruction, with reference to including Index positioning patch function entrance of the jump instruction in jump list.
The short instruction realizes long jump by base register, treats at patch installing function entrance because the short instruction is less than First command length, it is ensured that smoothly realize the activation of online patch.
305th, first entry instruction for treating patch installing function is replaced with into the short instruction so that this treats patch installing function When called, the short instruction is performed, and the patch function is activated.
Because the porch that patch installing function is treated in program has many bars to instruct, if to replace a plurality of instruction, then In replacement process, in fact it could happen that some need the instruction replaced being performed by some threads, then be likely to result in thread execution unknown Instruction, causes operating system exception.
To treat that first instruction at patch installing function entrance replaces with the short instruction in program, the length of the short instruction is not More than the length of first entry instruction, then other instructions are not interfered with replacement process, it is ensured that online to mend Fourth is smoothly activated, it is also ensured that operating system security runs.Wherein, in the short instruction register identification and index all compared with It is short, it is ensured that the length of of length no more than first entry instruction of the short instruction.
At this when patch installing function is called, as this short instruction quilt of first instruction at patch installing function entrance is treated Perform, the short instruction can be resolved, gone to access acquiescence or short instruction record base register according to the content of parsing, obtain The jump list first address stored in the base register is taken, according to what is recorded in the jump list first address and the short instruction finger is redirected Index of the order in jump list, obtains jump instruction, and further according to jump instruction patch function entrance is jumped to, and performs function benefit Fourth so that patch function is activated.
From the above it can be seen that using the method for online patch activation provided in an embodiment of the present invention, can be in only replacement program In the case for the treatment of at patch installing function entrance first instruction, online patch activation is realized, improve the safety of operating system; Further, due to embodiments providing jump list, the information of multiple patch functions can be recorded in jump list, so as to reality Existing multiple online patches update simultaneously, improve Consumer's Experience.
Fig. 4 describes the device of a kind of online patch activation of the embodiment of the present invention, and the device is specifically included:
Positioning unit 401, writing unit 402, acquiring unit 403, structural unit 404, replacement unit 405, performance element 406。
Positioning unit 401, for positioning patch function address and first entry instruction for treating patch installing function.
When whne the operation of patch installing program, the address of the positioning patch function of positioning unit 401 and patch installing function is treated Entry address, so as to cause to treat first entry instruction and patch function ground of patch installing function by follow-up operation Location associates.
Writing unit 402, at the address of the positioning patch function of positioning unit 401, will be comprising patch function ground The information write jump list of location, by this table address write depositor is redirected, and the patch function address is positioned by positioning unit 401 's.
At the address of the positioning patch function of positioning unit 401, writing unit 402 will include the information of patch function address Write jump list, then the address of the jump list is write into depositor.Wherein the information comprising patch function address can be patch Function address, or jump to the jump instruction of patch function address.No matter where jump list is placed in internal memory, The address of jump list can be read by accessing depositor, then the entry address of each patch function is obtained by jump list. Wherein it is possible to by the first address write depositor of jump list, depositor can be base register.Wherein, the jump list can For storing the address of at least one patch function simultaneously, it is possible to achieve multiple online patches are activated.
Acquiring unit 403, for obtaining the information comprising patch function address of the write of writing unit 402 in the jump list In index;Obtain the length of first entry instruction for treating patch installing function of the positioning of positioning unit 401.
Acquiring unit 403 obtains the information comprising patch function address of the write of writing unit 402 in the jump list Index.After by the information write jump list, index or sequence number of the information in the jump list is obtained.The sequence number can be passed through Position position of the information in the jump list.
Acquiring unit 403 obtains the length of first entry instruction for treating patch installing function of the positioning of positioning unit 401. In different operating system, the length of the instruction of identical function is realized it could also be possible that different, it is therefore desirable to obtain this and wait to beat benefit The length of first entry instruction of fourth function.
Structural unit 404, first entry instruction of patch installing function is treated for constructing a length less than or equal to this The short instruction of length, mark of the short instruction comprising the depositor and the index, this treats that first entrance of patch installing function refers to Order is positioned by the positioning unit.
Structural unit 404 constructs a short instruction that can realize long jump, mark of the short instruction comprising the depositor With the index, the jump list first address that the mark of the depositor is obtained in depositor can be passed through, by the first address of jump list and The index just can be with positioning patch function entrance address.Wherein, the length of the short instruction treats patch installing letter less than or equal to this First several entry instruction length.
When jump list only has one, the first address of the jump list can be recorded by a base register, Index of the information comprising patch function address in jump list can be write in short instruction.When the short instruction is performed, will Go the base register given tacit consent to obtain the first address of jump list, with reference to index of the information in the jump list benefit can be just positioned The entrance of fourth function.Wherein, jump list can store a certain amount of information comprising patch function address, so that the length of index Degree is shorter.When jump list there are multiple, the first address that multiple jump lists are recorded by multiple base registers is needed, in brachydactylia The base register being accomplished by order corresponding to write jump list and the information comprising patch function address are in the jump list Index.When the short instruction is performed, the first address of jump list is obtained by the base register of the record in short instruction, with reference to Index positioning patch function entrance of the information comprising patch function address in jump list.
The short instruction realizes long jump by base register, treats at patch installing function entrance because the short instruction is less than First command length, it is ensured that smoothly realize the activation of online patch.
Replacement unit 405, for this to be treated, first instruction at patch installing function entrance position replaces with structural unit The short instruction of 404 constructions.
Due to treating there are many bars to instruct at patch installing function entrance, a plurality of instruction is replaced if desired, then replacing Cheng Zhong, in fact it could happen that some need the instruction replaced being performed by some threads, then be likely to result in thread and perform unknown instruction, draw Play operating system exception.
It is short that replacement unit 405 will treat that first at patch installing function entrance instruction replaces with that structural unit 404 constructs Instruction, the length of of length no more than this first instruction of the short instruction, then do not interfere with other in replacement process and refer to Order, it is ensured that online patch is smoothly activated, it is also ensured that operating system security runs.
Performance element 406, when patch installing function is called, the short instruction that replacement unit 405 is replaced is performed at this, Activation patch function.
At this when patch installing function is called, as this short instruction quilt of first instruction at patch installing function entrance is treated Perform, the short instruction can be resolved, gone to access acquiescence or short instruction record base register according to the content of parsing, obtain The jump list first address stored in the base register is taken, according to recording in the jump list first address and the short instruction comprising benefit Index of the information of fourth function address in jump list, obtains patch function entry address, jumps to patch function entrance, and holds Line function patch so that patch function is activated.
From the above it can be seen that using the device of online patch activation provided in an embodiment of the present invention, can be old in only replacement program In the case that version treats at patch installing function entrance first instruction, online patch activation is realized, improve the peace of operating system Quan Xing;Further, due to embodiments providing jump list, the information of multiple patch functions can be recorded in jump list, So as to realize that multiple online patches update simultaneously, Consumer's Experience is improve.
Fig. 5 describes the device of a kind of online patch activation of the embodiment of the present invention, and the device is specifically included:
Positioning unit 501, the first writing unit 502, acquiring unit 503, structural unit 504, replacement unit 505, execution Unit 506.
Positioning unit 501, for positioning patch function address and first entry instruction for treating patch installing function.
When whne the operation of patch installing program, the address of the positioning patch function of positioning unit 501 and patch installing function is treated Entry address, so as to cause to treat first entry instruction and patch function ground of patch installing function by follow-up operation Location associates.
First writing unit 502, at the address of the positioning patch function of positioning unit 501, by patch function address Write jump list, by this table address write depositor is redirected.
At the address of the positioning patch function of positioning unit 501, the first writing unit 502 writes the patch function address Jump list, then the address of the jump list is write into depositor.Wherein, no matter where jump list is placed in internal memory, all may be used By accessing depositor, to read the address of jump list, then the entry address of each patch function is obtained by jump list.Its In, can be by the first address of jump list write depositor, depositor can be base register.Wherein, the jump list can be with For storing the address of at least one patch function simultaneously, it is possible to achieve multiple online patches are activated.
Acquiring unit 503, for obtain the first writing unit 502 write the patch function address in the jump list Index;Obtain the length of first entry instruction for treating patch installing function of the positioning of positioning unit 501.
The patch function address of each program can determine that each patch function address redirects at this in the index of jump list The position of table, by the first address and the index of each patch function address of the jump list, it may be determined that each patch function exists Particular location in internal memory.
Obtain index of the patch function address of the write of the first writing unit 502 in the jump list.By the patch function After address write jump list, index or sequence number of the patch function address in the jump list is obtained.The sequence number can be passed through Position the position of the patch function address in the jump list.
Obtain the length of first entry instruction for treating patch installing function of the positioning of positioning unit 501.In different operating system In system, realize the length of the instruction of identical function it could also be possible that different, it is therefore desirable to obtain this treat patch installing function The length of one entry instruction.
Structural unit 504, first entry instruction of patch installing function is treated for constructing a length less than or equal to this The short instruction of length, mark of the short instruction comprising the depositor and the index, this treats that first entrance of patch installing function refers to Order is positioned by the positioning unit.
Structural unit 504 constructs a short instruction that can realize long jump, mark of the short instruction comprising the depositor With the index, the jump list first address that the mark of the depositor is obtained in depositor can be passed through, by the first address of jump list and The index just can be with positioning patch function entrance address.Wherein, the length of the short instruction treats patch installing letter less than or equal to this First several entry instruction length.
When jump list only has one, the first address of the jump list can be recorded by a base register, Index of the patch function address in jump list can be write in short instruction.When the short instruction is performed, the base given tacit consent to will be removed Location depositor obtains the first address of jump list, just can be with positioning patch letter with reference to index of the patch function address in the jump list Several entrances.Wherein, jump list can store a certain amount of patch function address, so that the length of index is shorter.Redirecting When table there are multiple, the first address that multiple jump lists are recorded by multiple base registers is needed, be accomplished by writing in short instruction Enter index of the base register and patch function address corresponding to jump list in the jump list.It is performed in the short instruction When, the first address of jump list is obtained by the base register of the record in short instruction, with reference to patch function address in jump list In index positioning patch function entrance.
The short instruction realizes long jump by base register, and because the short instruction is less than or equal to patch installing function is treated The command length of porch first, it is ensured that smoothly realize the activation of online patch.
Replacement unit 505, for this to be treated, first instruction at patch installing function entrance position replaces with structural unit The short instruction of 504 constructions.
Due to treating there are many bars to instruct at patch installing function entrance, a plurality of instruction is replaced if desired, then replacing Cheng Zhong, in fact it could happen that some need the instruction replaced being performed by some threads, then be likely to result in thread and perform unknown instruction, draw Play operating system exception.
Replacement unit 505, will treat that first at patch installing function entrance instruction replaces with that structural unit 504 constructs short Instruction, the length of of length no more than this first instruction of the short instruction, then do not interfere with other in replacement process and refer to Order, it is ensured that online patch is smoothly activated, it is also ensured that operating system security runs.
Performance element 506, when patch installing function is called, the short instruction that replacement unit 505 is replaced is performed at this, Activation patch function.
At this when patch installing function is called, as this short instruction quilt of first instruction at patch installing function entrance is treated Perform, the short instruction can be resolved, gone to access acquiescence or short instruction record base register according to the content of parsing, obtain The jump list first address stored in the base register is taken, according to the patch letter recorded in the jump list first address and the short instruction Index of the number address in jump list, obtains patch function entry address, jumps to patch function entrance, and performs function benefit Fourth so that patch function is activated.
From the above it can be seen that using the device of online patch activation provided in an embodiment of the present invention, can treat program is only replaced At patch installing function entrance in the case of first instruction, online patch activation is realized, improve the safety of operating system;Enter One step, due to embodiments providing jump list, can record the information of multiple patch functions, so as to realize in jump list Multiple online patches update simultaneously, improve Consumer's Experience.
Fig. 6 describes the device of a kind of online patch activation of the embodiment of the present invention, and the device is specifically included:
Positioning unit 601, the second writing unit 602, acquiring unit 603, structural unit 604, replacement unit 605, redirect Unit 606.
Positioning unit 601, for positioning patch function address and first entry instruction for treating patch installing function.
When whne the operation of patch installing program, the address of the positioning patch function of positioning unit 601 and patch installing function is treated Entry address, so as to cause to treat first entry instruction and patch function ground of patch installing function by follow-up operation Location associates.
Second writing unit 602, at the address of the positioning patch function of positioning unit 601, will jump to patch letter The jump instruction write jump list of number address, by this table address write depositor is redirected.
At the address of the positioning patch function of positioning unit 601, the first writing unit 602 will jump to patch function address Jump instruction write jump list, then the address of the jump list is write into depositor.Wherein, no matter jump list is placed in internal memory Where, the address of jump list can be read by accessing depositor, then each jump instruction is obtained by jump list. Wherein it is possible to by the first address write depositor of jump list, depositor can be base register.Wherein, the jump list can For storing at least one jump instruction simultaneously, it is possible to achieve multiple online patches are activated.
Acquiring unit 603, for obtain the write of the second writing unit 602 jump to the patch function address redirect finger Index of the order in the jump list;Obtain the length of first entry instruction for treating patch installing function of the positioning of positioning unit 601.
Obtain index of the jump instruction of the write of the second writing unit 602 in the jump list.By the jump instruction write After jump list, index or sequence number of the jump instruction in the jump list is obtained.Can be by the sequence number or the index positioning Position of the jump instruction in the jump list.
Obtain the length of first entry instruction for treating patch installing function of the positioning of positioning unit 601.In different operating system In system, realize the length of the instruction of identical function it could also be possible that different, it is therefore desirable to obtain this treat patch installing function The length of one entry instruction.
Structural unit 604, first entry instruction of patch installing function is treated for constructing a length less than or equal to this The short instruction of length, mark of the short instruction comprising the depositor and the index, this treats that first entrance of patch installing function refers to Order is positioned by the positioning unit.
Structural unit 604 constructs a short instruction that can realize long jump, mark of the short instruction comprising the depositor With the index, the jump list first address that the mark of the depositor is obtained in depositor can be passed through, by the first address of jump list and The index just can position jump instruction, then by the address of jump instruction positioning patch function.Wherein, the length of the short instruction First entry instruction length of patch installing function is treated less than or equal to this.
When jump list only has one, the first address of the jump list can be recorded by a base register, Index of the jump instruction for jumping to patch function address in jump list can be write in short instruction.It is performed in the short instruction When, the base register given tacit consent to will be gone to obtain the first address of jump list, with reference to index of the jump instruction in the jump list just Can be with the entrance of positioning patch function.Wherein, jump list can store a certain amount of jump instruction so that index length compared with It is short.When jump list there are multiple, the first address that multiple jump lists are recorded by multiple base registers is needed, in short instruction It is accomplished by index of the base register and jump instruction corresponding to write jump list in the jump list.Held in the short instruction During row, the first address of jump list is obtained by the base register of the record in short instruction, with reference to jump instruction in jump list Index positioning patch function entrance.
The short instruction realizes long jump by base register, and because the short instruction is less than or equal to patch installing function is treated The command length of porch first, it is ensured that smoothly realize the activation of online patch.
Replacement unit 605, for this to be treated, first instruction at patch installing function entrance position replaces with structural unit The short instruction of 604 constructions.
Due to treating there are many bars to instruct at patch installing function entrance, a plurality of instruction is replaced if desired, then replacing Cheng Zhong, in fact it could happen that some need the instruction replaced being performed by some threads, then be likely to result in thread and perform unknown instruction, draw Play operating system exception.
It is short that replacement unit 605 will treat that first at patch installing function entrance instruction replaces with that structural unit 604 constructs Instruction, the length of of length no more than this first instruction of the short instruction, then do not interfere with other in replacement process and refer to Order, it is ensured that online patch is smoothly activated, it is also ensured that operating system security runs.
Performance element 606, when patch installing function is called, the short instruction that replacement unit 605 is replaced is performed at this, Activation patch function.
At this when patch installing function is called, as this short instruction quilt of first instruction at patch installing function entrance is treated Perform, the short instruction can be resolved, gone to access acquiescence or short instruction record base register according to the content of parsing, obtain The jump list first address stored in the base register is taken, according to what is recorded in the jump list first address and the short instruction finger is redirected Index of the order in jump list, obtains patch function entry address, jumps to patch function entrance, and performs function patch, makes Obtain patch function to be activated.
From the above it can be seen that using the device of online patch activation provided in an embodiment of the present invention, can treat program is only replaced At patch installing function entrance in the case of first instruction, online patch activation is realized, improve the safety of operating system;Enter One step, due to embodiments providing jump list, can record the information of multiple patch functions, so as to realize in jump list Multiple online patches update simultaneously, improve Consumer's Experience.
Fig. 7 describes the structure of the operation driving equipment of another embodiment of the present invention offer, including at least one is processed Device 701(Such as CPU), memorizer 702, the communication bus 704 of internal memory 703 and at least one, for realizing between these devices Connection communication.Processor 701 is used to perform the executable module stored in memorizer 702, such as computer program.Memorizer 702 may include high-speed random access memory(RAM:Random Access Memory), it is also possible to also including non-unstable Memorizer(non-volatile memory), for example, at least one disk memory.Access interior by least one processor Address in depositing.
In some embodiments, memorizer 702 stores program 7021, and program 7021 can be performed by processor 701, This program includes:Positioning patch function address and first entry instruction for treating patch installing function;Will be comprising patch function ground The information write jump list of location, and obtain index of the information in the jump list;This is redirected into table address write depositor;Obtain The length of first entry instruction for treating patch installing function is taken, and constructs a length and treat patch installing function less than or equal to this First entry instruction length short instruction, the short instruction comprising the depositor mark and the index;This is treated into patch installing First entry instruction of function replaces with the short instruction so that when patch installing function is called, the short instruction is performed for this, The patch function is activated.Specific implementation steps are identical with the embodiment shown in Fig. 1, and here is omitted.
Can be seen that using online benefit provided in an embodiment of the present invention from above technical scheme provided in an embodiment of the present invention The device of fourth activation, can treat at patch installing function entrance in the case of first instruction, realization is online to mend program is only replaced Fourth is activated, and improves the safety of operating system;Further, due to embodiments providing jump list, can in jump list To record the information of multiple patch functions, so as to realize that multiple online patches update simultaneously, Consumer's Experience is improve.
Fig. 8 describes the structure of the operation driving equipment of another embodiment of the present invention offer, including at least one is processed Device 801(Such as CPU), memorizer 802, the communication bus 804 of internal memory 803 and at least one, for realizing between these devices Connection communication.Processor 801 is used to perform the executable module stored in memorizer 802, such as computer program.Memorizer 802 may include high-speed random access memory(RAM:Random Access Memory), it is also possible to also including non-unstable Memorizer(non-volatile memory), for example, at least one disk memory.Access interior by least one processor Address in depositing.
In some embodiments, memorizer 802 stores program 8021, and program 8021 can be performed by processor 801, This program includes:Positioning patch function address and first entry instruction for treating patch installing function;Patch function address is write Enter jump list, and obtain the index of the patch function address in the jump list;This is redirected into table address write depositor;Obtain This treats the length of first entry instruction of patch installing function, and constructs a length and treat patch installing function less than or equal to this The short instruction of first entry instruction length, mark of the short instruction comprising the depositor and the index;This is treated into patch installing letter First several entry instructions replace with the short instruction so that when patch installing function is called, the short instruction is performed for this, should Patch function is activated.Specific implementation steps are identical with the embodiment shown in Fig. 2, and here is omitted.
Can be seen that using online benefit provided in an embodiment of the present invention from above technical scheme provided in an embodiment of the present invention The device of fourth activation, can treat at patch installing function entrance in the case of first instruction, realization is online to mend program is only replaced Fourth is activated, and improves the safety of operating system;Further, due to embodiments providing jump list, can in jump list To record the information of multiple patch functions, so as to realize that multiple online patches update simultaneously, Consumer's Experience is improve.
Fig. 9 describes the structure of the operation driving equipment of another embodiment of the present invention offer, including at least one is processed Device 901(Such as CPU), memorizer 902, interior 903, and at least one communication bus 904, for realizing the company between these devices Connect letter.Processor 901 is used to perform the executable module stored in memorizer 902, such as computer program.Memorizer 902 High-speed random access memory may be included(RAM:Random Access Memory), it is also possible to also deposit including non-labile Reservoir(non-volatile memory), for example, at least one disk memory.Accessed in internal memory by least one processor Address.
In some embodiments, memorizer 902 stores program 9021, and program 9021 can be performed by processor 901, This program includes:Positioning patch function address and first entry instruction for treating patch installing function;Will jump to patch function The jump instruction write jump list of address, and obtain index of the jump instruction in the jump list;This is redirected into table address to write Enter depositor;The length of first entry instruction for treating patch installing function is obtained, and constructs a length less than or equal to this Treat the short instruction of first entry instruction length of patch installing function, mark of the short instruction comprising the depositor and the index; First entry instruction that this treats patch installing function is replaced with into the short instruction so that this, should when patch installing function is called Short instruction is performed, and the patch function is activated.Specific implementation steps are identical with the embodiment shown in Fig. 3, no longer go to live in the household of one's in-laws on getting married herein State.
Can be seen that using online benefit provided in an embodiment of the present invention from above technical scheme provided in an embodiment of the present invention The device of fourth activation, can treat at patch installing function entrance in the case of first instruction, realization is online to mend program is only replaced Fourth is activated, and improves the safety of operating system;Further, due to embodiments providing jump list, can in jump list To record the information of multiple patch functions, so as to realize that multiple online patches update simultaneously, Consumer's Experience is improve.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention do not limited by described sequence of movement because According to the present invention, some steps can adopt other orders or while carry out.Secondly, those skilled in the art also should know Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention It is necessary.
The contents such as information exchange, implementation procedure between each module in said apparatus and system, due to side of the present invention Method embodiment is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, can be Related hardware is instructed to complete by computer program, above-mentioned program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, above-mentioned storage medium can be magnetic Dish, CD, read-only memory(ROM:Read-Only Memory)Or random access memory(RAM:Random Access Memory)Deng.
Specific case used herein is set forth to the principle and embodiment of the present invention, and above example is said It is bright to be only intended to help and understand the method for the present invention and its thought;Simultaneously for one of ordinary skill in the art, according to this Bright thought, will change in specific embodiments and applications, and in sum, this specification content should not be managed Solve as limitation of the present invention.

Claims (7)

1. a kind of method of online patch activation, it is characterised in that include:
Positioning patch function address and first entry instruction for treating patch installing function;
By the write jump list of the information comprising patch function address, and obtain index of the described information in the jump list;
Table address write depositor is redirected by described;
The length of first entry instruction of patch installing function is treated described in obtaining, and constructs a length to treat less than or equal to described The short instruction of first entry instruction length of patch installing function, mark of the short instruction comprising the depositor and the rope Draw;
First entry instruction for treating patch installing function is replaced with into the short instruction so that described to treat patch installing function quilt When calling, the short instruction is performed, and the patch function is activated.
2. the method for patch activation as claimed in claim 1 online, it is characterised in that described to include patch function address Information write jump list includes:
The patch function address is write into jump list;
Obtaining index of the described information in the jump list includes:
Obtain index of the patch function address in the jump list.
3. the method for patch activation as claimed in claim 1 online, it is characterised in that described to include patch function address Information write jump list includes:
Will jump to the jump instruction write jump list of the address of the patch function;
Obtaining index of the described information in the jump list includes:
Obtain index of the jump instruction in the jump list.
4. the method for the online patch activation as described in claims 1 to 3 is arbitrary, it is characterised in that the jump list is used to deposit Information of the storage at least one comprising patch function address.
5. a kind of device of online patch activation, it is characterised in that include:
Positioning unit, for positioning patch function address and first entry instruction for treating patch installing function;
Writing unit, by the write jump list of the information comprising the patch function address, by described table address write deposit is redirected Device, the patch function address is positioned by the positioning unit;
Acquiring unit, for obtaining index of the information of said write unit write in the jump list;Obtain the positioning The length of first entry instruction for treating patch installing function of cell location;
Structural unit, for one length of construction less than or equal to the first entry instruction length for treating patch installing function Short instruction, mark of the short instruction comprising the depositor and the index, first entrance for treating patch installing function Instruction is positioned by the positioning unit;
Replacement unit, for first entry instruction for treating patch installing function to be replaced with into the short of the structural unit construction Instruction;
Performance element, when patch installing function is called, the short instruction that the replacement unit is replaced is performed, activation for described The patch function.
6. the device of online patch activation according to claim 5, it is characterised in that said write unit specifically for:
The address write jump list of the patch function that positioning units are positioned;
The acquiring unit specifically for:
Obtain index of the patch function customization in the jump list.
7. the device of online patch activation according to claim 5, it is characterised in that said write unit specifically for:
The jump instruction that the address of patch function can be jumped to is write into jump list;
The acquiring unit specifically for:
Obtain index of the jump instruction customization in the 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 CN103530184A (en) 2014-01-22
CN103530184B true CN103530184B (en) 2017-04-12

Family

ID=49932222

Family Applications (2)

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
CN201310508687.5A Active CN103530184B (en) 2013-10-24 2013-10-24 Method and device for online patch activation

Family Applications Before (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) CN106484369B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809018B (en) * 2015-05-18 2018-01-02 烽火通信科技股份有限公司 A kind of method and system of built-in system software injection hot patch
CN106874022B (en) * 2015-12-11 2021-06-25 中兴通讯股份有限公司 Hot patch injection method and device
CN105630491A (en) * 2015-12-18 2016-06-01 Tcl集团股份有限公司 Method and device for changing functions of program
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
CN106776464B (en) * 2016-11-10 2020-03-10 杭州华为数字技术有限公司 Function address obtaining method and electronic equipment
CN110192178B (en) * 2017-09-08 2023-03-10 深圳市汇顶科技股份有限公司 Program patching method and device, micro control unit and terminal equipment
CN107943517A (en) * 2017-10-26 2018-04-20 北京奇虎科技有限公司 The hook method and device of terminal applies
CN111381905B (en) * 2018-12-27 2023-07-18 北京华为数字技术有限公司 Program processing method, device and equipment
CN110928570A (en) * 2019-11-27 2020-03-27 北京知道创宇信息技术股份有限公司 Firmware upgrading method and device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003009136A1 (en) * 2001-07-16 2003-01-30 Yuqing Ren Embedded software update system
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
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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020029921A (en) * 1999-09-14 2002-04-20 밀러 럿셀 비 Method and apparatus for modifying microinstructions in a static memory device
US7913243B2 (en) * 2005-06-21 2011-03-22 International Business Machines Corporation Method and system for generating and applying patches to a computer program concurrently with its execution
CN101706734B (en) * 2009-11-10 2013-08-14 中国科学院计算技术研究所 Method and system thereof for translating indirect jump instruction in binary translation
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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003009136A1 (en) * 2001-07-16 2003-01-30 Yuqing Ren Embedded software update system
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
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

Also Published As

Publication number Publication date
CN103530184A (en) 2014-01-22
CN106484369B (en) 2019-11-29
CN106484369A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN103530184B (en) Method and device for online patch activation
CN104238963B (en) A kind of date storage method, storage device and storage system
CN105303104A (en) Dynamic execution prevention to inhibit return-oriented programming
CN105431858B (en) Secure privilege grade executes and accesses protection
DE102019113567A1 (en) EFFICIENT WEAKENING OF SIDE-CHANNEL-BASED ATTACKS AGAINST PROCESSING ARCHITECTURES FOR SPECULATIVE EXECUTION
Kicinski et al. eBPF Hardware Offload to SmartNICs: cls bpf and XDP
JP2014504768A (en) Method, computer program product, and apparatus for progressively unloading classes using a region-based garbage collector
CN104407886B (en) It is a kind of to guide the embedded software solidification separated with target, loading method
US20120297099A1 (en) Control over loading of device drivers for an individual instance of a pci device
CN103678506B (en) The method, apparatus and browser of loading application programs shortcut in a browser
CN104750427A (en) Storage device and method thereof
WO2016005720A1 (en) A data processing apparatus and method for performing lock-protected processing operations for multiple threads
CN109600385A (en) A kind of access control method and device
CN103955354B (en) Method for relocating and device
CN105095697A (en) Return-oriented programming as an obfuscation technique
US20180157605A1 (en) Configuration of a memory controller for copy-on-write
DE102009060299A1 (en) Introduce transactions to help virtualize a physical device controller
DE102009060301A1 (en) Enabling multiple virtual device controllers by redirecting an interrupt from a physical device controller
CN107861715A (en) A kind of business sets up system and method
CN104714792B (en) Multi-process shared data treating method and apparatus
CN107911406A (en) Network task flow shifting method, equipment and storage medium
EP3191943B1 (en) Memory privilege of a computing system
US20160246629A1 (en) Gpu based virtual system device identification
CN107943517A (en) The hook method and device of terminal applies
CN107153561A (en) The method of firmware, apparatus and system in a kind of renewal expansion card

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