Skip to content

series to fix qla2xxx use-after-free

Roland Dreier linux-scsi 1 version Applied

Status from this message: Applied to for-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 17 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7qla2xxx: Get rid of redundant qla_tgt_sess.tearing_downdrivers/scsi/qla2xxx/qla_target.c drivers/scsi/qla2xxx/qla_target.h drivers/scsi/qla2xxx/tcm_qla2xxx.c+1 -31 reply
2/7target: Un-export target_get_sess_cmd()drivers/target/target_core_transport.c include/target/target_core_fabric.h+3 -41 reply
3/7sbp-target: Consolidate duplicated error path code in sbp_handle_command()drivers/target/sbp/sbp_target.c+12 -161 reply
4/7target: Allow for target_submit_cmd() returning errorsdrivers/scsi/qla2xxx/tcm_qla2xxx.c drivers/target/sbp/sbp_target.c drivers/target/target_core_transport.c +3 more+27 -273 replies
5/7target: Check sess_tearing_down in target_get_sess_cmd()drivers/target/target_core_transport.c+19 -59 replies
6/7qla2xxx: Remove racy, now-redundant check of sess_tearing_downdrivers/scsi/qla2xxx/qla_target.c+3 -131 reply
7/7target: Remove se_session.sess_wait_listdrivers/scsi/qla2xxx/tcm_qla2xxx.c drivers/target/target_core_transport.c include/target/target_core_base.h +1 more+12 -151 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] series to fix qla2xxx use-after-free

From: Roland Dreier <[email protected]>

Hi Nic,

Here's a series that's fundamentally about fixing a use-after-free in qla_target code. It ends up being seven patches because I wanted to make each step easy to review, and several of these are just cleanups that stand on their own.

We have a few more qla2xxx-related fixes that I need to clean up and merge with the latest. I'll send them soon.

Roland Dreier (7):
qla2xxx: Get rid of redundant qla_tgt_sess.tearing_down
target: Un-export target_get_sess_cmd()
sbp-target: Consolidate duplicated error path code in
sbp_handle_command()
target: Allow for target_submit_cmd() returning errors
target: Check sess_tearing_down in target_get_sess_cmd()
qla2xxx: Remove racy, now-redundant check of sess_tearing_down
target: Remove se_session.sess_wait_list

 drivers/scsi/qla2xxx/qla_target.c      |   16 ++--------
 drivers/scsi/qla2xxx/qla_target.h      |    1 -
 drivers/scsi/qla2xxx/tcm_qla2xxx.c     |   10 +++---
 drivers/target/sbp/sbp_target.c        |   36 ++++++++++-----------
 drivers/target/target_core_transport.c |   55 ++++++++++++++++++++------------
 drivers/target/tcm_fc/tfc_cmd.c        |    8 +++--
 drivers/usb/gadget/tcm_usb_gadget.c    |   20 +++++-------
 include/target/target_core_base.h      |    1 -
 include/target/target_core_fabric.h    |    5 ++-
 9 files changed, 73 insertions(+), 79 deletions(-)
Signature · 1 line
1.7.10.4