]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "target: Fix VERIFY and WRITE VERIFY command parsing"
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 11 May 2017 07:23:08 +0000 (00:23 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 11 May 2017 08:01:05 +0000 (01:01 -0700)
commitbdd7dde5d15c327e8188e1fbc3df56100d8cdf33
tree8c6d4d75f51aa8e64a6c53e8f0891130c84184be
parent0d41520a236f98ddfa8df225a59132aed72e7a24
Revert "target: Fix VERIFY and WRITE VERIFY command parsing"

This reverts commit 308ba83515372e4f2c4e5b8cc59f9e5e2d75ee27

  Author: Bart Van Assche <bart.vanassche@sandisk.com>
  Date:   Thu Mar 30 10:12:39 2017 -0700

      target: Fix VERIFY and WRITE VERIFY command parsing

This patch broke existing behaviour for WRITE_VERIFY because
it dropped the original SCF_SCSI_DATA_CDB assignment for
bytchk = 0 so target_cmd_size_check() no longer rejected
this case, allowing an overflow case to trigger an OOPs
in iscsi-target.

Since the short term and long term fixes are still being
discussed, revert it for now since it's late in the merge
window and try again in v4.13-rc1.

Conflicts:
drivers/target/target_core_sbc.c

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c