From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JfIYr-0004IX-IV for mharc-grub-devel@gnu.org; Fri, 28 Mar 2008 13:40:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfIYo-0004Fi-LK for grub-devel@gnu.org; Fri, 28 Mar 2008 13:40:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfIYm-0004Ci-FK for grub-devel@gnu.org; Fri, 28 Mar 2008 13:40:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfIYm-0004CQ-6B for grub-devel@gnu.org; Fri, 28 Mar 2008 13:40:12 -0400 Received: from c60.cesmail.net ([216.154.195.49]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1JfIYl-0007X3-Oh for grub-devel@gnu.org; Fri, 28 Mar 2008 13:40:11 -0400 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 28 Mar 2008 13:40:10 -0400 Received: from [192.168.1.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id 5D041619058 for ; Fri, 28 Mar 2008 13:40:10 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <1206631822.2380.2.camel@dv> References: <20080326220948.xw0fmregqocog0s0@webmail.spamcop.net> <1206631822.2380.2.camel@dv> Content-Type: text/plain Date: Fri, 28 Mar 2008 13:40:09 -0400 Message-Id: <1206726009.20032.11.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-3.fc8) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Native CD test results 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: Fri, 28 Mar 2008 17:40:15 -0000 On Thu, 2008-03-27 at 11:30 -0400, Pavel Roskin wrote: > By the way, the fix for GRUB hanging when booting from a CD is not > making any difference on the system where I discovered it initially. > I > need to look deeper. Actually, it is making the difference, I must have used a wrong disk when testing. It's working fine. So I've applied the patch. And while "looking deeper", it turned out that there is a scary timebomb in kern/i386/pc/startup.S. Only the initial part of that file is supposed to be uncompressed, but in fact, the error handlers of the decompression function itself were spilling into the compressed area. Adding even minimal debugging code would push the main part of lzo1x_decompress() beyond the boundary defined by GRUB_KERNEL_MACHINE_RAW_SIZE, which would crash even before "Welcome to GRUB". So I've applied another patch that assures that to uncompressed code stays below GRUB_KERNEL_MACHINE_RAW_SIZE. It would be nice to avoid any constant here and make grub-mkimage.c use a label in the image, but it would need more work and more testing. -- Regards, Pavel Roskin