]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi-target: Reject unsupported multi PDU text command sequence
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 13 Nov 2013 22:33:24 +0000 (14:33 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 13 Nov 2013 22:33:24 +0000 (14:33 -0800)
commit1a58464b11cc372f17f3bf3691c75644ffe666e5
tree23e7d142f4215a04a14ee1a85e97fef99c7622f1
parenta7f53b36f2738ac7ee2ac88469edf14caa6cfb7d
iscsi-target: Reject unsupported multi PDU text command sequence

This patch adds a check to reject text commands with F_BIT=0 ||
C_BIT=1, as multi PDU text command sequences are currently
unsupported.

This avoids the case where a text command received with F_BIT=0,
was generating a text response with F_BIT=1 which is a protocol
error according to RFC-3720 Section 10.11.1.

Reported-by: Arshad Hussain <arshad.hussain@calsoftinc.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c