This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add finit_module syscall for Linux


On Tue, 22 Jan 2013, Kees Cook wrote:

> Yeah, seems true. Weird. The callers (e.g. kmod) use their own externs. Hmpf
> 
> $ readelf -s /lib/x86_64-linux-gnu/libc.so.6  | grep init_module
>    894: 00000000000f77d0    36 FUNC    GLOBAL DEFAULT   12
> init_module@@GLIBC_2.2.5
> 
> But it is exported. Is this something to fix, or should finit_module
> follow this lead?

The kexec_load discussion suggested that the init_module export should be 
considered a historical bad decision; because it was exported from shared 
libc long ago, it can't now be removed, but that doesn't mean its example 
should be followed for any new related syscalls, if the "syscall" function 
is sufficient to use them from user code and they are extremely 
specialized.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]