binary patching kernels (ip_frag bug)

C. Scott Ananian (cananian@lcs.mit.edu)
Sun, 19 Apr 1998 00:41:36 -0400 (EDT)


With regards to the 'load a binary modules and fix the ip_frag bug'
thread:
What you really want to do is get a function pointer to ip_glue()
(relying on modprobe to resolve the address) and poke the bytes beginning
at ((char *)ip_glue) with a JMP to ip_glue_new, your replacement. (The
return in ip_glue_new will then effect the return of ip_glue.)

This doesn't work if ip_glue isn't exported to module-land, of course, but
if symbols aren't exported we could have a whole heap of problems.
--Scott
@ @
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-(_)-OOo-=-=-=-=-=
C. Scott Ananian: cananian@lcs.mit.edu / Declare the Truth boldly and
Laboratory for Computer Science/Crypto / without hindrance.
Massachusetts Institute of Technology /META-PARRESIAS AKOLUTOS:Acts 28:31
-.-. .-.. .. ..-. ..-. --- .-. -.. ... -.-. --- - - .- -. .- -. .. .- -.
PGP key available via finger and from http://www.pdos.lcs.mit.edu/~cananian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu