On Fri, Mar 15, 2013 at 1:35 AM, richard -rw- weinberger
<richard.weinber...@gmail.com> wrote:
> On Fri, Mar 15, 2013 at 5:39 AM, Han <keepsim...@gmail.com> wrote:
>> Hi,
>>
>> I am trying to build and to install a kernel module into UML.  The UML
>> kernel is built from linux 2.6.2, 32-bit i386.  The rootfs is
>> Debian-Squeeze-x86-root_fs.   I was able to build the kernel module
>> successful. But when I tried to insmod, I got the kernel panic.
>> After some debugging,  I found the kmalloc() during module init
>> returns NULL, and it was dereferenced later, hence the panic.
>>
>> my question is:  is kmalloc() supported in UML (during kernel module
>> init)?  Is there anything special I need to do?
>
> kmalloc() and modules work in UML.
> But your kernel so damn bloody old that it might contain various bugs.
> AFAIK 2.6.2 almost older than a decade...

It's 2.6.27.  I know it's old. But I am not at liberty to choose
kernel version ...

thanks
Han

>
> --
> Thanks,
> //richard

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to