OSDN Git Service

rpc_pipefs: fix double-dput()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 3 Apr 2018 05:15:46 +0000 (01:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:32:11 +0000 (09:32 +0200)
commit20e96d9038ca54a738561aa8b4c06fd84349e730
tree95232bce446470f9b017c61808bfa8e0aae912a6
parent873b214be5693bdafcfe5ff205d6ace37e1e3ecd
rpc_pipefs: fix double-dput()

commit 4a3877c4cedd95543f8726b0a98743ed8db0c0fb upstream.

if we ever hit rpc_gssd_dummy_depopulate() dentry passed to
it has refcount equal to 1.  __rpc_rmpipe() drops it and
dput() done after that hits an already freed dentry.

Cc: stable@kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/rpc_pipe.c