]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2023 17:12:55 +0000 (18:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2023 17:12:55 +0000 (18:12 +0100)
added patches:
io_uring-fix-unsigned-res-comparison-with-zero-in-io_fixup_rw_res.patch

queue-5.15/io_uring-fix-unsigned-res-comparison-with-zero-in-io_fixup_rw_res.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/io_uring-fix-unsigned-res-comparison-with-zero-in-io_fixup_rw_res.patch b/queue-5.15/io_uring-fix-unsigned-res-comparison-with-zero-in-io_fixup_rw_res.patch
new file mode 100644 (file)
index 0000000..722f4de
--- /dev/null
@@ -0,0 +1,32 @@
+From harshit.m.mogalapalli@oracle.com  Tue Jan 10 18:11:33 2023
+From: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
+Date: Tue, 10 Jan 2023 08:46:47 -0800
+Subject: io_uring: Fix unsigned 'res' comparison with zero in io_fixup_rw_res()
+Cc: stable@vger.kernel.org, harshit.m.mogalapalli@oracle.com, error27@gmail.com, darren.kenny@oracle.com, Jens Axboe <axboe@kernel.dk>, Pavel Begunkov <asml.silence@gmail.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org
+Message-ID: <20230110164647.755556-1-harshit.m.mogalapalli@oracle.com>
+
+From: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
+
+Smatch warning: io_fixup_rw_res() warn:
+       unsigned 'res' is never less than zero.
+
+Change type of 'res' from unsigned to long.
+
+Fixes: d6b7efc722a2 ("io_uring/rw: fix error'ed retry return values")
+Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ io_uring/io_uring.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/io_uring/io_uring.c
++++ b/io_uring/io_uring.c
+@@ -2701,7 +2701,7 @@ static bool __io_complete_rw_common(stru
+       return false;
+ }
+-static inline int io_fixup_rw_res(struct io_kiocb *req, unsigned res)
++static inline int io_fixup_rw_res(struct io_kiocb *req, long res)
+ {
+       struct io_async_rw *io = req->async_data;
index 3aff7249268e09182d61e701a10803839e60e327..4d6e16e9c356befe0099dfc68bcfacf48f4d3b9f 100644 (file)
@@ -286,3 +286,4 @@ btrfs-make-thaw-time-super-block-check-to-also-verify-checksum.patch
 net-hns3-fix-return-value-check-bug-of-rx-copybreak.patch
 mbcache-avoid-nesting-of-cache-c_list_lock-under-bit-locks.patch
 efi-random-combine-bootloader-provided-rng-seed-with-rng-protocol-output.patch
+io_uring-fix-unsigned-res-comparison-with-zero-in-io_fixup_rw_res.patch