From: Nicholas Bellinger Date: Mon, 23 Feb 2015 08:57:51 +0000 (-0800) Subject: iscsi-target: Avoid early conn_logout_comp for iser connections X-Git-Tag: omap-for-v4.2/o2_dc~281^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f068fbc82e7696d67b1bb8189306865bedf368b6;p=pandora-kernel.git iscsi-target: Avoid early conn_logout_comp for iser connections This patch fixes a iser specific logout bug where early complete() of conn->conn_logout_comp in iscsit_close_connection() was causing isert_wait4logout() to complete too soon, triggering a use after free NULL pointer dereference of iscsi_conn memory. The complete() was originally added for traditional iscsi-target when a ISCSI_LOGOUT_OP failed in iscsi_target_rx_opcode(), but given iser-target does not wait in logout failure, this special case needs to be avoided. Reported-by: Sagi Grimberg Cc: Sagi Grimberg Cc: Slava Shwartsman Cc: # v3.10+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed