提交 2334b1a9 编写于 作者: L Li Lingfeng 提交者: Jialin Zhang

Revert "[Huawei] io-wq: Switch io_wqe_worker's fs before releasing request"

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

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

This reverts commit 00bb60b9.

We need to apply patch 788d0824269bef (io_uring: import 5.15-stable
io_uring) to move io_uring to separate directory and solve
the problem of CVE-2023-0240.
Revert this patch and add it again after patch 788d0824269bef to
reduce conflicts.
Signed-off-by: NLi Lingfeng <lilingfeng3@huawei.com>
Reviewed-by: NZhang Yi <yi.zhang@huawei.com>
Reviewed-by: NWang Weiyang <wangweiyang2@huawei.com>
Signed-off-by: NJialin Zhang <zhangjialin11@huawei.com>
上级 cb0861ae
......@@ -578,8 +578,6 @@ static void io_worker_handle_work(struct io_worker *worker)
linked = NULL;
}
io_assign_current_work(worker, work);
if (current->fs != worker->restore_fs)
current->fs = worker->restore_fs;
wq->free_work(old_work);
if (linked)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册