linux-2.1.86: sd_mod.o causes kernel panic

Adam J. Richter (adam@yggdrasil.com)
Thu, 12 Feb 1998 20:38:31 -0800


Doing "insmod sd_mod.o" under Linux 2.1.86 generates a
kernel panic on my system, while it worked fine under Linux 2.1.85.

The kernel panic occurs in qm_symbols in line 577 of
kernel/module.c. Compiling in the 2.1.86 with the 2.1.85 version of
kernel/module.c does not appear to change anything, so the actual problem
does not appear to be the minor changes to kernel/module.c. Here is where
the panic occurs in qm_symbols:

i = len = 0;
s = mod->syms;
[...]
for (; i < mod->nsyms ; ++i, ++s, vals += 2) {
len = strlen(s->name)+1;
^^^^^^^^^^^^^^^^^^^^^^^

mod->nsyms is 32, but mod->name[0] is NULL. This causes a kernel
panic.

I am still trying to puzzle this problem out, but I am sending it
to this list now in case it is obvious to anyone.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu