Changing code execution path using kernel mode redirection
Abstract
A mechanism for redirecting a code execution path in a running process. A one-byte interrupt instruction (e.g., INT 3) is inserted into the code path. The interrupt instruction passes control to a kernel handler, which after executing a replacement function, returns to continue executing the process. The replacement function resides in a memory space that is accessible to the kernel handler. The redirection mechanism may be applied without requiring a reboot of the computing device on which the running process is executing. In addition, the redirection mechanism may be applied without overwriting more than one byte in the original code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of redirecting a code execution path in a running process, comprising: injecting a one-byte interrupt instruction into said code execution path of said process while said process is running, wherein said injecting comprises overwriting an instruction associated with said running process, said instruction existing in memory; passing control to a kernel handler upon execution of said one-byte interrupt instruction; executing a replacement function called by said kernel handler; and returning to said running process.
- Claim 2Depends on #1
The method of claim 1 , wherein said one-byte interrupt instruction is an INT 3 interrupt instruction.
- Claim 3Depends on #1
The method of claim 1 , wherein said kernel handler includes a mechanism to cause a return from said interrupt instruction to continue into said replacement function.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (5)
Non-Patent Literature (1)
- U.S. Appl. No. 11/273,775, filed Nov. 14, 2005, Lelikov et al.