Commit 50c12882 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"

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


CVE: CVE-2024-53173

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

This reverts commit aafa6627.

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: aafa6627 ("[Huawei] nfs: fix rpc_task use-after-free when open and close different files concurren
tly")
Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 4dc4cec0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3403,7 +3403,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;