From: Mike Christie Date: Wed, 3 Sep 2014 05:00:39 +0000 (-0500) Subject: [SCSI] libiscsi: fix potential buffer overrun in __iscsi_conn_send_pdu X-Git-Tag: fixes-for-v3.18-merge-window~103^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db9bfd64b14a3a8f1868d2164518fdeab1b26ad1;p=pandora-kernel.git [SCSI] libiscsi: fix potential buffer overrun in __iscsi_conn_send_pdu This patches fixes a potential buffer overrun in __iscsi_conn_send_pdu. This function is used by iscsi drivers and userspace to send iscsi PDUs/ commands. For login commands, we have a set buffer size. For all other commands we do not support data buffers. This was reported by Dan Carpenter here: http://www.spinics.net/lists/linux-scsi/msg66838.html Reported-by: Dan Carpenter Signed-off-by: Mike Christie Reviewed-by: Sagi Grimberg Signed-off-by: Christoph Hellwig Cc: stable@vger.kernel.org Signed-off-by: James Bottomley --- Reading git-diff-tree failed