[PATCH] util/grub.d/10_linux: Improve initramfs detection

2022-03-16 Thread Oskari Pirhonen
Prefer using a *.old initramfs for *.old kernels if it exists. Otherwise look for an initramfs without the suffix. Also add detection for initramfs of the form *.img.old. For example, Gentoo's sys-kernel/genkernel installs it as initramfs-*.img and moves any existing one to initramfs-*.img.old.

Re: [PATCH] gdb: Add malloc and free symbols to kernel.exec to improve gdb functionality

2022-03-16 Thread Daniel Kiper
On Tue, Mar 15, 2022 at 02:36:12PM -0500, Glenn Washburn wrote: > On Tue, 15 Mar 2022 14:23:48 +0100 > Daniel Kiper wrote: > > > On Fri, Mar 11, 2022 at 12:09:58AM +0100, Daniel Kiper wrote: > > > On Wed, Mar 09, 2022 at 02:25:28PM -0600, Glenn Washburn wrote: > > > > On Wed, 9 Mar 2022 16:49:57

Re: [PATCH 2/2] kern: Ensure that parser allocated memory is not leaked

2022-03-16 Thread Daniel Kiper
On Wed, Mar 16, 2022 at 05:25:05PM +, Darren Kenny wrote: > While it would appear unlikely that the memory allocated in *argv in > grub_parser_split_cmdline() would be leaked, we should try ensure that > it doesn't leak by calling grub_free() before we return from > grub_rescue_parse_line(). >

Re: [PATCH 1/2] grub-mkimage: Only check aarch64 relocations when built for aarch64

2022-03-16 Thread Daniel Kiper
On Wed, Mar 16, 2022 at 05:25:04PM +, Darren Kenny wrote: > Coverity flagged the switch checks for R_AARCH64_* as being logically > dead code, since it could never happen on x86 due to the masking of the > values earlier in the code. > > A check for building on __ARM_ARCH (which gcc and clang

Re: [PATCH v9 0/8] Update gnulib version and drop most gnulib patches

2022-03-16 Thread Daniel Kiper
On Tue, Mar 15, 2022 at 02:05:37PM -0400, Robbie Harwood wrote: > This update adds two patches (dkiper's __set_errno() and my autotools warnings > fix). There are not changes to other patches in the series (except maybe > things introduced by git rebase). > > Be well, > --Robbie > > Daniel Kiper

[PATCH 1/2] grub-mkimage: Only check aarch64 relocations when built for aarch64

2022-03-16 Thread Darren Kenny
Coverity flagged the switch checks for R_AARCH64_* as being logically dead code, since it could never happen on x86 due to the masking of the values earlier in the code. A check for building on __ARM_ARCH (which gcc and clang define) and for MKIMAGE_ELF64 (which GRUB defines) has been added to

[PATCH 2/2] kern: Ensure that parser allocated memory is not leaked

2022-03-16 Thread Darren Kenny
While it would appear unlikely that the memory allocated in *argv in grub_parser_split_cmdline() would be leaked, we should try ensure that it doesn't leak by calling grub_free() before we return from grub_rescue_parse_line(). To avoid a possible double-free, grub_parser_split_cmdline() is being

Re: Re: [PATCH] net: fix null pointer dereference when parsing ICMP6_ROUTER_ADVERTISE messages

2022-03-16 Thread zhangqiumiao via Grub-devel
On Thu, Feb 17, 2022 at 03:32:52PM -0600, Glenn Washburn wrote: > On Thu, 17 Feb 2022 21:48:58 +0800 > Qiumiao Zhang via Grub-devel wrote: > > > During UEFI PXE boot in IPv6 network, if the DHCP server adopts > > stateful automatic configuration, when the client receives the > >