Patching of in-use functions on a running computer system
Abstract
A system and method for automatically updating software components on a running computer system without requiring any interruption of service. A software module is hotpatched by loading a patch into memory and modifying an instruction in the original module to jump to the patch. A coldpatching technique places a coldpatch version of the module on disk for subsequent loading by processes, after hotpatching occurred. The coldpatch has the entry points to its functions at the same relative locations within the module as the hotpatch, which facilitates subsequent hotpatching. A hotpatch and coldpatch are automatically generated by deriving differences between changed and original binary files, and establishing the point to insert the jump. Validation is performed to ensure that the hotpatch is applied to the correct version, and that the coldpatch is replacing the correct version. Version management is also provided to control the number of patches via support rules.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 67.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
In a computing environment, a method comprising: in response to a request to patch a running instance of a software module: automatically performing a validation to determine whether a hotpatch file that may be used to patch the running instance includes data that is appropriate for patching the running instance, the data including a patch; and if the validation indicates that the data is appropriate, automatically installing the patch, including loading the patch in memory and modifying code in the running instance to jump to the patch.
- Claim 2Depends on #1
The method of claim 1 wherein performing the validation comprises comparing a file name of a file corresponding to the running instance to be patched.
- Claim 3Depends on #1
The method of claim 1 wherein performing the validation comprises, comparing code bytes in the hotpatch with code bytes in the running instance to be patched
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 67 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (1)
- Fryer, K., Microsoft Press Computer Dictionary, 1997, Microsoft Press, Third Ed., p. 37, 165.