|
From: Han <kee...@gm...> - 2013-03-15 16:38:12
|
On Fri, Mar 15, 2013 at 1:35 AM, richard -rw- weinberger <ric...@gm...> wrote: > On Fri, Mar 15, 2013 at 5:39 AM, Han <kee...@gm...> 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 |