[PATCH v5 0/1] Add support for grub-emu to kexec Linux menu entries

2022-10-19 Thread Robbie Harwood
Address feedback from Daniel's review (interdiff attached). Specifically, perform a style cleanup, add more documentation, and add three comments. Be well, --Robbie Raymund Will (1): Add support for grub-emu to kexec Linux menu entries docs/grub.texi | 28 -- grub-core/Mak

[PATCH v5 1/1] Add support for grub-emu to kexec Linux menu entries

2022-10-19 Thread Robbie Harwood
From: Raymund Will The GRUB emulator is used as a debugging utility but it could also be used as a user-space bootloader if there is support to boot an operating system. The Linux kernel is already able to (re)boot another kernel via the kexec boot mechanism. So the grub-emu tool could rely on

Re: [PATCH v4 1/1] Add support for grub-emu to kexec Linux menu entries

2022-10-19 Thread Robbie Harwood
Daniel Kiper writes: > On Tue, Oct 04, 2022 at 03:16:48PM -0400, Robbie Harwood wrote: > >> + return rc; >> +} >> + >> +static grub_err_t >> +grub_linux_unload (void) >> +{ >> + grub_dl_unref (my_mod); > > I understand that this marks this module as not in use. Right? If yes > please add a comm

[PATCH] diskfilter: don't make a RAID array with more than 1024 disks

2022-10-19 Thread Daniel Axtens
This is 'belt and braces' with commit 12e20a6a695f ("disk/diskfilter: Check calloc() result for NULL"): we end up trying to use too much memory in situations like corrupted Linux software raid setups purporting to use a huge number of disks. Simply refuse to permit such configurations. 1024 is a b

Re: [PATCH v4 1/1] Add support for grub-emu to kexec Linux menu entries

2022-10-19 Thread Oskari Pirhonen
On Tue, Oct 18, 2022 at 15:26:45 -0400, Robbie Harwood wrote: > Oskari Pirhonen writes: > > > On Tue, Oct 04, 2022 at 15:16:48 -0400, Robbie Harwood wrote: > >> From: Raymund Will > >> > >> The GRUB emulator is used as a debugging utility but it could also be > >> used as a user-space bootloade