Return-Path: Received: from mail.linux-iscsi.org ([67.23.28.174]:50773 "EHLO linux-iscsi.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750747AbdFBEPc (ORCPT ); Fri, 2 Jun 2017 00:15:32 -0400 Message-ID: <1496376930.27407.234.camel@haakon3.risingtidesystems.com> Subject: Re: [PATCH 04/33] target: Fix BYTCHK=0 handling for VERIFY and WRITE AND VERIFY commands From: "Nicholas A. Bellinger" To: Bart Van Assche Cc: target-devel@vger.kernel.org, Hannes Reinecke , Christoph Hellwig , Andy Grover , David Disseldorp , stable@vger.kernel.org Date: Thu, 01 Jun 2017 21:15:30 -0700 In-Reply-To: <20170523234854.21452-5-bart.vanassche@sandisk.com> References: <20170523234854.21452-1-bart.vanassche@sandisk.com> <20170523234854.21452-5-bart.vanassche@sandisk.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On Tue, 2017-05-23 at 16:48 -0700, Bart Van Assche wrote: > For VERIFY and WRITE AND VERIFY commands the size of the SCSI > Data-Out buffer can differ from the size of the data area on the > storage medium that is affected by the command. Make sure that > the Data-Out buffer size is computed correctly if the BYTCHK > field in the CDB is zero. This patch reverts commit 984a9d4c40be > and thereby restores commit 0e2eb7d12eaa. Additionally, > sbc_parse_cdb() is modified such that the data buffer size is > computed correctly for the affected commands if BYTCHK == 0. > This patch is the combination of two patches that got positive > reviews. > > References: commit 984a9d4c40be ("Revert "target: Fix VERIFY and WRITE VERIFY command parsing"") > References: commit 0e2eb7d12eaa ("target: Fix VERIFY and WRITE VERIFY command parsing") > Signed-off-by: Bart Van Assche > Cc: Hannes Reinecke > Cc: Christoph Hellwig > Cc: Andy Grover > Cc: David Disseldorp > Cc: > --- > drivers/target/target_core_sbc.c | 79 ++++++++++++++++++++++++++++++++++------ > 1 file changed, 67 insertions(+), 12 deletions(-) > This patch ignored the review comments from the last round: http://www.spinics.net/lists/target-devel/msg15306.html http://www.spinics.net/lists/target-devel/msg15327.html Until these are addressed as requested, dropping this patch for now.