NFSv4: Fix a pNFS layout related use-after-free race when freeing the inode
stable inclusion from stable-5.10.5 commit 3c0f0f5f58a785fa373fc38200d16feded0ceb5b bugzilla: 46931 -------------------------------- [ Upstream commit b6d49ecd ] 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: NTrond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录