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: v3.2.64~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74cb172240786f18938ab882c552e49a05a2cbc8;p=pandora-kernel.git libiscsi: fix potential buffer overrun in __iscsi_conn_send_pdu commit db9bfd64b14a3a8f1868d2164518fdeab1b26ad1 upstream. 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 Signed-off-by: James Bottomley Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed