]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
NFSv4: Don't allow a cached open with a revoked delegation
authorTrond Myklebust <trondmy@gmail.com>
Thu, 31 Oct 2019 22:40:32 +0000 (18:40 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:15 +0000 (13:16 +0100)
commit46b618ff0d7ac824024a3044fe2243ac39f5cfa6
tree39e61668b7dc18f60c2930765958d92998639619
parent15ba0a202a0d8eab614b18dd256f6d5f6ca15560
NFSv4: Don't allow a cached open with a revoked delegation

BugLink: https://bugs.launchpad.net/bugs/1853519
[ Upstream commit be3df3dd4c70ee020587a943a31b98a0fb4b6424 ]

If the delegation is marked as being revoked, we must not use it
for cached opens.

Fixes: 869f9dfa4d6d ("NFSv4: Fix races between nfs_remove_bad_delegation() and delegation return")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/nfs/delegation.c
fs/nfs/delegation.h
fs/nfs/nfs4proc.c