Re: [PATCH] nfsd: Fix oops when parsing a 0 length export

From: J. Bruce Fields
Date: Tue Nov 22 2011 - 15:59:32 EST


On Tue, Nov 22, 2011 at 10:33:29PM +0200, Sasha Levin wrote:
> On Tue, 2011-11-22 at 15:28 -0500, J. Bruce Fields wrote:
> > On Fri, Nov 18, 2011 at 12:14:49PM +0200, Sasha Levin wrote:
> > > expkey_parse() oopses when handling a 0 length export. This is easily
> > > triggerable from usermode by writing 0 bytes into
> > > '/proc/[proc id]/net/rpc/nfsd.fh/channel'.
> >
> > Thanks--how did you run across this?
> >
> > --b.
>
> Tried running a fuzzer on the system.

OK, thanks. As far as I can tell this could only be hit by a privileged
user doing something stupid. And the bug has been there forever.

So I'm inclined just to queue this up for 3.3.

--b.
--
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/