Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1P0c5J-00036L-VV for mharc-grub-devel@gnu.org; Tue, 28 Sep 2010 11:27:14 -0400 Received: from [140.186.70.92] (port=35598 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0c4w-0002mN-JR for grub-devel@gnu.org; Tue, 28 Sep 2010 11:27:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0c4k-0001H8-FH for grub-devel@gnu.org; Tue, 28 Sep 2010 11:26:39 -0400 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:43242) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0c4k-0001Gw-8b for grub-devel@gnu.org; Tue, 28 Sep 2010 11:26:38 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1P0c4i-0007iS-4d; Tue, 28 Sep 2010 15:26:36 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) id 1P0c4h-00017M-00; Tue, 28 Sep 2010 16:26:35 +0100 Date: Tue, 28 Sep 2010 16:26:35 +0100 From: Colin Watson To: Phillip Susi Message-ID: <20100928152634.GT21862@riva.ucam.org> References: <4C9E5AA3.4030109@gmail.com> <4CA0B3F4.9090607@cfl.rr.com> <20100927161222.GM21862@riva.ucam.org> <4CA1083F.4020301@cfl.rr.com> <20100927233431.GO8579@caffeine.csclub.uwaterloo.ca> <4CA20624.70904@cfl.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CA20624.70904@cfl.rr.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: The development of GNU GRUB , Lennart Sorensen Subject: Re: [RFT] Reed-Solomon X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2010 15:27:12 -0000 On Tue, Sep 28, 2010 at 11:13:40AM -0400, Phillip Susi wrote: > On 9/27/2010 7:34 PM, Lennart Sorensen wrote: > > FlexNet and similar like to write to track 0 sectors (outside partitioned > > space) to store license info. This clobbers part of grub potentially. > > So to make grub more tolerant of such misbehaviour, the idea suggested > > was to add error correction to grub so it can survive attacks on its code > > (and even potential disk errors). > > Ahh, neat. Two sectors of ECC can fix one that is completely destroyed? > I was under the impression that you could only fix a few corrupted > bits, not an entire sector, but I suppose if you add enough ECC... http://en.wikipedia.org/wiki/Reed-Solomon_error_correction says that t check symbols can correct up to floor(t/2) symbols. (ISTR Vladimir said he had a variant which did better than this, but I haven't looked yet.) > I take it that someone has already made sure that the misbehaved > software only uses a single sector? All the examples I've seen so far are thus. Of course if you have multiple infections then you're doomed, but hopefully the probability of multiple infections goes down fairly sharply ... -- Colin Watson [cjwatson@ubuntu.com]