Skip to contentSkip to conversation

2.6.1-mm1 - OOPs and hangs during modprobe

DISCUSSION Rusty Russell 2 participants 2 messages Jan 10, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

In message <[email protected]> you write:

Quoted 1 line

dude,

Oops, you have an older version.

How did that happen... oh, because I sent it to you. Fuck.

But either way, it shouldn't be triggering. Andrew, please revert it, and I'll work with Vladis to figure out what's happening.

Vladis, relative patch, actually sets error code. What happens now?

Please send module which fails if it still fails...

Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

kernel/module.c +1 -0
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.6.1-rc2-bk2/kernel/module.c working-2.6.1-rc2-bk2-truncated_module/kernel/module.c
@@ -1682,5 +1688,6 @@ static struct module *load_module(void _
 
  truncated:
 	printk(KERN_ERR "Module len %lu truncated\n", len);
+	err = -ENOEXEC;
 	goto free_hdr;
 }
#2 lore raw
Quoted 1 line · Rusty Russell

Vladis, relative patch, actually sets error code. What happens now?

I still get this in the dmesg (2 modules won't load - most of rest are fine)

Module len 6897 truncated
Module len 19014 truncated

However, at least now modprobe manages not to hose up the entire modules stuff, but simply exits with this error:

FATAL: Error inserting aes (/lib/modules/2.6.1-mm1/kernel/crypto/aes.ko): Invali d module format

and lsmod and 'cat /proc/modules' don't get borked up afterwards.

Quoted 1 line

Please send module which fails if it still fails...

Sent under separate cover, the list probably doesn't want the 2 .ko files.. ;)