[okl4-developer] problem with vmalloc()

Hal Ashburner hala at ok-labs.com
Mon Jul 9 19:29:39 EST 2007


On Mon, 2007-07-09 at 14:18 +0530, Kalamkar, Dhiraj D wrote:
> Hi,
Hi Dhiraj,

> 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?

Bug! Totally a bug.

> I found that it is the first call to vmalloc() so I doubt if something
> is wrong with vmalloc.
Not setting up vmalloc properly, almost certainly.



Maybe try the attached patch and see how you go? I haven't tested it I'm
sorry. :(



-- 
Kind regards,
Hal Ashburner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhiraj.patch
Type: text/x-patch
Size: 701 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20070709/147cdc2a/attachment.bin 


More information about the Developer mailing list