From 2334b1a9df49f40aee3109ad8704355e76997f16 Mon Sep 17 00:00:00 2001 From: Li Lingfeng Date: Tue, 28 Feb 2023 09:21:32 +0800 Subject: [PATCH] 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 00bb60b94f6498691ac79cb042a70185e2b6982d. 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: Li Lingfeng Reviewed-by: Zhang Yi Reviewed-by: Wang Weiyang Signed-off-by: Jialin Zhang --- fs/io-wq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/io-wq.c b/fs/io-wq.c index 56d00f31003b..3d5fc76b92d0 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -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) -- GitLab