Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LtAZ3-00061e-8S for mharc-grub-devel@gnu.org; Sun, 12 Apr 2009 21:02:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtAZ1-00061F-Aq for grub-devel@gnu.org; Sun, 12 Apr 2009 21:02:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtAZ0-00060l-6R for grub-devel@gnu.org; Sun, 12 Apr 2009 21:02:18 -0400 Received: from [199.232.76.173] (port=42984 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtAZ0-00060d-2X for grub-devel@gnu.org; Sun, 12 Apr 2009 21:02:18 -0400 Received: from [74.93.104.97] (port=41569 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LtAYz-0001nu-FA for grub-devel@gnu.org; Sun, 12 Apr 2009 21:02:17 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 2E4F7C8C0DD; Sun, 12 Apr 2009 18:02:08 -0700 (PDT) Date: Sun, 12 Apr 2009 18:02:08 -0700 (PDT) Message-Id: <20090412.180208.121488309.davem@davemloft.net> To: grub-devel@gnu.org, phcoder@gmail.com From: David Miller In-Reply-To: <49E1C5FA.7080808@gmail.com> References: <1239517755.3887.24.camel@mj> <20090412.010121.183222401.davem@davemloft.net> <49E1C5FA.7080808@gmail.com> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Subject: Re: [PATCH]: grub: Fix ofdisk disk cache corruption. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2009 01:02:19 -0000 From: phcoder Date: Sun, 12 Apr 2009 12:44:10 +0200 > David Miller wrote: >> From: Pavel Roskin >> Date: Sun, 12 Apr 2009 02:29:15 -0400 >> >>> On Sat, 2009-04-11 at 01:08 -0700, David Miller wrote: >> I think fixing disk cache corruption is more important than >> arguing over the distribution properties of the hash function >> I have choosen. >> > Yes, but weak hash has exactly the same problem, just on other systems Nobody has even shown that the hash is actually weak or not effective in any particular case, theoretical or otherwise. That's why it frustrates me that we're discussing this at all. "That hash might not be good, only 3 bits of entropy" meanwhile we have a disk cache corrupt bug still unfixed. Can't we bicker about these kinds of issues after the bug is fixed? And also, after some proof is given that the hash matters at all. Priorities are definitely wrong here. >>> If you can save the device names, then there is no point in using >>> hashes. You can use (long)devpath. >> Sure we need the hash, to find path entries we've saved beforehand. > You can maintain a table of devpathes in cache and use the index in > this table as id. This way is the safest Ummm, that's essentially what my code does, except that the "index" is the address of the cached path entry itself.