From 9b18ca4945a796f374711c8a320d345f0bf65787 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 15 Dec 2022 16:12:46 +0100 Subject: [PATCH] 5.10-stable patches added patches: io_uring-add-missing-item-types-for-splice-request.patch --- ...issing-item-types-for-splice-request.patch | 28 +++++++++++++++++++ queue-5.10/series | 1 + 2 files changed, 29 insertions(+) create mode 100644 queue-5.10/io_uring-add-missing-item-types-for-splice-request.patch diff --git a/queue-5.10/io_uring-add-missing-item-types-for-splice-request.patch b/queue-5.10/io_uring-add-missing-item-types-for-splice-request.patch new file mode 100644 index 00000000000..97a02050199 --- /dev/null +++ b/queue-5.10/io_uring-add-missing-item-types-for-splice-request.patch @@ -0,0 +1,28 @@ +From 3d2b3eb31a1627e03f1a5b8e10c572cc720c8700 Mon Sep 17 00:00:00 2001 +From: Bing-Jhong Billy Jheng +Date: Thu, 15 Dec 2022 06:43:56 -0800 +Subject: io_uring: add missing item types for splice request + +From: Bing-Jhong Billy Jheng + +Splice is like read/write and should grab current->nsproxy, denoted by +IO_WQ_WORK_FILES as it refers to current->files as well + +Signed-off-by: Bing-Jhong Billy Jheng +Reviewed-by: Jens Axboe +Signed-off-by: Greg Kroah-Hartman +--- + fs/io_uring.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/fs/io_uring.c ++++ b/fs/io_uring.c +@@ -936,7 +936,7 @@ static const struct io_op_def io_op_defs + .needs_file = 1, + .hash_reg_file = 1, + .unbound_nonreg_file = 1, +- .work_flags = IO_WQ_WORK_BLKCG, ++ .work_flags = IO_WQ_WORK_BLKCG | IO_WQ_WORK_FILES, + }, + [IORING_OP_PROVIDE_BUFFERS] = {}, + [IORING_OP_REMOVE_BUFFERS] = {}, diff --git a/queue-5.10/series b/queue-5.10/series index fdf16de22e5..e0162bec29f 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -3,3 +3,4 @@ vfs-fix-copy_file_range-regression-in-cross-fs-copies.patch vfs-fix-copy_file_range-averts-filesystem-freeze-protection.patch nfp-fix-use-after-free-in-area_cache_get.patch fuse-always-revalidate-if-exclusive-create.patch +io_uring-add-missing-item-types-for-splice-request.patch -- 2.47.3