Mike Christie db9bfd64b1 [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 <dan.carpenter@oracle.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2014-09-19 13:22:59 +01:00
..
2014-07-17 22:07:37 +02:00
2014-07-25 17:16:54 -04:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-07-25 17:16:59 -04:00
2014-05-19 19:12:23 +02:00
2014-07-25 17:16:55 -04:00
2014-08-08 15:57:29 -07:00
2014-06-06 07:57:37 -06:00
2014-07-17 22:07:37 +02:00
2014-08-15 18:28:58 -06:00
2014-07-25 17:16:55 -04:00
2014-07-17 22:07:37 +02:00
2014-08-08 15:57:29 -07:00
2014-07-17 22:07:37 +02:00
2014-08-08 15:57:29 -07:00
2014-07-25 07:43:43 -04:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:23 -04:00
2014-07-17 22:07:37 +02:00
2014-06-09 18:54:06 -07:00
2014-07-17 22:07:40 +02:00
2014-07-17 22:07:38 +02:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:17 -04:00
2014-08-08 15:57:29 -07:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2014-08-08 15:57:29 -07:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:16 -04:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:27 -04:00
2014-07-25 17:16:55 -04:00
2014-07-17 22:07:44 +02:00
2014-08-08 15:57:29 -07:00
2013-04-09 14:13:15 -04:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:35 +02:00
2014-07-17 22:07:37 +02:00
2014-05-28 18:14:16 +02:00
2014-07-17 22:07:37 +02:00
2014-06-06 07:57:37 -06:00
2014-07-25 17:16:55 -04:00
2013-04-09 14:13:17 -04:00
2014-07-17 22:07:37 +02:00
2014-07-25 17:16:55 -04:00
2014-04-10 15:30:35 -07:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2013-11-23 22:33:50 -08:00
2014-07-17 22:07:33 +02:00
2014-07-25 07:43:45 -04:00
2014-07-17 22:07:39 +02:00
2014-07-17 22:07:39 +02:00
2014-07-17 22:07:41 +02:00
2012-09-14 17:59:29 +01:00
2014-07-25 17:23:25 -04:00
2014-07-17 22:07:37 +02:00
2014-05-28 12:05:37 +02:00
2014-05-28 12:05:37 +02:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:15 -04:00