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

Corey Minyard <[email protected]> Tue, 10 May 2005 09:29:38 -0500
Newsgroups gmane.linux.kernel.carrier-grade
Message-ID <[email protected]>
--===============75949650406331282==
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

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


--===============75949650406331282==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

_______________________________________________
cgl_discussion mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/cgl_discussion

--===============75949650406331282==--