Re: [SECURITY PATCH 000/117] Multiple GRUB2 vulnerabilities - 2021/03/02 round

2021-03-09 Thread Neal Gompa
On Tue, Mar 2, 2021 at 4:08 PM Daniel Kiper wrote: > > Hi Adrian, > > On Tue, Mar 02, 2021 at 08:37:14PM +0100, John Paul Adrian Glaubitz wrote: > > Hi Daniel! > > > > On 3/2/21 7:00 PM, Daniel Kiper wrote: > > > The BootHole vulnerability [1][2] announced last year encouraged many > > > people t

Re: [PATCH v2 26/30] btdfs: grub2-btrfs-05-grub2-mkconfig

2024-10-12 Thread Neal Gompa
On Fri, Oct 11, 2024 at 6:40 PM Leo Sandoval wrote: > > From: Michael Chang > > Signed-off-by: Michael Chang This patch needs a real commit message. I know which series of patches this comes from, and they *all* need real commit messages. Can you and Michael work to figure out proper messages

Re: [PATCH v2 25/30] btrfs: grub2-btrfs-03-follow_default

2024-10-12 Thread Neal Gompa
On Fri, Oct 11, 2024 at 6:40 PM Leo Sandoval wrote: > > From: Michael Chang > > Signed-off-by: Michael Chang > Signed-off-by: Robbie Harwood This needs a real commit message describing what this does. Please work with Michael to come up with one. :) > --- > grub-core/fs/btrfs.c | 107 +++

Re: [PATCH v2 00/30] Second Distro-agnostic series taken from Fedora Rawhide

2024-10-12 Thread Neal Gompa
On Fri, Oct 11, 2024 at 6:39 PM Leo Sandoval wrote: > > This is the second patch series, taken from Fedora Rawhide spec [1] that > is distro-agnostic. The goal is to merge most of them so all the > community/distros > would benefit. > > Changes since v1: > - delete 0024-efinet-and-bootp-add-s

Re: [PATCH v2 28/30] btrfs: Grub not working correctly with btrfs snapshots (bsc#1026511)

2024-10-12 Thread Neal Gompa
On Fri, Oct 11, 2024 at 6:39 PM Leo Sandoval wrote: > > From: Michael Chang > > Signed-off-by: Michael Chang > Signed-off-by: Robbie Harwood Can we have a description of what this patch does for the commit message? The bug report[1] is private, so I have no context here. [1]: https://bugzilla

Re: [PATCH v1 33/37] btrfs: grub2-btrfs-06-subvol-mount

2024-10-15 Thread Neal Gompa
On Tue, Oct 8, 2024 at 2:59 AM Michael Chang via Grub-devel wrote: > > On Mon, Oct 07, 2024 at 09:40:40PM GMT, Vladimir 'phcoder' Serbinenko wrote: > > What do you try to achieve with this that can't be achieved with using full > > path? We should avoid using hidden state for directory parsing. So

Re: [PATCH v3 22/29] btrfs: Add ability to boot from subvolumes

2024-10-18 Thread Neal Gompa
) > +{ > + result = grub_strtoull(val, NULL, 10); > + if (grub_errno) > +return NULL; > +} > + > + grub_free (btrfs_default_subvol); > + btrfs_default_subvol = NULL; > + btrfs_default_subvolid = result; > + return grub_strdup(val); > +} > + > +static const

Re: [PATCH v3 23/29] btrfs: fix a bad null check

2024-10-18 Thread Neal Gompa
} > > - if (data->sblock.label) > + if (data->sblock.label[0]) > grub_printf("Label: '%s' ", data->sblock.label); >else > grub_printf("Label: none "); > -- > 2.46.2 > Straightforward and reasonable. Reviewed-by: Nea

Re: [PATCH v3 24/29] btrfs: export btrfs_subvol and btrfs_subvolid

2024-10-18 Thread Neal Gompa
> subvol_set_env); >grub_register_variable_hook ("btrfs_subvolid", subvolid_get_env, > subvolid_set_env); > + grub_env_export ("btrfs_subvol"); > + grub_env_export ("btrfs_subvolid"); > } > > GRUB_MOD_F

Re: [PATCH v3 26/29] grub-mkconfig: Add GRUB_BTRFS_SNAPSHOT_BOOTING simple configuration

2024-10-18 Thread Neal Gompa
" != x ]; then > GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} > ${GRUB_CMDLINE_LINUX}" > + fi > fi;; > xzfs) > rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label > 2>/dev/null || true` > diff --git a/util/grub.d/20_linux

Re: [PATCH v3 25/29] btrfs: Allow specifying btrfs_relative_path to follow the default subvolume

2024-10-18 Thread Neal Gompa
cpu_to_le64_compile_time > (GRUB_BTRFS_OBJECT_ID_CHUNK); > + key->type = GRUB_BTRFS_ITEM_TYPE_DIR_ITEM; > + key->offset = 0; > + } > + else > + { > + *type = GRUB_BTRFS_DIR_ITEM_TYPE_DIRECTORY; > + *tree = data->sblock.root_tree; > + key->object_id = data->sblock.root_dir_objectid; > + key->type = GRUB_BTRFS_ITEM_TYPE_DIR_ITEM; > + key->offset = 0; > + follow_default = 1; > + } > } > else > { > @@ -2922,6 +2966,7 @@ GRUB_MOD_INIT (btrfs) > subvolid_set_env); >grub_env_export ("btrfs_subvol"); >grub_env_export ("btrfs_subvolid"); > + grub_env_export ("btrfs_relative_path"); > } > > GRUB_MOD_FINI (btrfs) > -- > 2.46.2 > LGTM. :) Reviewed-by: Neal Gompa -- 真実はいつも一つ!/ Always, there's only one truth! ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v3 27/29] btrfs: add btrfs-get-default-subvol command

2024-10-18 Thread Neal Gompa
(varname, output); > + else > +grub_printf ("%s\n", output); > + > + grub_free (output); > + grub_free (subvol); > + > + grub_btrfs_unmount (data); > + grub_device_close (dev); > + > + return GRUB_ERR_NONE; > +} > + > static struct grub_fs g

Re: [PATCH v3 22/29] btrfs: Add ability to boot from subvolumes

2024-10-18 Thread Neal Gompa
On Fri, Oct 18, 2024 at 1:39 PM Vladimir 'phcoder' Serbinenko wrote: > > > > Le lun. 14 oct. 2024, 20:10, Leo Sandoval a écrit : >> >> From: Jeff Mahoney >> >> This patch adds the ability to specify a different root on a btrfs >> filesystem too boot from other than the default one. > > Does it m

Re: [PATCH v3 22/29] btrfs: Add ability to boot from subvolumes

2024-10-22 Thread Neal Gompa
On Mon, Oct 21, 2024 at 4:29 AM Vladimir 'phcoder' Serbinenko wrote: > > > > Le lun. 21 oct. 2024, 06:49, Michael Chang via Grub-devel > a écrit : >> >> On Fri, Oct 18, 2024 at 08:39:01PM GMT, Vladimir 'phcoder' Serbinenko wrote: >> > Le lun. 14 oct. 2024, 20:10, Leo Sandoval a écrit : >> > >>

Re: [PATCH v1 11/15] grub-install: disable support for EFI platforms

2024-11-03 Thread Neal Gompa
On Thu, Oct 31, 2024 at 3:43 PM Leo Sandoval wrote: > > From: Jan Hlavac > > For each platform, GRUB is shipped as a kernel image and a set of > modules. These files are then used by the grub-install utility to > install GRUB on a specific device. However, in order to support UEFI > Secure Boot,

Re: [PATCH v1 14/15] grub-install: install on EFI if forced

2024-11-03 Thread Neal Gompa
On Thu, Oct 31, 2024 at 3:43 PM Leo Sandoval wrote: > > From: Marta Lewandowska > > UEFI Secure Boot requires signed grub binaries to work, so grub- > install should not be used. However, users who have Secure Boot > disabled and wish to use the command should not be prevented from > doing so if

Re: [PATCH v1 0/5] Fedora Rawhide BTRFS patches

2024-11-03 Thread Neal Gompa
btrfs: Fixup for newer compiler > > grub-core/fs/btrfs.c | 629 --- > include/grub/btrfs.h | 1 + > 2 files changed, 595 insertions(+), 35 deletions(-) > > -- > 2.46.2 > Series LGTM. Reviewed-by: Neal Gompa -- 真実はいつも一つ!/ Always, there's only one truth!