]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
NFSv4: Fix a pNFS layout related use-after-free race when freeing the inode
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 25 Nov 2020 17:06:14 +0000 (12:06 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Dec 2020 19:05:54 +0000 (14:05 -0500)
commitb6d49ecd1081740b6e632366428b960461f8158b
tree35779fadb7de97f778e36a343d14d92e0d17f19e
parent17068466ad02d3ec07ab1b8f3f97928598affc9a
NFSv4: Fix a pNFS layout related use-after-free race when freeing the inode

When returning the layout in nfs4_evict_inode(), we need to ensure that
the layout is actually done being freed before we can proceed to free the
inode itself.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4super.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h