Commit 5287a532 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 4f97f859.

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: 4f97f859 ("nfs: fix rpc_task use-after-free when open and close different files concurrently")
Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 5672a2cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3612,7 +3612,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: ret = %d\n", __func__, task->tk_status);
	return;