[PATCH] libiscsi: Fix use-after-free race during iscsi_session_teardown

2017-07-12 Thread 'Khazhismel Kumykov' via open-iscsi
Session attributes exposed through sysfs were freed before the device was destroyed, resulting in a potential use-after-free. Free these attributes after removing the device. Signed-off-by: Khazhismel Kumykov --- drivers/scsi/libiscsi.c | 8 1 file changed, 4 insertions(+), 4 deletions(

[PATCH] libiscsi: Remove iscsi_destroy_session

2017-07-12 Thread 'Khazhismel Kumykov' via open-iscsi
iscsi_session_teardown was the only user of this function. Function currently is just short for iscsi_remove_session + iscsi_free_session. Signed-off-by: Khazhismel Kumykov --- with "libiscsi: Fix use after free race during iscsi_session_teardown" removing the last user. drivers/scsi/scsi_tr