]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: nfs_delegation_find_inode_server must first reference the superblock
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Jan 2021 20:46:06 +0000 (15:46 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Jan 2021 21:29:28 +0000 (16:29 -0500)
commit85ba91a9e469b35a6b64744ada7f0bcf3c839e6a
tree129c5fefeed6674677a955447557301516562d35
parent1ce938b58aeab0c3d5d6f6f46f7333afd69c2ade
NFS: nfs_delegation_find_inode_server must first reference the superblock

Before referencing the inode, we must ensure that the superblock can be
referenced. Otherwise, we can end up with iput() calling superblock
operations that are no longer valid or accessible.

Fixes: a96797ccba14 ("NFSv4: Fix an Oops during delegation callbacks")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c