From: =?ISO-8859-15?Q?Luk=E1=A8_Czerner?= Subject: Re: [PATCH] scsi_debug: Fix off-by-one bug when unmapping region Date: Wed, 5 Sep 2012 15:35:39 -0400 (EDT) Message-ID: References: <1345127925-32042-1-git-send-email-lczerner@redhat.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Martin K. Petersen" Cc: Lukas Czerner , linux-scsi@vger.kernel.org, JBottomley@parallels.com, tytso@mit.edu, pbonzini@redhat.com, linux-kernel@vger.kernel.org List-Id: linux-scsi@vger.kernel.org On Fri, 17 Aug 2012, Martin K. Petersen wrote: > Date: Fri, 17 Aug 2012 12:11:50 -0400 > From: Martin K. Petersen > To: Lukas Czerner > Cc: linux-scsi@vger.kernel.org, JBottomley@parallels.com, tytso@mit.edu, > pbonzini@redhat.com, linux-kernel@vger.kernel.org > Subject: Re: [PATCH] scsi_debug: Fix off-by-one bug when unmapping region > > >>>>> "Lukas" == Lukas Czerner writes: > > Lukas> Currently it is possible to unmap one more block than user > Lukas> requested to due to the off-by-one error in unmap_region(). This > Lukas> is probably due to the fact that the end variable despite its > Lukas> name actually points to the last block to unmap + 1. However in > Lukas> the condition it is handled as the last block of the region to > Lukas> unmap. > > Acked-by: Martin K. Petersen > I am still not seeing it in anywhere, is this going in any time soon ? Thanks! -Lukas