]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi-target: Avoid rejecting incorrect ITT for Data-Out
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 20 Jun 2014 17:59:57 +0000 (10:59 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 27 Jun 2014 18:47:57 +0000 (11:47 -0700)
commit747f33815659d82bba3f6dbb86ea412ec246f1ce
treecdbafbf0d3bddad22937229fc4e329b77588718b
parentcb2b79b503b5c4006d48ebaf403636044d91718e
iscsi-target: Avoid rejecting incorrect ITT for Data-Out

This patch changes iscsit_check_dataout_hdr() to dump the incoming
Data-Out payload when the received ITT is not associated with a
WRITE, instead of calling iscsit_reject_cmd() for the non WRITE
ITT descriptor.

This addresses a bug where an initiator sending an Data-Out for
an ITT associated with a READ would end up generating a reject
for the READ, eventually resulting in list corruption.

Reported-by: Santosh Kulkarni <santosh.kulkarni@calsoftinc.com>
Reported-by: Arshad Hussain <arshad.hussain@calsoftinc.com>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c