Mike Christie
05a86e78ea
scsi: iscsi: target: Fix conn_ops double free
...
If iscsi_login_init_conn fails it can free conn_ops.
__iscsi_target_login_thread will then call iscsi_target_login_sess_out
which will also free it.
This fixes the problem by organizing conn allocation/setup into parts that
are needed through the life of the conn and parts that are only needed for
the login. The free functions then release what was allocated in the alloc
functions.
With this patch we have:
iscsit_alloc_conn/iscsit_free_conn - allocs/frees the conn we need for the
entire life of the conn.
iscsi_login_init_conn/iscsi_target_nego_release - allocs/frees the parts
of the conn that are only needed during login.
Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-08-30 07:07:12 -04:00
..
iscsi
scsi: iscsi: target: Fix conn_ops double free
2018-08-30 07:07:12 -04:00
loopback
SCSI misc on 20180815
2018-08-15 22:06:26 -07:00
sbp
scsi: target: srp, vscsi, sbp, qla: use target_remove_session
2018-08-02 15:29:31 -04:00
tcm_fc
scsi: tcm_fc: use target_remove_session
2018-08-02 15:29:31 -04:00
Kconfig
target: don't depend on SCSI
2018-08-02 15:19:49 -06:00
Makefile
target_core_alua.c
target_core_alua.h
target_core_configfs.c
scsi: target: add helper to check if dev is configured
2018-07-30 23:17:53 -04:00
target_core_device.c
scsi: target: add helper to check if dev is configured
2018-07-30 23:17:53 -04:00
target_core_fabric_configfs.c
scsi: target: add helper to check if dev is configured
2018-07-30 23:17:53 -04:00
target_core_fabric_lib.c
target_core_file.c
scsi: target: target/file: Add support of direct and async I/O
2018-05-14 22:40:08 -04:00
target_core_file.h
scsi: target: target/file: Add support of direct and async I/O
2018-05-14 22:40:08 -04:00
target_core_hba.c
target_core_iblock.c
target: convert to bioset_init()/mempool_init()
2018-05-30 15:33:32 -06:00
target_core_iblock.h
target: convert to bioset_init()/mempool_init()
2018-05-30 15:33:32 -06:00
target_core_internal.h
scsi: target: Fold core_tmr_handle_tas_abort() into transport_cmd_finish_abort()
2018-07-02 16:44:31 -04:00
target_core_pr.c
scsi: target: Fix truncated PR-in ReadKeys response
2018-06-19 21:36:37 -04:00
target_core_pr.h
target_core_pscsi.c
SCSI misc on 20180610
2018-06-10 13:01:12 -07:00
target_core_pscsi.h
target_core_rd.c
target_core_rd.h
target_core_sbc.c
scsi: target: Use config_item_name() instead of open-coding it
2018-07-02 16:44:30 -04:00
target_core_spc.c
target_core_stat.c
target_core_tmr.c
scsi: target: Fold core_tmr_handle_tas_abort() into transport_cmd_finish_abort()
2018-07-02 16:44:31 -04:00
target_core_tpg.c
target_core_transport.c
scsi: target: add session removal function
2018-08-02 15:29:31 -04:00
target_core_ua.c
scsi: target: Remove se_dev_entry.ua_count
2018-07-02 16:44:32 -04:00
target_core_ua.h
scsi: target: Fix handling of removed LUNs
2018-07-02 16:44:32 -04:00
target_core_user.c
SCSI misc on 20180815
2018-08-15 22:06:26 -07:00
target_core_xcopy.c
scsi: target: Introduce transport_init_session()
2018-07-02 16:44:31 -04:00
target_core_xcopy.h