Re: 2.6.0-mm1 - kernel panic (VFS bug?)

From: Valdis . Kletnieks
Date: Mon Jan 05 2004 - 23:13:49 EST


On Tue, 06 Jan 2004 04:52:26 +0100, Libor Vanek <libor@xxxxxxxx> said:

> tmp = getname(filename);
> printk (KERN_INFO "sys_open: %s\n",tmp);

> Unable to handle kernel paging request at virtual address fffffff2

Hmm.. a -14. ;)


You did know that getname can return an error, right? Try this:

tmp = getname(filename);
if ((int) tmp < 0) {
printk (KERN_INFO "sys_open: getname returned error %d\n",tmp);
} else {
printk (KERN_INFO "sys_open: %s\n",tmp);
}

Poking around in fs/namei.c shows that -14 is 'EFAULT' - most likely
some bozo did "fd = open(pointer_to_nowhere,....);". Notice the use
of IS_ERR(tmp) in sys_open() to guard against this....

Attachment: pgp00000.pgp
Description: PGP signature