Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W0a6T-0002qN-SC for mharc-grub-devel@gnu.org; Tue, 07 Jan 2014 12:06:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0a6L-0002g7-2t for grub-devel@gnu.org; Tue, 07 Jan 2014 12:06:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0a6C-0005rD-SM for grub-devel@gnu.org; Tue, 07 Jan 2014 12:06:00 -0500 Received: from mail-wi0-f179.google.com ([209.85.212.179]:33270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0a6C-0005qp-LX for grub-devel@gnu.org; Tue, 07 Jan 2014 12:05:52 -0500 Received: by mail-wi0-f179.google.com with SMTP id z2so985878wiv.12 for ; Tue, 07 Jan 2014 09:05:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=Gx5JJvRVgSryPjYLvW3MLbrD5ZjwpDc/afVVaycZqoQ=; b=eyuocuiKjyJnIYEJEVL92l71KwZ9fMm1iTHcGEEdX9GRUhFr7KH77RAhqKIDvHwCOh 3ADjFH0/emDec+4Bcw4PdzVFc/1nGtjIvN5hwBqOP23j9D7Ehs0Ud9FrqEflxOmNfnJN NAbDhrRINbWoPumaD5ugTI/GO8hG8lz7W5ERbC20YIbZ5IMic0F8SyDZa26U1mRS2m4U nQJV5F8PPuUAWnpA/p5c4ZfwWyeF3NUtp90lyr00SpVKo0vUtWSq7WreaVPlE8x/ebV1 rWF1NKrW0lqy9fKw0lGYdLmWLohvYMiiG83tXx7p/1ChH9uDKroFcrwPu/2gCHvunu6e fykQ== X-Gm-Message-State: ALoCoQnOusRMTTEqnMQ0OumvtHYx1O7asNCatGH7T2w8DntYCnq/KSa/aJ6XE4slVODcLZWBNrvP X-Received: by 10.194.78.210 with SMTP id d18mr78589311wjx.27.1389114351562; Tue, 07 Jan 2014 09:05:51 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [46.235.226.95]) by mx.google.com with ESMTPSA id e5sm31155828wja.15.2014.01.07.09.05.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 07 Jan 2014 09:05:50 -0800 (PST) Date: Tue, 7 Jan 2014 17:06:08 +0000 From: Leif Lindholm To: grub-devel@gnu.org Subject: [patch] arm64: set correct length of device path end entry Message-ID: <20140107170607.GB30907@bivouac.eciton.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.179 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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, 07 Jan 2014 17:06:08 -0000 The length of the Device Path End entry in the grub_linux_boot() funtcion is incorrectly set to 0. This triggers an assert failure in debug builds of Tianocore. The correct length is 4 bytes (1 byte type, 1 byte subtype, 2 bytes length). Reported-by: Mark Salter diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c index 9d15aad..7c9bc2b 100644 --- a/grub-core/loader/arm64/linux.c +++ b/grub-core/loader/arm64/linux.c @@ -268,7 +268,7 @@ grub_linux_boot (void) mempath[1].header.type = GRUB_EFI_END_DEVICE_PATH_TYPE; mempath[1].header.subtype = GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE; - mempath[1].header.length = 0; + mempath[1].header.length = 4; b = grub_efi_system_table->boot_services; status = b->load_image (0, grub_efi_image_handle,