From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:53873 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755884AbdEEJGy (ORCPT ); Fri, 5 May 2017 05:06:54 -0400 Date: Fri, 5 May 2017 11:06:53 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: Nicholas Bellinger , target-devel@vger.kernel.org, Hannes Reinecke , Christoph Hellwig , Andy Grover , David Disseldorp , stable@vger.kernel.org Subject: Re: [PATCH 05/19] target: Allocate sg-list correctly Message-ID: <20170505090653.GA5248@lst.de> References: <20170504225102.8931-1-bart.vanassche@sandisk.com> <20170504225102.8931-6-bart.vanassche@sandisk.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170504225102.8931-6-bart.vanassche@sandisk.com> Sender: stable-owner@vger.kernel.org List-ID: On Thu, May 04, 2017 at 03:50:48PM -0700, Bart Van Assche wrote: > Avoid that the iSCSI target driver complains about "Initial page entry > out-of-bounds" and closes the connection if the SCSI Data-Out buffer > is larger than the buffer size specified through the CDB. This patch > prevents that running the libiscsi regression tests against LIO trigger > an infinite loop of libiscsi submitting a command, LIO closing the > connection and libiscsi resubmitting the same command. Can you add a bit more of an explanation of why this happens? I've just tried to verify the area, but at least while sitting in a conference talk I can't quite make sense of the changes.