]> git.baikalelectronics.ru Git - kernel.git/commit
target: Fix VERIFY_16 handling in sbc_parse_cdb
authorMax Lohrmann <post@wickenrode.com>
Wed, 8 Mar 2017 06:09:56 +0000 (22:09 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Mar 2017 06:15:23 +0000 (22:15 -0800)
commit0e1dd6be9c637a238a60c66b8c1b4ee9c35f6e23
treebe5d70303efcfd0c4f14c17dfd2ad31299e65b20
parent123fc1e73e46c71166932ca7f41489393ce08b63
target: Fix VERIFY_16 handling in sbc_parse_cdb

As reported by Max, the Windows 2008 R2 chkdsk utility expects
VERIFY_16 to be supported, and does not handle the returned
CHECK_CONDITION properly, resulting in an infinite loop.

The kernel will log huge amounts of this error:

kernel: TARGET_CORE[iSCSI]: Unsupported SCSI Opcode 0x8f, sending
CHECK_CONDITION.

Signed-off-by: Max Lohrmann <post@wickenrode.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c