Re: [PATCH 1/2] iscsi target: Set conn->sess to NULL when iscsi_login_set_conn_values fails

2018-08-27 Thread Matthew Wilcox
On Mon, Aug 27, 2018 at 02:45:15PM -0500, Mike Christie wrote: > Signed-off-by: Vincent Pelletier > [rebased against idr/ida changes and to handle ret review comments from > Matthew] > Signed-off-by: Mike Christie > Cc: Matthew Wilcox Reviewed-by: Matthew Wilcox

[PATCH 1/2] iscsi target: Set conn->sess to NULL when iscsi_login_set_conn_values fails

2018-08-27 Thread Mike Christie
From: Vincent Pelletier Fixes a use-after-free reported by KASAN when later iscsi_target_login_sess_out gets called and it tries to access conn->sess->se_sess: Disabling lock debugging due to kernel taint iSCSI Login timeout on Network Portal [::]:3260 iSCSI Login negotiation failed. ===