Commit f29c6ced authored by Li Lingfeng's avatar Li Lingfeng
Browse files

Revert "nfs: fix rpc_task use-after-free when open and close different files concurrently"

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBEAFI


CVE: CVE-2024-53173

--------------------------------

This reverts commit 5cd78a98.

The issue is resolved by replace nfs_release_seqid with
nfs_release_seqid_inorder. The later patch will change nfs_release_seqid
directly and nfs_release_seqid_inorder will be not necessary any more.

Fixes: 5cd78a98 ("nfs: fix rpc_task use-after-free when open and close different files concurrently")
Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 908c8608
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3606,7 +3606,7 @@ static void nfs4_close_done(struct rpc_task *task, void *data)
			res_stateid, calldata->arg.fmode);
out_release:
	task->tk_status = 0;
	nfs_release_seqid_inorder(calldata->arg.seqid);
	nfs_release_seqid(calldata->arg.seqid);
	nfs_refresh_inode(calldata->inode, &calldata->fattr);
	dprintk("%s: done, ret = %d!\n", __func__, task->tk_status);
	return;