[cgl_discussion] Re: [PATCH i386] Live Patching Function on 2.6.11.7

Corey Minyard minyard at mvista.com
Tue May 10 07:29:38 PDT 2005


Takashi Ikebe wrote:

>Corey Minyard wrote:
>
>  
>
>>Takashi Ikebe wrote:
>>
>>    
>>
>>>Well, would you tell us how you implement this if possible?
>>>I think there are need some momentums to get the execution privilege
>>>from process's main context( such as signal handler, invoke thread
>>>and listen socket) to load the patch module dynamically.
>>>How your implementation get the execution privilege without changing
>>>exiting code?
>>>      
>>>
>>You *really* need to understand how the dynamic loader works. But you
>>can create a library with an init section that runs when the library
>>is loaded. If the library is pre-loaded, then it will run before the
>>application.
>>
>>    
>>
>I mean that who loads the library(patch module) to the target process
>during target process is running.
>I see that you linked "patcher" to init section.
>  
>
Type "man ld.so" and read the section on LD_PRELOAD. Then type "man
dlopen" and read the section on constructors (_init and _fini).

>BTW how does the patcher receive the load/activate operation from
>administrator? (threaded socket?)
>  
>
However, it wants to. You mention one possibility.

-Corey




More information about the cgl_discussion mailing list