]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Dec 2022 15:12:46 +0000 (16:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Dec 2022 15:12:46 +0000 (16:12 +0100)
added patches:
io_uring-add-missing-item-types-for-splice-request.patch

queue-5.10/io_uring-add-missing-item-types-for-splice-request.patch [new file with mode: 0644]
queue-5.10/series

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 (file)
index 0000000..97a0205
--- /dev/null
@@ -0,0 +1,28 @@
+From 3d2b3eb31a1627e03f1a5b8e10c572cc720c8700 Mon Sep 17 00:00:00 2001
+From: Bing-Jhong Billy Jheng <billy@starlabs.sg>
+Date: Thu, 15 Dec 2022 06:43:56 -0800
+Subject: io_uring: add missing item types for splice request
+
+From: Bing-Jhong Billy Jheng <billy@starlabs.sg>
+
+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 <billy@starlabs.sg>
+Reviewed-by: Jens Axboe <axboe@kernel.dk>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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] = {},
index fdf16de22e5d07aba70ee5e47543d7acd104c54c..e0162bec29ff7f7cde1176db19387b07226d5b4d 100644 (file)
@@ -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