iscsi-target: graceful disconnect on invalid mapping to iovec
authorImran Haider <imran1008@gmail.com>
Sun, 8 May 2016 15:17:54 +0000 (11:17 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 10 May 2016 08:20:03 +0000 (01:20 -0700)
commit2b16509c5f26d6c160bd89164cf18f18d713daf6
tree8be900fa169301d0f7e58ccc81379cea6ffa7dec
parentcb7911694771faf16930b72a104d3cd41d500e2c
iscsi-target: graceful disconnect on invalid mapping to iovec

Ensures the first page entry is within bounds. A failed check would
terminate the iSCSI connection instead of causing a NULL-dereference.

This violation seems to happen with certain iSCSI commands where the
computed CDB length is zero but the expected transfer length is
non-zero. The real problem is probably on the iSCSI initiator side
since there is a discrepancy between the iSCSI header and the
encapsulated CDB Opcode.

Signed-off-by: Imran Haider <imran1008@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
This page took 0.02555 seconds and 5 git commands to generate.