[PATCH v4] templates: introduce GRUB_TOP_LEVEL_* vars

2022-10-17 Thread Denton Liu
A user may wish to use an image that is not sorted as the "latest" version as the top-level entry. For example, in Arch Linux, if a user has the LTS and regular kernels installed, `/boot/vmlinuz-linux-lts` gets sorted as the "latest" compared to `/boot/vmlinuz-linux`. However, a user may wish to us

[PATCH 0/2] Fixes for CIDs 86750 and 396931

2022-10-17 Thread Jagannathan Raman
Hi, This series provides fixes for CIDs 86750 and 396931. Kindly share your feedback. Thank you very much! -- Jag Jagannathan Raman (2): zfs: dnode_get_path(): update dangling dn_new pointer kern/buffer: grub_buffer_free: handle NULL input pointer grub-core/fs/zfs/zfs.c | 6 ++ grub-

[PATCH 2/2] kern/buffer: grub_buffer_free: handle NULL input pointer

2022-10-17 Thread Jagannathan Raman
grub_buffer_free() can handle NULL input pointer, similar to grub_free(). If the pointer is not referencing any memory location, grub_buffer_free() need not perform any function. Fixes: CID 396931 Signed-off-by: Jagannathan Raman --- grub-core/kern/buffer.c | 7 +-- 1 file changed, 5 insert

[PATCH 1/2] zfs: dnode_get_path(): update dangling dn_new pointer

2022-10-17 Thread Jagannathan Raman
dnode_get_path() traverses dnode structures to locate the dnode leaf of a given path. When the leaf is a symlink to another path, it restarts the traversal either from root or from a different path. In such cases, dn_new must be re-initialized Passes 'make check' Fixes: CID 86750 Signed-off-by:

Re: [PATCH 0/2] Fixes for CIDs 86750 and 396931

2022-10-17 Thread Ross Philipson
On 10/17/22 10:04, Jagannathan Raman wrote: Hi, This series provides fixes for CIDs 86750 and 396931. Kindly share your feedback. Thank you very much! These LGTM Reviewed-by: Ross Philipson -- Jag Jagannathan Raman (2): zfs: dnode_get_path(): update dangling dn_new pointer kern/bu

Re: [PATCH v4 5/6] efi: implement LoadFile2 initrd loading protocol for Linux

2022-10-17 Thread Daniel Kiper
On Thu, Sep 08, 2022 at 03:30:16PM +0200, Ard Biesheuvel wrote: > Recent Linux kernels will invoke the LoadFile2 protocol installed on > a well-known vendor media path to load the initrd if it is exposed by > the firmware. Using this method is preferred for two reasons: > - the Linux kernel is in c

Re: [PATCH v4 6/6] linux: ignore FDT unless we need to modify it

2022-10-17 Thread Daniel Kiper
On Thu, Sep 08, 2022 at 03:30:17PM +0200, Ard Biesheuvel wrote: > Now that we implemented support for the LoadFile2 protocol for initrd > loading, there is no longer a need to pass the initrd parameters via > the device tree. This means that when the LoadFile2 protocol is being > used, there is no

Re: [PATCH v2] grub-core/disk/cryptodisk.c: Fix unintentional integer overflow

2022-10-17 Thread Daniel Kiper
On Sat, Oct 15, 2022 at 11:13:09AM +0200, Patrick Steinhardt wrote: > On Fri, Oct 14, 2022 at 05:47:08PM -0400, Alec Brown wrote: > > In the function grub_cryptodisk_endecrypt(), a for loop is incrementing the > > variable i by (1U << log_sector_size). The variable i is of type grub_size_t > > whic

Re: [PATCH 0/2] Fixes for CIDs 86750 and 396931

2022-10-17 Thread Daniel Kiper
On Mon, Oct 17, 2022 at 10:37:08AM -0400, Ross Philipson wrote: > On 10/17/22 10:04, Jagannathan Raman wrote: > > Hi, > > > > This series provides fixes for CIDs 86750 and 396931. > > > > Kindly share your feedback. > > > > Thank you very much! > > These LGTM > > Reviewed-by: Ross Philipson Revie

Re: [PATCH v4] templates: introduce GRUB_TOP_LEVEL_* vars

2022-10-17 Thread Oskari Pirhonen
On Mon, Oct 17, 2022 at 03:35:32 -0700, Denton Liu wrote: > A user may wish to use an image that is not sorted as the "latest" > version as the top-level entry. For example, in Arch Linux, if a user > has the LTS and regular kernels installed, `/boot/vmlinuz-linux-lts` > gets sorted as the "latest"