From: Mike Christie Date: Wed, 3 Sep 2014 05:00:39 +0000 (-0500) Subject: libiscsi: fix potential buffer overrun in __iscsi_conn_send_pdu X-Git-Tag: fixes-for-v3.18-merge-window~25^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbaa42213461e9a722a391b3800d7c111de7049b;p=pandora-kernel.git 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 --- Reading git-diff-tree failed