]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libiscsi_tcp: fix max_r2t manipulation
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 27 Jan 2012 03:13:10 +0000 (21:13 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:09:00 +0000 (08:09 -0600)
commitd26652c07038281390040502d18799077e4956fb
treebc3d95ab7c1cc5d779df4696aaa138b7cbd89825
parent94d1e4cb48876ce42835410e3d7d73ce9fb65c1d
[SCSI] libiscsi_tcp: fix max_r2t manipulation

Problem description from Xi Wang:
A large max_r2t could lead to integer overflow in subsequent call to
iscsi_tcp_r2tpool_alloc(), allocating a smaller buffer than expected
and leading to out-of-bounds write.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/cxgbi/libcxgbi.c
drivers/scsi/iscsi_tcp.c
drivers/scsi/libiscsi.c
drivers/scsi/libiscsi_tcp.c
include/scsi/libiscsi.h
include/scsi/libiscsi_tcp.h