]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: nfs_igrab_and_active must first reference the superblock
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Jan 2021 20:58:08 +0000 (15:58 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Jan 2021 21:29:28 +0000 (16:29 -0500)
commita0b91915b7385bfd8288536f00d07d5fe44d8725
treece45855890dae75c07ca36f1f53b982731e26d26
parent99c3b1bbf2a1293d0187d651f865b17af8424591
NFS: nfs_igrab_and_active 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: 786de96e871e ("NFSv4: Ensure we reference the inode for return-on-close in delegreturn")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/internal.h