Return-Path: Received: from mail.linux-iscsi.org ([67.23.28.174]:50861 "EHLO linux-iscsi.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbdDBWnp (ORCPT ); Sun, 2 Apr 2017 18:43:45 -0400 Message-ID: <1491173023.8846.45.camel@haakon3.risingtidesystems.com> Subject: Re: [PATCH 1/6] target: Fix VERIFY and WRITE VERIFY command parsing From: "Nicholas A. Bellinger" To: Bart Van Assche Cc: target-devel@vger.kernel.org, Max Lohrmann , stable@vger.kernel.org Date: Sun, 02 Apr 2017 15:43:43 -0700 In-Reply-To: <20170330171244.8346-2-bart.vanassche@sandisk.com> References: <20170330171244.8346-1-bart.vanassche@sandisk.com> <20170330171244.8346-2-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 Thu, 2017-03-30 at 10:12 -0700, Bart Van Assche wrote: > Use the value of the BYTCHK field to determine the size of the > Data-Out buffer. For VERIFY, honor the VRPROTECT, DPO and FUA > fields. This patch avoids that LIO complains about a mismatch > between the expected transfer length and the SCSI CDB length > if the value of the BYTCHK field is 0. > > Signed-off-by: Bart Van Assche > Cc: Max Lohrmann > Cc: > --- > drivers/target/target_core_sbc.c | 71 +++++++++++++++++++++++++++++++++++----- > 1 file changed, 62 insertions(+), 9 deletions(-) Applied, but dropping the unnecessary stable CC'. Since the code as-is generates a warning and doesn't fail the command, it's not a candidate for stable.