]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
NFSv4: nfs4_copy_delegation_stateid() must fail if the delegation is invalid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 22 Sep 2016 17:38:54 +0000 (13:38 -0400)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 8 Nov 2016 16:45:32 +0000 (16:45 +0000)
commitf24cf2d0917eebeb7a868fa40903ef4a83fab10b
treef7711033a92e3a2aead0520fdecac620f11376c5
parente9d02ccea57422766a534c5939697b819dfac296
NFSv4: nfs4_copy_delegation_stateid() must fail if the delegation is invalid

BugLink: http://bugs.launchpad.net/bugs/1637510
commit aa05c87f23efe417adc7ff9b4193b7201ec0dd79 upstream.

We must not allow the use of delegations that have been revoked or are
being returned.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Fixes: 869f9dfa4d6d ("NFSv4: Fix races between nfs_remove_bad_delegation()...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/nfs/delegation.c