[okl4-developer] problem with vmalloc()

Kalamkar, Dhiraj D dhiraj.d.kalamkar at intel.com
Mon Jul 9 18:48:01 EST 2007


Hi,

 

I am trying to insert a loadable module into L4linux kernel. In
load_module() from module.c Linux kernel try to allocate memory using
vmalloc(). The address returned by vmalloc() (0x00a30000 in my case) is
causing a page fault upon first access. Somehow iguana server is not
handling this page fault correctly and L4linux thread is going in
infinite loop of page faults.

 

Can anyone help me fix the problem? Is it a bug or problem with
configuration?

 

Additional information:

I found that it is the first call to vmalloc() so I doubt if something
is wrong with vmalloc.

The kernel module, if built into kernel, works fine.

If I replace vmalloc with kmalloc (and vfree with kfree) insmod works
fine.

 

Thanks,

Dhiraj Kalamkar

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20070709/74341f54/attachment.htm 


More information about the Developer mailing list