Re: [BUG]Missing i_sb NULL pointer check in destroy_inode()

From: Mingming Cao
Date: Mon Nov 24 2003 - 15:09:40 EST


On Mon, 2003-11-24 at 11:27, Andrew Morton wrote:
> Mingming Cao <cmm@xxxxxxxxxx> wrote:
> >
> > destroy_inode() dereferences inode->i_sb without checking if it is NULL.
> > This is inconsistent with its caller: iput() and clear_inode(), both of
> > which check inode->i_sb before dereferencing it.
>
> I assume this has only been observed with an out-of-tree filesystem, but
> yes, the consistency is good.
>

Yes, the crash happened with an out-of-tree filesystem. Thanks.

-Mingming


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/