Re: strange grub error on ARM64

2023-03-09 Thread Atish Patra
On Mon, Mar 6, 2023 at 7:21 PM Michael Chang wrote: > > On Mon, Mar 06, 2023 at 04:22:53PM -0800, Atish Patra wrote: > > On Mon, Mar 6, 2023 at 1:25 PM Fabian Vogt wrote: > > > > > > Hi, > > > > > > Am Montag, 6. März 2023, 21:59:23 CET schrieb Daniel Kiper: > > > > Adding Gary and Michael... > >

[PATCH] util/grub-module-verifierXX.c: Add module_size parameter to functions for sanity checking

2023-03-09 Thread Alec Brown
In grub-module-verifierXX.c, the function grub_module_verifyXX() performs an initial check that the ELF section headers are within the module's size, but doesn't check if the sections being accessed have contents that are within the module's size. In particular, we need to check that sh_offset and

Re: [RFC PATCH] gdb: Add more support for debugging on EFI platforms

2023-03-09 Thread Robbie Harwood
Glenn Washburn writes: > If the configure option --enable-efi-debug is given, then enable the > printing early in EFI startup of the command needed to load symbols for > the GRUB EFI kernel. This is needed because EFI firmware determines where > to load the GRUB EFI at runtime, and so the relevan

[v8 PATCH 0/3] Unify ARM64 & RISC-V Linux Loader

2023-03-09 Thread Atish Patra
This series unifies the linux loader for ARM64 & RISC-V. The linux loader for ARM64 is pretty much arch independent. Thus, this series just moves it to the common directory and update the make files. This series also removes the arch specific kernel image haders for ARM64, RISC-V, ARM as suggested

[v8 PATCH 2/3] efi: Remove arch specific image headers for RISC-V, ARM64, ARM

2023-03-09 Thread Atish Patra
The arch specific image header details are not very useful as most of the grub just looks at the PE/COFF spec parameters (PE32 magic and header offset). Remove the arch specific images headers and define a generic arch headers that provide enough PE/COFF fields for grub to parse kernel images corr

[v8 PATCH 1/3] loader: Move arm64 linux loader to common code

2023-03-09 Thread Atish Patra
ARM64 linux loader code is written in such a way that it can be reused across different architectures without much change. Move it to common code so that RISC-V doesn't have to define a separate loader. Signed-off-by: Atish Patra Reviewed-by: Daniel Kiper --- grub-core/Makefile.core.def

[v8 PATCH 3/3] RISC-V: Use common linux loader

2023-03-09 Thread Atish Patra
RISC-V doesn't have to do anything very different from other architectures to loader EFI stub linux kernel. As a result, just use the common linux loader instead of defining a RISC-V specific linux loader. Signed-off-by: Atish Patra Reviewed-by: Daniel Kiper --- grub-core/Makefile.core.def|

Re: strange grub error on ARM64

2023-03-09 Thread Michael Chang via Grub-devel
On Thu, Mar 09, 2023 at 02:10:54AM -0800, Atish Patra wrote: > On Mon, Mar 6, 2023 at 7:21 PM Michael Chang wrote: > > > > On Mon, Mar 06, 2023 at 04:22:53PM -0800, Atish Patra wrote: > > > On Mon, Mar 6, 2023 at 1:25 PM Fabian Vogt wrote: > > > > > > > > Hi, > > > > > > > > Am Montag, 6. März 20