From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: [PATCH] Check bio address after mapping through partitions. Date: Tue, 31 Oct 2006 08:15:32 +0100 Message-ID: <20061031071531.GT14055@kernel.dk> References: <20061031124940.24199.patches@notabene> <1061031015145.24246@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1061031015145.24246@suse.de> Sender: linux-raid-owner@vger.kernel.org To: NeilBrown Cc: Andrew Morton , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, stable@kernel.org List-Id: linux-raid.ids On Tue, Oct 31 2006, NeilBrown wrote: > This would be good for 2.6.19 and even 18.2, if it is seens acceptable. > raid0 at least (possibly other) can be made to Oops with a bad partition > table and best fix seem to be to not let out-of-range request get down > to the device. > > ### Comments for Changeset > > Partitions are not limited to live within a device. So > we should range check after partition mapping. > > Note that 'maxsector' was being used for two different things. I have > split off the second usage into 'old_sector' so that maxsector can be > still be used for it's primary usage later in the function. > > Cc: Jens Axboe > Signed-off-by: Neil Brown Code looks good to me, but for some reason your comment exceeds 80 chars. Can you please fix that up? Acked-by: Jens Axboe -- Jens Axboe