lkml.org 
[lkml]   [1998]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: LKPK (Live Kernel Patching Kit)
Hi Adam,

>I think it is insmod which,rightly, complains that it can't
>find the variable which is not being exported.
When I wanted to use the function that was not exported by the kernel,
I resolved the address by hand. The only requirement was that the
address of the variable/function must have been defined in the
System.map. Some sort of:

--- cut ---
struct module* (*find_module)() = (void *) 0x00115c28;

int init_module(void)
{
struct module *mod;

mod = find_module("foo");
[...]
--- cut ---

If I remebmer correctly DosEMU folks written the insmod that was
doing the same thing (ie. resolving the offending addresses from
System.map. HTH.

Kris
--
Krzysztof G. Baranowski - President of the Harmless Manyacs' Club
"Smith & Wesson - The original point and click interface..."
http://www.knm.org.pl/ <prezes@manjak.knm.org.pl>


-
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.034 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site