Hi, Le Thu, 2 Aug 2007 14:22:08 -0600, Bruce Rowen <browen@xxxxxxxxxxxx> a écrit : > __asm__ __volatile__( > c016d3ee: 49 dec %ecx > c016d3ef: 78 08 js c016d3f9 > <__register_chrdev_region+0x69> > -> c016d3f1: ac lods %ds:(%esi),%al > c016d3f2: aa stos %al,%es:(%edi) > c016d3f3: 84 c0 test %al,%al I'm not an expert, but I think that this lods/stos sequence is the code of strncpy() [1], used in __register_chrdev_region() to copy the provided 'name' to 'cd->name'. It looks like the 'name' pointer passed to the function was null. > I've reinstalled the 'kmalloc()' call that also tripped: > > BUG: unable to handle kernel NULL pointer dereference at virtual > address 00000025 Something looks really bad. Can you send us your full, buildable, source code ? Sincerly, Thomas [1] http://lxr.free-electrons.com/source/include/asm-i386/string.h#043 -- Thomas Petazzoni - thomas.petazzoni@xxxxxxxx http://{thomas,sos,kos}.enix.org - http://www.toulibre.org http://www.{livret,agenda}dulibre.org -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ