]> git.proxmox.com Git - mirror_ubuntu-eoan-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>
Wed, 4 Dec 2019 09:29:26 +0000 (10:29 +0100)
commit62880616a98953f71043134a9352f03c97ff3fac
tree3416757bf2767fad87d11466247ce7823a9fbbf0
parent1794f7bc01ab2e548a9fa90aed71f72f75bfa3cc
NFSv4: Don't allow a cached open with a revoked delegation

BugLink: https://bugs.launchpad.net/bugs/1852338
[ 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: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/nfs/delegation.c
fs/nfs/delegation.h
fs/nfs/nfs4proc.c