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.