Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 18 Mar 2001 20:26:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 18 Mar 2001 20:26:03 -0500 Received: from neon-gw.transmeta.com ([209.10.217.66]:10770 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Sun, 18 Mar 2001 20:25:53 -0500 Date: Sun, 18 Mar 2001 17:24:46 -0800 (PST) From: Linus Torvalds To: cc: , , , , Subject: Re: [PATCH] off-by-1 error in ide-probe (2.4.x) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Mar 2001 Andries.Brouwer@cwi.nl wrote: > > Agreed. That would be a trivially easy bug in the firmware, limiting to > 255 sectors seems safer. > > Linus > > Yes, possibly. > I checked old standards, and see that "0 means 256 as a sector count" > is already in ATA-1. Yes. But we could have some silly bug in the Linux drivers too, if some part of the driver reads back the sector count and doesn't do the 0==256 conversion. So let's not blame the disk quite yet. Although it would be interesting to hear if the problem only happens for a specific disk or manufacturer... Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/