Return-Path: Received: from mail.linux-iscsi.org ([67.23.28.174]:39327 "EHLO linux-iscsi.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752639AbdEKF2l (ORCPT ); Thu, 11 May 2017 01:28:41 -0400 Message-ID: <1494480519.16894.138.camel@haakon3.risingtidesystems.com> Subject: Re: [PATCH 05/19] target: Allocate sg-list correctly From: "Nicholas A. Bellinger" To: Bart Van Assche Cc: "hch@lst.de" , "ddiss@suse.de" , "hare@suse.com" , "target-devel@vger.kernel.org" , "agrover@redhat.com" , "stable@vger.kernel.org" Date: Wed, 10 May 2017 22:28:39 -0700 In-Reply-To: <1494448260.2578.17.camel@sandisk.com> References: <20170504225102.8931-1-bart.vanassche@sandisk.com> <20170504225102.8931-6-bart.vanassche@sandisk.com> <1494197127.30469.30.camel@haakon3.risingtidesystems.com> <1494265568.2591.12.camel@sandisk.com> <1494389026.16894.69.camel@haakon3.risingtidesystems.com> <1494448260.2578.17.camel@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 Wed, 2017-05-10 at 20:31 +0000, Bart Van Assche wrote: > On Tue, 2017-05-09 at 21:03 -0700, Nicholas A. Bellinger wrote: > > In any event, the point is your patch to add sbc_parse_verify() broke > > existing behavior of WRITE_VERIFY_* by dropping SCF_SCSI_DATA_CDB > > assignment for all cases. > > As I had already explained in detail I disagree with this statement. BTW, did > you know that your patch "target: Fix sbc_parse_verify bytchk = 0 handling" is > not sufficient to avoid a buffer overflow in the iSCSI target driver? One way > to trigger a buffer overflow is by making the initiator send more immediate > data than the Data-Out buffer size derived from the CDB. > If you think you've found a legitimate bug, then post the test case to trigger it atop what's in target-pending/for-next for -rc1. Regardless, your WRITE_VERIFY changes broke existing behavior, and I'm not going to merge a bunch of new code at the last minute.