Skip to contentSkip to conversation

New: Enabling Coda with Devfs causes Kernel Panic

Bug 583 Martin J. Bligh 2 participants 2 messages Apr 15, 2003 – Apr 16, 2003 Coda file system

lore
Share & tools
lore
#0 lore raw

http://bugme.osdl.org/show_bug.cgi?id=583

Summary: Enabling Coda with Devfs causes Kernel Panic
Kernel Version: 2.5.67
Status: NEW
Severity: blocking
Owner: [email protected]
Submitter: [email protected]

Distribution: Gentoo 1.4_rc
Hardware Environment: Micron Millenia Transport, P133 (i586) Software Environment: i586-pc-linux-gnu, posix threads, gcc 3.2.2 Problem Description: Compiling Devfs into kernel is fine. Compiling Coda into kernel is fine. Compiling Devfs and Coda together is not fine, causes a kernel panic.
Sorry, I don't have a console - here is what I can see of the error:

CPU:     0 
EIP:     0060:[<C020605F>]    Not tainted 
EFLAGS: 00010202 

EIP is at vsnprintf+0x2f/0x460
eax: c2fd3f43 ebx: c2fd3f44 ecx: c040776c edx: 00000000
esi: c2fd3f44 edi: 00000000 ebp: c2fd3f24 esp: c2fd3f0c
ds: 007b es: 007b ss: 0068
Process swapper (pid: 1, threadinfo=c2fd2000 task c2fd0040)

Stack: 000001f0 c2fd3f2c c2fd3f83 c2fd3f44 c2fd3fa0 00000000 c2fd3f8c
c01a4a62            c2fd3f44 00000040 00000000 c2fd3f98 c01360d1 00000000
00000246 00000043            00000001 00000000 c2fd3f70 c0150e47 00000018
000000d0 00000000 00000001   
[<c01a4a62>] devfs_mk_dir+0x22/0xd0 
[<c01360d1>] kmalloc+0x81/0x99 
[<c0150e47>] register_chrdev_region+0x17/0x120 
[<c0150f6b>] register_chrdev+0x1b/0x20 
[<c019a9ab>] init_coda_psdev+0x4b/0x90 
[<c019b050>] init_once+0x0/0x20 
[<c01050a2>] init+0x32/0x190 
[<c0105070>] init+0x0/0x190 
[<c0107255>] kernel_thread_helper+0x50/0x10 
 
Code: 80 3a 00 74 1d 8a 02 3c 25 74 3d 3b 75 f0 77 05 88 06 8b 55 

<0>Kernel panic: Attempted to kill init!

Steps to reproduce:
Compile Devfs and Codafs into kernel (have not tested as modules.) This causes kernel panic upon boot.

maintainer
#1 lore raw
Quoted 4 lines · Martin J. Bligh

http://bugme.osdl.org/show_bug.cgi?id=583

[<c01a4a62>] devfs_mk_dir+0x22/0xd0 
[<c01360d1>] kmalloc+0x81/0x99 
[<c0150e47>] register_chrdev_region+0x17/0x120 

Part of the backtrace doesn't make much sense, but the problem is caused by the devfs_mk_dir simplification that went in a couple of weeks ago.

Jan

fs/coda/psdev.c renamed from fs/coda/psdev.c.orig +1 -1
@@ -371,7 +371,7 @@
 		     CODA_PSDEV_MAJOR);
               return -EIO;
 	}
-	devfs_mk_dir (NULL, "coda", NULL);
+	devfs_mk_dir ("coda");
 	for (i = 0; i < MAX_CODADEVS; i++) {
 		char name[16];
 		sprintf(name, "coda/%d", i);