[okl4-developer] problem with vmalloc()

Kalamkar, Dhiraj D dhiraj.d.kalamkar at intel.com
Mon Jul 9 20:05:41 EST 2007


Hello Hal,

It worked perfectly.

Thanks a lot.
Dhiraj

-----Original Message-----
From: Hal Ashburner [mailto:hala at ok-labs.com] 
Sent: Monday, July 09, 2007 3:00 PM
To: Kalamkar, Dhiraj D
Cc: developer at okl4.org
Subject: Re: [okl4-developer] problem with vmalloc()

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



More information about the Developer mailing list