Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JGyBq-0006y9-Ke for mharc-grub-devel@gnu.org; Mon, 21 Jan 2008 10:03:58 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGyBp-0006xq-8d for grub-devel@gnu.org; Mon, 21 Jan 2008 10:03:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGyBo-0006xW-Ga for grub-devel@gnu.org; Mon, 21 Jan 2008 10:03:56 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGyBo-0006xT-69 for grub-devel@gnu.org; Mon, 21 Jan 2008 10:03:56 -0500 Received: from smtp-vbr3.xs4all.nl ([194.109.24.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JGyBn-00059J-Ng for grub-devel@gnu.org; Mon, 21 Jan 2008 10:03:56 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr3.xs4all.nl (8.13.8/8.13.8) with ESMTP id m0LF3r7t061490 for ; Mon, 21 Jan 2008 16:03:53 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20080121144458.GA5144@thorin> Mail-Copies-To: mgerards@xs4all.nl Date: Mon, 21 Jan 2008 16:05:04 +0100 In-Reply-To: <20080121144458.GA5144@thorin> (Robert Millan's message of "Mon, 21 Jan 2008 15:44:58 +0100") Message-ID: <878x2jw76n.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [PATCH] abort when core.img is too big 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, 21 Jan 2008 15:03:57 -0000 Robert Millan writes: > With the addition of memdisk, it is too easy for user to create an image > big enough that would corrupt upper memory (starting with vga region). This > happens at roughly ~600 kiB memdisk size. > > This patch adds a check in grub-mkimage to prevent this. I did also take > the opportunity to reuse the upper memory macro to avoid hardcoding its > address for VGA stuff. > > Comments? This makes sense to me. -- Marco