]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rpc_pipefs: fix double-dput()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 3 Apr 2018 05:15:46 +0000 (01:15 -0400)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:35 +0000 (21:36 -0400)
commit9804f172964b2bf4faac6e0e059bd6c1fa39cc50
treed1eb02b61e1035810a4c64ddbafe59caf72c8be9
parent26361574ff001eb91c8d7d860cf8e0064c7867fc
rpc_pipefs: fix double-dput()

[ Upstream commit 4a3877c4cedd95543f8726b0a98743ed8db0c0fb ]

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: Sasha Levin <alexander.levin@microsoft.com>
net/sunrpc/rpc_pipe.c