]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix a credential refcount leak in nfs41_check_delegation_stateid
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 19 Jul 2019 17:48:44 +0000 (13:48 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Aug 2019 02:35:40 +0000 (22:35 -0400)
commitffb1e5201f9a191a5b9e1029b99ac25ff9d4ee93
tree08f4e0f19d2289f40134d1ac8d9c8dbc5fbbe09d
parent98f2f03894443d3a44ddfe8334be57b6ae4f612b
NFSv4: Fix a credential refcount leak in nfs41_check_delegation_stateid

It is unsafe to dereference delegation outside the rcu lock, and in
any case, the refcount is guaranteed held if cred is non-zero.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c