target-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix possible hangs and race conditions during login
@ 2023-03-10 10:04 Maurizio Lombardi
  2023-03-10 10:04 ` [PATCH 1/3] target: iscsi: fix hang in the iSCSI login code Maurizio Lombardi
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Maurizio Lombardi @ 2023-03-10 10:04 UTC (permalink / raw)
  To: martin.petersen; +Cc: michael.christie, serapheim.dimitro, target-devel

PATCH 1 fixes a possible hang when during a login operation the initiator
stops sending data to the target and the login_work doesn't get scheduled
by the sk_data_ready callback.

PATCH 3 fixes a bug in iscsi_target_locate_portal(), in the error
code path the login semaphore may end up being released even if
no one called down() against it, this may allow
multiple threads to access the semaphore-protected code.

Maurizio Lombardi (3):
  target: iscsi: fix hang in the iSCSI login code
  target: iscsi: remove unused transport_timer
  target: iscsi: prevent login threads from racing between each other

 drivers/target/iscsi/iscsi_target_login.c |  1 +
 drivers/target/iscsi/iscsi_target_nego.c  | 60 +++++++++++------------
 drivers/target/iscsi/iscsi_target_util.c  | 26 ++++++++++
 drivers/target/iscsi/iscsi_target_util.h  |  3 ++
 include/target/iscsi/iscsi_target_core.h  |  2 +-
 5 files changed, 59 insertions(+), 33 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-03-21 17:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-10 10:04 [PATCH 0/3] Fix possible hangs and race conditions during login Maurizio Lombardi
2023-03-10 10:04 ` [PATCH 1/3] target: iscsi: fix hang in the iSCSI login code Maurizio Lombardi
2023-03-10 19:53   ` Mike Christie
2023-03-13  9:06     ` Maurizio Lombardi
2023-03-13 23:52   ` Mike Christie
2023-03-14 11:09     ` Maurizio Lombardi
2023-03-14 21:23       ` Mike Christie
2023-03-21 17:13         ` Maurizio Lombardi
2023-03-10 10:04 ` [PATCH 2/3] target: iscsi: remove unused transport_timer Maurizio Lombardi
2023-03-10 10:04 ` [PATCH 3/3] target: iscsi: prevent login threads from racing between each other Maurizio Lombardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).