Help in 'kernel_execve'

biswa.nayak at wipro.com biswa.nayak at wipro.com
Mon Jun 4 07:10:44 CDT 2007


> -----Original Message-----
> From: Sam Ravnborg [mailto:sam at ravnborg.org] 
> Subject: Re: Help in 'kernel_execve'
> 
> On Mon, Jun 04, 2007 at 12:57:06PM +0530, biswa.nayak at wipro.com wrote:
> > 
> > Hi
> > I am currently trying to understand the boot sequence of Linux.
> > 
> > In the kernel, the 'init' thread after the system is setup for the 
> > user processes it tries to spawn the first user process using 
> > 'kernel_execve'
> > 
> > Now to test this I have written a small module, which when inserted 
> > will spawn a user process from my home directory.
> > 
> > Now, when I compile the module I get error messages that
> > 
> > WARNING: "kernel_execve" [/c/test/skel.ko] undefined!
> > 
> > Why is this happening? Even after I exported the symbol 
> 'kernel_execve'
> > in the file
> > <linux>/arch/i386/kernel/sys_i386.c
> > I am still seeing the same message.
> > 
> > Is something else going in the back ground which I don't understand?
> 
> Please post your code + Makefile + command used to build the module.

Please find the attched module named skel.c and Makefile.
To compile the module I use "make -C <Path_to_linux> M=`pwd` modules"

> Did you build the modified kernel? From the warning is does 
> not like this.
Yes My linux version is Linux-2.6.20.4

[biswa at nerdbox test]$ uname -a
Linux nerdbox.nerdbox 2.6.20.4 #1 SMP Sat Jun 2 17:49:20 IST 2007 i686
i686 i386 GNU/Linux

[biswa at nerdbox test]$ cat /proc/kallsyms | grep kernel_execve
c01072ea T kernel_execve

Please let me know if you need any more info

Thanks
Biswa
> 
> 	Sam
> 




The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skel.c
Type: application/octet-stream
Size: 2163 bytes
Desc: skel.c
Url : http://selenic.com/pipermail/kernel-mentors/attachments/20070604/e0fb451b/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 16 bytes
Desc: Makefile
Url : http://selenic.com/pipermail/kernel-mentors/attachments/20070604/e0fb451b/attachment-0001.obj 


More information about the Kernel-mentors mailing list