Re: [PATCH driver-core-next] kernfs: fix fill_super failure path

From: Tejun Heo
Date: Sun Sep 28 2014 - 17:09:18 EST


On Sun, Sep 28, 2014 at 01:12:54PM -0400, Tejun Heo wrote:
> After kernfs_fill_super() failure, the half-initialized sb still goes
> through kernfs_kill_sb() for destruction; unfortunately,
> kernfs_kill_sb() dereferences sb->s_root which may be NULL after
> fill_super failure triggering the following oops when such error
> condition is artificially injected.

Please ignore this patch. This isn't enough.

Thanks.

--
tejun
--
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/