Patch "io_uring: Fix unsigned 'res' comparison with zero in io_fixup_rw_res()" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    io_uring: Fix unsigned 'res' comparison with zero in io_fixup_rw_res()

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     io_uring-fix-unsigned-res-comparison-with-zero-in-io_fixup_rw_res.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From harshit.m.mogalapalli@xxxxxxxxxx  Tue Jan 10 18:11:33 2023
From: Harshit Mogalapalli <harshit.m.mogalapalli@xxxxxxxxxx>
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@xxxxxxxxxxxxxxx, harshit.m.mogalapalli@xxxxxxxxxx, error27@xxxxxxxxx, darren.kenny@xxxxxxxxxx, Jens Axboe <axboe@xxxxxxxxx>, Pavel Begunkov <asml.silence@xxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, io-uring@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Message-ID: <20230110164647.755556-1-harshit.m.mogalapalli@xxxxxxxxxx>

From: Harshit Mogalapalli <harshit.m.mogalapalli@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 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
@@ -2702,7 +2702,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;
 


Patches currently in stable-queue which might be from harshit.m.mogalapalli@xxxxxxxxxx are

queue-5.10/scsi-scsi_debug-fix-a-warning-in-resp_verify.patch
queue-5.10/scsi-scsi_debug-fix-a-warning-in-resp_report_zones.patch
queue-5.10/scsi-scsi_debug-fix-a-warning-in-resp_write_scat.patch
queue-5.10/io_uring-fix-unsigned-res-comparison-with-zero-in-io_fixup_rw_res.patch
queue-5.10/xen-privcmd-fix-a-possible-warning-in-privcmd_ioctl_.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux