Patch "scsi: iscsi: Fix set_param() handling" 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

    scsi: iscsi: Fix set_param() handling

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:
     scsi-iscsi-fix-set_param-handling.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.



commit 5b0ec2be53c7f41596c801c50a6befba76c4dbf0
Author: Mike Christie <michael.christie@xxxxxxxxxx>
Date:   Sun Oct 10 11:19:04 2021 -0500

    scsi: iscsi: Fix set_param() handling
    
    [ Upstream commit 187a580c9e7895978dcd1e627b9c9e7e3d13ca96 ]
    
    In commit 9e67600ed6b8 ("scsi: iscsi: Fix race condition between login and
    sync thread") we meant to add a check where before we call ->set_param() we
    make sure the iscsi_cls_connection is bound. The problem is that between
    versions 4 and 5 of the patch the deletion of the unchecked set_param()
    call was dropped so we ended up with 2 calls. As a result we can still hit
    a crash where we access the unbound connection on the first call.
    
    This patch removes that first call.
    
    Fixes: 9e67600ed6b8 ("scsi: iscsi: Fix race condition between login and sync thread")
    Link: https://lore.kernel.org/r/20211010161904.60471-1-michael.christie@xxxxxxxxxx
    Reviewed-by: Lee Duncan <lduncan@xxxxxxxx>
    Reviewed-by: Li Feng <fengli@xxxxxxxxxx>
    Signed-off-by: Mike Christie <michael.christie@xxxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index 41772b88610a..3f7fa8de3642 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -2907,8 +2907,6 @@ iscsi_set_param(struct iscsi_transport *transport, struct iscsi_uevent *ev)
 			session->recovery_tmo = value;
 		break;
 	default:
-		err = transport->set_param(conn, ev->u.set_param.param,
-					   data, ev->u.set_param.len);
 		if ((conn->state == ISCSI_CONN_BOUND) ||
 			(conn->state == ISCSI_CONN_UP)) {
 			err = transport->set_param(conn, ev->u.set_param.param,



[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