RE: Defcon Bill

Robert Harley (Robert.Harley@inria.fr)
Thu, 23 Apr 1998 09:33:07 +0200 (MET DST)


I agree that this thread is pretty boring, mostly because it's already
been done about a bazillion times in other forums. One correction though:

>Duh, well, "freeing free inode" is a fatal kernel panic.

Not on Linux, it appears:

------------------------------------------------------------------------------
>egrep '[fF]ree [iI]node' `find /usr/src/linux -name '*.c' -print`

/usr/src/linux/fs/inode.c: printk("VFS: iput: trying to free free inode\n");
[...]

>cd /usr/src/linux
>more fs/inode.c
[...]
if (!inode->i_count) {
printk("VFS: iput: trying to free free inode\n");
printk("VFS: device %s, inode %lu, mode=0%07o\n",
kdevname(inode->i_rdev), inode->i_ino, inode->i_mode);
return;
}
[...]
------------------------------------------------------------------------------

No panic() in sight. There is one panic() in there which has nothing to
do with freeing free inodes:

------------------------------------------------------------------------------
> egrep panic fs/inode.c
panic("VFS: iget with sb==NULL");
------------------------------------------------------------------------------

Anyway this is academic, as far as I'm concerned, since none of them
have ever happened to me.

Rob.