lkml.org 
[lkml]   [1998]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectSources for LKPK (Live Kernel Patching Kit)
Date
From


Hello,

I have put sources for LKPK at

ftp://ftp.cfar.umd.edu/pub/adam/linux/LKPK-BETA-0.5.tgz

It it is NOT finished, and I have put it there so that
peple and take a look and make suggestions.


First you want to lookup the README file, it has the details.

You want to look at the the 'obo' dir (off-by-one bug) for
a proof of concept. HOWEVER, note that it is against,
2.1.x not 2.0.x kernels, so it is not terribly usefull
for patching actual OBO bug :P

You want look at 'sigio' dir (SIGIO bug) if you want to try
to contribute. This code is based on obo code but significatly
improved, modularized, commented. However, this code is not
working as of yet -- that is does noting currently.


-----------------------------------------------


Here is example of aplying OBO fix.

[root@styx ip_glue]# make clean
rm -f ip_glue.o ip_glue.h
[root@styx ip_glue]# make
./get_addr.sh
Var 'IP_GLUE' at '0xc0169b04'.
gcc -D__KERNEL__ -I/usr/src/linux/include \
-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce \
-pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 \
-DCPU=586 -DMODULE -DMODVERSIONS \
-include /usr/src/linux/include/linux/modversions.h \
-c -o ip_glue.o ip_glue.c

[root@styx ip_glue]# make in
[root@styx ip_glue]# dmesg | tail -6
IP_GLUE_MOD : loading module
rel / ver : 2.1.109 / #6 Fri Jul 17 00:55:34 EDT 1998
Saving old IP_GLUE header : 00 c3 [ 83 ec 0c 55 57 ] 56 53 8b 4c 24 20
ip_glue:[<c0169b04>] ip_glue_new:[<c4016178>] offset:[<03eac66f>]
Installing JMP to NEW IP_GLUE header : [ e9 6f c6 ea 03 ]
IP_GLUE_MOD : module loaded


[root@styx ip_glue]# make out
[root@styx ip_glue]# dmesg | tail -3
IP_GLUE_MOD : unloading module
Restoring old IP_GLUE header : [ 83 ec 0c 55 57 ]
IP_GLUE_MOD : module unloaded
[root@styx ip_glue]#

-Adam

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.536 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site