]> git.baikalelectronics.ru Git - kernel.git/commit
libiscsi: fix potential buffer overrun in __iscsi_conn_send_pdu
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 3 Sep 2014 05:00:39 +0000 (00:00 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Sep 2014 21:11:20 +0000 (14:11 -0700)
commit0f340d8896b56764987b3dc451dfee5d8a6f8ecc
tree3799037192bc9e23b2e67e2b2b76db60f9e2a7da
parent59d6482368f4aea02efa8674be3380578dc9e9ef
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>
drivers/scsi/libiscsi.c