|
From: richard -r. w. <ric...@gm...> - 2013-03-15 08:35:37
|
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... -- Thanks, //richard |