[PATCH v3 1/2] lsefi: fixed memory leaks

2022-02-15 Thread Renaud Métrich
Signed-off-by: Renaud Métrich --- grub-core/commands/efi/lsefi.c | 4 1 file changed, 4 insertions(+) diff --git a/grub-core/commands/efi/lsefi.c b/grub-core/commands/efi/lsefi.c index d1ce99af4..b1f2d4695 100644 --- a/grub-core/commands/efi/lsefi.c +++ b/grub-core/commands/efi/lsefi.c @@ -

efi: new 'connectefi' command

2022-02-15 Thread Renaud Métrich
This set of patches fixes a memory leak in 'lsefi' command and introduces a new 'connectefi pciroot|scsi' command which recursively connects the corresponding EFI handles. This is required on VMWare with efi.quickBoot enabled when chainloading to grub on the harddisk from a network boot, otherwise

[PATCH v3 2/2] efi: new 'connectefi' command

2022-02-15 Thread Renaud Métrich
When efi.quickboot is enabled on VMWare (which is the default for hardware release 16 and later), it may happen that not all EFI devices are connected. Due to this, browsing the devices in make_devices() just fails to find devices, in particular disks or partitions for a given disk. This typically

Re: [PATCH v2 1/2] efi: new 'connectefi' command

2022-02-15 Thread Renaud Métrich
Please ignore, deprecated by "efi: new 'connectefi' command" (v3). Sorry for the mess. Le 2/14/22 à 14:23, Renaud Métrich a écrit : When efi.quickboot is enabled on VMWare (which is the default for hardware release 16 and later), it may happen that not all EFI devices are connected. Due to this

Re: [PATCH v2 2/2] lsefi: fixed memory leaks

2022-02-15 Thread Renaud Métrich
Please ignore, deprecated by "efi: new 'connectefi' command" (v3). Sorry for the mess. Le 2/14/22 à 14:25, Renaud Métrich a écrit : Signed-off-by: Renaud Métrich --- grub-core/commands/efi/lsefi.c | 4 1 file changed, 4 insertions(+) diff --git a/grub-core/commands/efi/lsefi.c b/grub-

Re: [PATCH v2 2/2] lsefi: fixed memory leaks

2022-02-15 Thread Glenn Washburn
On Tue, 15 Feb 2022 14:07:15 +0100 Renaud Métrich wrote: > Please ignore, deprecated by "efi: new 'connectefi' command" (v3). I'm not sure what was eactly wrong with v3 (haven't looked at the difference). However, v3 was done better in some regards. On this list it is customary to have multi-pat

[PATCH 0/3] Fixes and enhancements for memory debugging

2022-02-15 Thread Glenn Washburn
The first patch supercedes a patch sent earlier of the same subject. I've removed the #undef if --mm-debug is not passwed to configure. The idea is that even if --mm-debug is not passed to configure, the user should still be able to enable memory debugging by passing -DMM_DEBUG in CFLAGS. The seco

[PATCH 3/3] mm: Temporarily disable grub_mm_debug while calling grub_vprintf in grub_printf

2022-02-15 Thread Glenn Washburn
To prevent infinite recursion when grub_mm_debug is on, disable it when calling grub_vprintf. One such call loop is: grub_vprintf -> parse_printf_args -> parse_printf_arg_fmt -> grub_debug_calloc -> grub_printf -> grub_vprintf Signed-off-by: Glenn Washburn --- grub-core/kern/misc.c | 19 ++

[PATCH] misc: Fix whitespace formatting

2022-02-15 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- Daniel, I think I recall you saying you accumulate whitespace fixes. So here's a patch to add to those, if so. Otherwise, the commit message could probably be a little better,so feel free to modify as desired. Glenn --- tests/util/grub-fs-tester.in | 246 +

[PATCH 1/3] configure: Properly handle MM_DEBUG

2022-02-15 Thread Glenn Washburn
Define MM_DEBUG in config.h when --enable-mm-debug is passed to configure. It was being defined in config-util.h which only gets used when building GRUB utilities for the host side. The enabling of debugging for memory management in include/grub/mm.h explicitly does not happen when compiling for th

[PATCH 2/3] mm: Export grub_mm_dump and grub_mm_dump_free

2022-02-15 Thread Glenn Washburn
These functions may be useful within modules as well. Export them so that modules can use them. Signed-off-by: Glenn Washburn --- include/grub/mm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/grub/mm.h b/include/grub/mm.h index 9c38dd3ca5..44fde7cb90 100644 --

Re: [PATCH] 30_os-prober: Properly handle multiple initrd paths

2022-02-15 Thread P Levine
On Tue, Dec 21, 2021 at 11:47 PM Peter Levine wrote: > os-prober now effectively handles multiple paths passed to initrd, but > grub-mkconfig still truncates off any subsequent space-delimited paths. > > Support proper parsing of space-delimited initrd paths passed from > os-prober for distributi