Re: [PATCH 2/2] lvm: Add support for cachevol and integrity lv

2024-06-26 Thread Daniel Kiper
On Sun, Jun 09, 2024 at 03:35:06PM -0400, Patrick Plenefisch wrote: > lv matching must be done after processing the ignored feature > indirections, as integrity volumes & caches may have several levels > of indirection that the segments must be shifted through. > > pv matching must be completely

Re: [PATCH 1/2] disk/lvm: Make cache_lv more generic as ignored_feature_lv

2024-06-26 Thread Daniel Kiper
On Sun, Jun 09, 2024 at 03:34:58PM -0400, Patrick Plenefisch wrote: > This patch isn't necessary by itself, but when combined with the next > patch it enhances readability as ignored_features_lv is then used for > multiple types of extra LV's, not just cache LV's > > Signed-off-by: Patrick

Re: [PATCH v4 00/10] UEFI NX support and NX Linux loader using shim loader protocol

2024-06-25 Thread Daniel Kiper
On Wed, Jun 12, 2024 at 04:57:03PM +0100, Mate Kukri wrote: > Currently the patchset consists of: > - Reworked Fedora NX patches to make GRUB itself work under NX. > - Julian Andres Klode's loader framework patch (used in Debian and Ubuntu for > the downstream loader). > - Implemented shim loader

Re: [PATCH v4 07/10] nx: set the nx compatible flag in EFI grub images

2024-06-25 Thread Daniel Kiper
r the PE DLL Characteristics flag GRUB_PE32_NX_COMPAT > - changes grub-mkimage to set that flag. > > Original-Author: Peter Jones > Signed-off-by: Mate Kukri If you fix nits mentioned above then you can add Reviewed-by: Daniel Kiper ... Daniel _

Re: [PATCH v4 06/10] nx: set page permissions for loaded modules.

2024-06-25 Thread Daniel Kiper
On Wed, Jun 12, 2024 at 04:57:09PM +0100, Mate Kukri wrote: > For NX, we need to set write and executable permissions on the sections > of grub modules when we load them. > > On sections with SHF_ALLOC set, which is typically everything except > .modname and the symbol and string tables, this

Re: [PATCH v9 00/22] Automatic Disk Unlock with TPM2

2024-06-25 Thread Daniel Kiper
On Tue, Jun 25, 2024 at 02:42:31PM +0800, Gary Lin wrote: > On Mon, Jun 24, 2024 at 07:28:14PM +0200, Daniel Kiper wrote: > > On Thu, Mar 07, 2024 at 04:59:05PM +0800, Gary Lin via Grub-devel wrote: > > > On Thu, Feb 08, 2024 at 08:58:43PM +0100, Daniel Kiper wrote: > > &g

Re: [PATCH v9 00/22] Automatic Disk Unlock with TPM2

2024-06-24 Thread Daniel Kiper
On Thu, Mar 07, 2024 at 04:59:05PM +0800, Gary Lin via Grub-devel wrote: > On Thu, Feb 08, 2024 at 08:58:43PM +0100, Daniel Kiper wrote: > > Hey, > > > --8<-- > > > > And I have attached the Coverity report. All issues reported there have > > to be fix

Re: [PATCH v4 05/10] nx: add memory attribute get/set API

2024-06-24 Thread Daniel Kiper
On Wed, Jun 12, 2024 at 04:57:08PM +0100, Mate Kukri wrote: > For NX, we need to set the page access permission attributes for write > and execute permissions. > > This patch adds two new primitives, grub_set_mem_attrs() and > grub_clear_mem_attrs(), and associated constant definitions, to be used

Re: [PATCH v4 04/10] modules: load module sections at page-aligned addresses

2024-06-24 Thread Daniel Kiper
On Wed, Jun 12, 2024 at 04:57:07PM +0100, Mate Kukri wrote: > Currently we load module sections at whatever alignment gcc+ld happened > to dump into the ELF section header, which is often less then the page > size. Since NX protections are page based, this alignment must be > rounded up to page

Re: [PATCH v4 03/10] modules: Don't allocate space for non-allocable sections.

2024-06-24 Thread Daniel Kiper
on, and > makes the allocation computation loop skip empty sections as the loading > loop does. > > Signed-off-by: Peter Jones > Signed-off-by: Jan Setje-Eilers > Signed-off-by: Mate Kukri > Reviewed-By: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel _

Re: [PATCH v4 02/10] modules: strip .llvm_addrsig sections and similar.

2024-06-24 Thread Daniel Kiper
eter Jones > Signed-off-by: Jan Setje-Eilers > Signed-off-by: Mate Kukri > Reviewed-By: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v4 01/10] modules: make .module_license read-only

2024-06-24 Thread Daniel Kiper
> > This patch sets that data as "const", which causes that flag not to be > set. > > Signed-off-by: Peter Jones > Signed-off-by: Jan Setje-Eilers > Signed-off-by: Mate Kukri > Reviewed-By: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel _

[ANNOUNCEMENT] Linux Plumbers Conference - Systems Boot and Security Microconference

2024-06-24 Thread Daniel Kiper via Grub-devel
Hi all, I have great pleasure of informing you that the call for proposals is open for Systems Boot and Security Microconference [1] which is a part of Linux Plumbers Conference [2]. The conference will be held in Vienna, Austria between 18th and 20th of September. If you want to discuss with us

Re: [PATCH v17 11/20] key_protector: Add TPM2 Key Protector

2024-06-20 Thread Daniel Kiper via Grub-devel
On Thu, Jun 20, 2024 at 03:35:32PM +0800, Gary Lin wrote: > On Wed, Jun 19, 2024 at 06:34:13PM +0200, Daniel Kiper wrote: > > On Fri, Jun 14, 2024 at 02:45:44PM +0800, Gary Lin wrote: > > > From: Hernan Gatta > > > > > > The TPM2 key protector is a module

Re: [PATCH v17 10/20] tpm2: Add TPM Software Stack (TSS)

2024-06-20 Thread Daniel Kiper via Grub-devel
On Thu, Jun 20, 2024 at 02:13:02PM +0800, Gary Lin wrote: > On Wed, Jun 19, 2024 at 04:04:47PM +0200, Daniel Kiper wrote: > > On Wed, Jun 19, 2024 at 02:41:13PM +0800, Gary Lin wrote: > > > On Tue, Jun 18, 2024 at 03:30:03PM +0200, Daniel Kiper wrote: > > > > On F

Re: [PATCH] fs/erofs: Fix EROFS label tests in grub-fs-tester

2024-06-20 Thread Daniel Kiper
On Wed, Jun 12, 2024 at 03:28:41PM +0800, Yifan Zhao wrote: > mkfs.erofs with version < 1.6 does not support the -L option. > Let's detect the version of mkfs.erofs and skip the label tests > if it is not supported. > > Signed-off-by: Yifan Zhao Reviewed-by: Dan

Re: [PATCH 2/2] zfs: Add test for zfs zstd

2024-06-20 Thread Daniel Kiper
On Mon, Jun 17, 2024 at 02:44:09PM +0300, Vladimir Serbinenko wrote: > Signed-off-by: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH 1/2] zfs: Support zstd compression

2024-06-20 Thread Daniel Kiper
On Mon, Jun 17, 2024 at 02:44:08PM +0300, Vladimir Serbinenko wrote: > Signed-off-by: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH 2/2] emu/linux: Fix determination of program name

2024-06-20 Thread Daniel Kiper
On Mon, Jun 17, 2024 at 03:56:31PM +0300, Vladimir Serbinenko wrote: > Current code works only if package matches binary name transformation rules. > It's often true but is no waz guaranteed > > Fixes bug #64410 > > Signed-off-by: Vladimir Serbinenko Reviewed-by: Dan

Re: [PATCH 1/2] cryptodisk: Fix translatable message

2024-06-20 Thread Daniel Kiper
On Mon, Jun 17, 2024 at 03:56:30PM +0300, Vladimir Serbinenko wrote: > Fixes bug #64408. > Signed-off-by: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinf

Re: [PATCH] getroot: Unmark 2 strings for translation

2024-06-20 Thread Daniel Kiper
On Mon, Jun 17, 2024 at 03:59:56PM +0300, Vladimir Serbinenko wrote: > First they're use macros so they can't be translated as-is. > Second there is no point in translating them as they're too technical. > > Signed-off-by: Vladimir Serbinenko Reviewed-by: Daniel Ki

Re: [PATCH v3] loader/efi/fdt: Add fdtdump command to access device tree

2024-06-20 Thread Daniel Kiper
loading another device tree depend on the compatible or > model values of the device tree provided by the firmware. > > For now only the root level properties of the dtb are exposed. > > Signed-off-by: Tobias Heider Reviewed-by: Daniel Kiper Daniel

Re: [PATCH 1/1] util/grub-mkrescue: Check existence of option arguments

2024-06-19 Thread Daniel Kiper
incrementing it inside the loop which > copies argv to argp_argv. Issue an error message similar to what older > versions of grub-mkrescue did with a missing argument (e.g 2.02). > > Fixes: https://savannah.gnu.org/bugs/index.php?65880 > Signed-off-by: Thomas Schmitt Reviewe

Re: [PATCH v17 11/20] key_protector: Add TPM2 Key Protector

2024-06-19 Thread Daniel Kiper via Grub-devel
On Fri, Jun 14, 2024 at 02:45:44PM +0800, Gary Lin wrote: > From: Hernan Gatta > > The TPM2 key protector is a module that enables the automatic retrieval > of a fully-encrypted disk's unlocking key from a TPM 2.0. > > The theory of operation is such that the module accepts various > arguments,

Re: [PATCH v17 10/20] tpm2: Add TPM Software Stack (TSS)

2024-06-19 Thread Daniel Kiper via Grub-devel
On Wed, Jun 19, 2024 at 02:41:13PM +0800, Gary Lin wrote: > On Tue, Jun 18, 2024 at 03:30:03PM +0200, Daniel Kiper wrote: > > On Fri, Jun 14, 2024 at 02:45:43PM +0800, Gary Lin wrote: > > > From: Hernan Gatta > > > > > > A Trusted Platform Module (TPM)

Re: [PATCH v17 10/20] tpm2: Add TPM Software Stack (TSS)

2024-06-19 Thread Daniel Kiper via Grub-devel
On Wed, Jun 19, 2024 at 02:43:08PM +0800, Gary Lin wrote: > On Tue, Jun 18, 2024 at 05:41:13PM +0200, Daniel Kiper wrote: > > On Fri, Jun 14, 2024 at 02:45:43PM +0800, Gary Lin wrote: > > > From: Hernan Gatta > > > > > > A Trusted Platform Module (TPM)

Re: [PATCH v17 10/20] tpm2: Add TPM Software Stack (TSS)

2024-06-18 Thread Daniel Kiper via Grub-devel
On Fri, Jun 14, 2024 at 02:45:43PM +0800, Gary Lin wrote: > From: Hernan Gatta > > A Trusted Platform Module (TPM) Software Stack (TSS) provides logic to > compose and submit TPM commands and parse reponses. > > A limited number of TPM commands may be accessed via the EFI TCG2 > protocol. This

Re: [PATCH v17 10/20] tpm2: Add TPM Software Stack (TSS)

2024-06-18 Thread Daniel Kiper via Grub-devel
On Fri, Jun 14, 2024 at 02:45:43PM +0800, Gary Lin wrote: > From: Hernan Gatta > > A Trusted Platform Module (TPM) Software Stack (TSS) provides logic to > compose and submit TPM commands and parse reponses. > > A limited number of TPM commands may be accessed via the EFI TCG2 > protocol. This

Re: [PATCH v17 09/20] key_protector: Add key protectors framework

2024-06-17 Thread Daniel Kiper via Grub-devel
> Signed-off-by: Gary Lin > Reviewed-by: Stefan Berger Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v17 08/20] libtasn1: Add the documentation

2024-06-17 Thread Daniel Kiper via Grub-devel
On Fri, Jun 14, 2024 at 02:45:41PM +0800, Gary Lin wrote: > Document libtasn1 in docs/grub-dev.texi and add the upgrade steps. > Also add the patches to make libtasn1 compatible with grub code. > > Signed-off-by: Gary Lin > Reviewed-by: Vladimir Serbinenko > --- > docs/grub-dev.texi | 33

Re: [PATCH v17 07/20] asn1_test: test module for libtasn1

2024-06-17 Thread Daniel Kiper via Grub-devel
On Fri, Jun 14, 2024 at 02:45:40PM +0800, Gary Lin wrote: > From: Daniel Axtens > > Import tests from libtasn1 that don't use functionality we don't > import. This test module is integrated into functional_test so that the > user can run the test in grub shell. > > This doesn't test the full

Re: [PATCH v17 06/20] libtasn1: compile into asn1 module

2024-06-17 Thread Daniel Kiper via Grub-devel
rbinenko Due to amount of changes to the patch I think this RB should be dropped now. Though Reviewed-by: Daniel Kiper ... Two nits below... > --- > autogen.sh | 16 > grub-core/Makefile.core.def| 15 +++ > gru

Re: [PATCH v17 05/20] libtasn1: fix the potential buffer overrun

2024-06-17 Thread Daniel Kiper via Grub-devel
ducing a too large 'k'. > > This is a quick fix and may differ from the official upstream fix. > > libtasn1 issue: https://gitlab.com/gnutls/libtasn1/-/issues/49 This patch does not need Daniel Axtens SB of course. Sorry for not being precise. > Signed-off-by: Gary Lin Reviewe

Re: [PATCH v17 04/20] libtasn1: changes for grub compatibility

2024-06-17 Thread Daniel Kiper via Grub-devel
On Fri, Jun 14, 2024 at 02:45:37PM +0800, Gary Lin wrote: > Based on the patch from "Daniel Axtens " > > Do a few things to make libtasn1 compile as part of grub: > > - remove _asn1_strcat and replace strcat with the bound-checked >_asn1_str_cat except the one inside _asn1_str_cat. That

Re: [PATCH v17 03/20] libtasn1: disable code not needed in grub

2024-06-17 Thread Daniel Kiper via Grub-devel
the difference between upstream and grub is smaller, > which should make updating libtasn1 easier in the future. > > With these exclusions we also avoid the need for minmax.h, > which is convenient because it means we don't have to > import it from gnulib. > > Signed-o

Re: [PATCH v17 02/20] libtasn1: import libtasn1-4.19.0

2024-06-17 Thread Daniel Kiper via Grub-devel
libtasn1-4.19.0/lib/includes/libtasn1.h grub-core/lib/libtasn1/ > rm -rf libtasn1-4.19.0* > > Signed-off-by: Daniel Axtens > Signed-off-by: Gary Lin > Reviewed-by: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel ___ Grub-devel

Re: [PATCH 1/2] loader/efi/fdt: Add fdtdump command to access device tree

2024-06-14 Thread Daniel Kiper
On Fri, Jun 14, 2024 at 06:26:00PM +0200, Tobias Heider wrote: > On Fri, Jun 14, 2024 at 06:03:23PM +0200, Daniel Kiper wrote: > > On Wed, Jun 12, 2024 at 01:12:28PM +0200, Tobias Heider wrote: > > > The fdtdump command allows dumping arbitrary device tree properties >

Re: [PATCH] ofnet: Remove 200 ms timeout in get_card_packet to reduce input latency

2024-06-14 Thread Daniel Kiper
rd_packet should be > effectively removed. According to test results, the delay has > disappeared, and it is now much easier to use interactively. > > Signed-Off-by: Michael Chang > Tested-by: Tony Jones Reviewed-by: Daniel Kiper Daniel _

Re: [PATCH] Add --noefistub option for linux

2024-06-14 Thread Daniel Kiper
On Thu, May 16, 2024 at 09:43:46PM +0300, Vladimir Serbinenko wrote: > In some cases like loading kernel from native disk (e.g. nvme) not > supported by EFI in question efi stub is not an option. Allow > user to disable efi stub and fallback to older protocol I think this patch should be

Re: [PATCH 1/2] zfs: Support zstd compression

2024-06-14 Thread Daniel Kiper
On Thu, May 16, 2024 at 10:42:25PM +0300, Vladimir Serbinenko wrote: > Signed-off-by: Vladimir Serbinenko > --- > grub-core/Makefile.core.def | 1 + > grub-core/fs/zfs/zfs.c | 32 > include/grub/zfs/zio.h | 1 + > 3 files changed, 34 insertions(+) > >

Re: [RESEND V5] ieee1275/ofdisk: retry on open and read failure

2024-06-14 Thread Daniel Kiper
On Mon, Jun 10, 2024 at 11:35:11AM +0530, Mukesh Kumar Chaurasiya wrote: > Sometimes, when booting from a very busy SAN, the access to the > disk can fail and then GRUB will eventually drop to GRUB prompt. > This scenario is more frequent when deploying many machines at > the same time using the

Re: [RESEND V2] ieee1275/ofdisk: vscsi lun handling on lun len

2024-06-14 Thread Daniel Kiper
On Mon, Jun 10, 2024 at 11:29:56AM +0530, Mukesh Kumar Chaurasiya wrote: > The information about "vscsi-report-luns" data is a list of disk details > with pairs of memory addresses and lengths. > > 8 bytes 8 bytes > lun-addr ---> 8

Re: [PATCH 2/2] docs: document fdtdump command

2024-06-14 Thread Daniel Kiper
On Wed, Jun 12, 2024 at 01:12:29PM +0200, Tobias Heider wrote: > Signed-off-by: Tobias Heider > --- > docs/grub.texi | 26 ++ > 1 file changed, 26 insertions(+) > > diff --git a/docs/grub.texi b/docs/grub.texi > index f3bdc2564..a050dc0fc 100644 > --- a/docs/grub.texi >

Re: [PATCH 1/2] loader/efi/fdt: Add fdtdump command to access device tree

2024-06-14 Thread Daniel Kiper
On Wed, Jun 12, 2024 at 01:12:28PM +0200, Tobias Heider wrote: > The fdtdump command allows dumping arbitrary device tree properties > and saving them to a variable similar to the smbios command. > > This is useful in scripts where further actions such as selecting a > kernel or loading another

Re: [PATCH v1 2/2] mkimage: adding sbat data into sbat ELF Note on powerpc

2024-06-12 Thread Daniel Kiper
On Thu, Jun 06, 2024 at 09:44:10PM +0530, Sudhakar Kuppusamy wrote: > it reads the SBAT data from sbat.csv and create the ELF Note for it then > store the SBAT data on it while generate image with -s option May I ask you to use proper English sentences in the commit messages? > Signed-off-by:

Re: [PATCH] tests: Switch to requiring exfatprogs from exfat-utils

2024-06-12 Thread Daniel Kiper
that exfatprogs is now needed and also s/to not/to note/? > exfat-fuse, which is needed do the fuse mount. > > Signed-off-by: Glenn Washburn Otherwise Reviewed-by: Daniel Kiper ... Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH] tests/util/grub-shell-luks-tester: Fix detached header test getting wrong header path

2024-06-12 Thread Daniel Kiper
uksdiskfile. The first > sets it to the header file if $detached_header is set, otherwise leave it > unset. The second statement sets it to itself if it is already set, > otherwise it is set to $luksfile. > > Fixes: a7b540e6e (tests: Add cryptomount functional test) > Signed-off

Re: [PATCH 0/2] Better UEFI firmware handling in tests

2024-06-12 Thread Daniel Kiper
o use system firmwares or is not on a Debian system. > > Glenn > > Glenn Washburn (2): > tests/util/grub-shell: Use pflash instead of -bios to load UEFI > firmware > tests/util/grub-shell: Add flexibility in QEMU firmware handling For both patches Revi

Re: [PATCH] tests/util/grub-shell: Print gdbinfo if on EFI platform

2024-06-12 Thread Daniel Kiper
On Sat, Jun 08, 2024 at 09:22:31PM -0500, Glenn Washburn wrote: > Allow using GDB to debug a failing QEMU test. This output does not cause > issues for tests because it happens before the trim line, and so will be > ignored. > > Signed-off-by: Glenn Washburn Reviewed-by: Daniel

Re: [PATCH] configure: Add Debian/Ubuntu dejavu font path

2024-06-12 Thread Daniel Kiper
On Sat, Jun 08, 2024 at 05:44:15PM -0500, Glenn Washburn wrote: > Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH] term/ns8250-spcr: Add one more 16550 debug type.

2024-06-12 Thread Daniel Kiper
't have an issue > applying it. > > Reviewed-by: Glenn Washburn Though this time Reviewed-by: Daniel Kiper ... Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v16 03/20] libtasn1: disable code not needed in grub

2024-06-12 Thread Daniel Kiper
On Tue, Jun 11, 2024 at 03:10:56PM +0800, Gary Lin via Grub-devel wrote: > On Fri, Jun 07, 2024 at 04:14:54PM +0200, Daniel Kiper wrote: > > On Fri, Jun 07, 2024 at 11:07:31AM +0800, Gary Lin wrote: > > > On Wed, Jun 05, 2024 at 05:18:32PM +0200, Daniel Kiper wrote: > >

Re: [PATCH 3/3] kern/efi/mm: Detect calls to grub_efi_drop_alloc() with wrong page counts

2024-06-12 Thread Daniel Kiper
nd thus keeping the whole block in the list and freeing it again > at exit can lead to double frees. > > Signed-off-by: Mate Kukri Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH 2/3] kern/efi/mm: Change grub_efi_allocate_pages_real() to call semantically correct free function

2024-06-12 Thread Daniel Kiper
othing if the allocation it is asked to drop > isn't on the list, but the call to it is obviously unnecessary here. > > Signed-off-by: Mate Kukri Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH 1/3] kern/efi/mm: Change grub_efi_mm_add_regions() to keep track of map allocation size

2024-06-12 Thread Daniel Kiper
e maps > fit into 12K. > > This bug was trigerred on Project Mu firmware with a big memory map, and > results in the heap getting trashed and the firmware ASSERTING on > corrupted heap guard values when GRUB exits. > > Signed-off-by: Mate Kukri R

Re: [PATCH v16 03/20] libtasn1: disable code not needed in grub

2024-06-07 Thread Daniel Kiper via Grub-devel
On Fri, Jun 07, 2024 at 11:07:31AM +0800, Gary Lin wrote: > On Wed, Jun 05, 2024 at 05:18:32PM +0200, Daniel Kiper wrote: > > On Wed, May 15, 2024 at 01:06:55PM +0800, Gary Lin wrote: > > > From: Daniel Axtens > > > > > > We don't expect to be able to write

Re: [PATCH] Add Fedora-specific font paths

2024-06-06 Thread Daniel Kiper
On Thu, May 16, 2024 at 10:03:29PM +0300, Vladimir Serbinenko wrote: > Signed-off-by: Vladimir Serbinenko > --- > configure.ac | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 84a202c6e..c76a29af4 100644 > --- a/configure.ac > +++

Re: [PATCH v16 03/20] libtasn1: disable code not needed in grub

2024-06-05 Thread Daniel Kiper via Grub-devel
On Wed, May 15, 2024 at 01:06:55PM +0800, Gary Lin wrote: > From: Daniel Axtens > > We don't expect to be able to write ASN.1, only read it, > so we can disable some code. > > Do that with #if 0/#endif, rather than deletion. This means > that the difference between upstream and grub is smaller, >

Re: [PATCH v16 02/20] libtasn1: import libtasn1-4.19.0

2024-06-05 Thread Daniel Kiper via Grub-devel
On Wed, May 15, 2024 at 01:06:54PM +0800, Gary Lin wrote: > From: Daniel Axtens > > Import a very trimmed-down set of libtasn1 files: I hope you merge the latest one... > pushd /tmp I would create tmp dir in the GRUB source code and extract libtasn1 there. Then I would remove the tmp dir. >

Re: [PATCH v16 01/20] posix_wrap: tweaks in preparation for libtasn1

2024-06-05 Thread Daniel Kiper via Grub-devel
e HAVE_STRTOUL here. > > - Implement c-ctype.h and the functions defined in the header. > > - Implement strncat in string.h. > > Cc: Vladimir Serbinenko > Signed-off-by: Daniel Axtens > Signed-off-by: Gary Lin Reviewed-by: Daniel Kiper A nit below... > diff --git

Re: [PATCH] cli_lock: Added build option to block command line interface

2024-06-05 Thread Daniel Kiper via Grub-devel
On Wed, Jan 24, 2024 at 06:26:37AM +, Alec Brown wrote: > Added functionality to disable command line interface access and editing of > GRUB > menu entries if GRUB image is built with --disable-cli. > > Signed-off-by: Alec Brown Reviewed-by: Daniel

Re: [PATCH v1 1/1] Fix missing measurements on confidential computing enabled platform

2024-06-05 Thread Daniel Kiper
1 > > Signed-off-by: Hector Cao Reviewed-by: Daniel Kiper but a nit below... > --- > grub-core/commands/efi/tpm.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/grub-core/commands/efi/tpm.c b/grub-core/commands/efi/tpm.c > index f250c30db..40845af7a 1006

Re: [PATCH vRESEND] MULTIBOOT: Fix handling of errors in broken aout-kludge

2024-06-03 Thread Daniel Kiper
On Fri, May 17, 2024 at 10:53:27AM +0300, Vladimir Serbinenko wrote: > Current code in some codepaths neither discards nor reports > errors. Properly surface the error > > While on it split 2 cases of unrelated variables both named err. > > Signed-off-by: Vladimir Serbinenko R

Re: [PATCH] Add missing cast in compile-time byteswaps

2024-06-03 Thread Daniel Kiper
On Mon, Jun 03, 2024 at 06:33:04PM +0200, Daniel Kiper wrote: > On Thu, May 16, 2024 at 10:22:58PM +0300, Vladimir Serbinenko wrote: > > Without them 0x80LL is 32-bit byte-swapped to 0x8000 instead > > of correct 0x8000 I think it should be added "on 64-

Re: [PATCH] Mark vdev_zaps_v2 and head_errlog as supported

2024-06-03 Thread Daniel Kiper
On Thu, May 16, 2024 at 10:27:41PM +0300, Vladimir Serbinenko wrote: > We don't need any actual adjustments as we don't use the affected > structures > > Signed-off-by: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel ___ Grub-devel

Re: [PATCH] Add missing cast in compile-time byteswaps

2024-06-03 Thread Daniel Kiper
On Thu, May 16, 2024 at 10:22:58PM +0300, Vladimir Serbinenko wrote: > Without them 0x80LL is 32-bit byte-swapped to 0x8000 instead > of correct 0x8000 > > Signed-off-by: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel

Re: [PATCH] Add convenience TARGET_CROSS

2024-06-03 Thread Daniel Kiper
On Thu, May 16, 2024 at 10:07:12PM +0300, Vladimir Serbinenko wrote: > This allows to set up cross environment with just 3 parameters: target, > platform and TARGET_CROSS May I ask you to document this in the INSTALL file? Daniel ___ Grub-devel

Re: [PATCH] Add Fedora-specific font paths

2024-06-03 Thread Daniel Kiper
On Thu, May 16, 2024 at 10:03:29PM +0300, Vladimir Serbinenko wrote: > Signed-off-by: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH] bfs: Fix improper free() on non-existing files

2024-06-03 Thread Daniel Kiper
On Thu, May 16, 2024 at 09:37:49PM +0300, Vladimir Serbinenko wrote: > Signed-off-by: Vladimir Serbinenko Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH] grub-mkpasswd-pbkdf2: Simplify the main function implementation

2024-06-03 Thread Daniel Kiper
On Mon, May 27, 2024 at 08:42:04PM +0800, Tianjia Zhang wrote: > Allocate memory if needed, while saving the corresponding release > operation, reducing the amount of code and code complexity. > > Signed-off-by: Tianjia Zhang Reviewed-by: Daniel Ki

Re: [PATCH] Fix missing measurements on confidential computing enabled platform

2024-06-03 Thread Daniel Kiper
On Fri, May 31, 2024 at 02:42:38PM +0200, Hector Cao wrote: > The measurements for confidential computing has been introduced in the commit > 4c76565b6 (efi/tpm: Add EFI_CC_MEASUREMENT_PROTOCOL support). Recently > this patch 30708dfe3 (tpm: Disable the tpm verifier if the TPM device > is not

Re: [PATCH v3 5/5] keccak: Disable acceleration with SSE asm

2024-05-29 Thread Daniel Kiper
Same comments as for earlier patches... Thank you for moving this to separate patch. On Fri, May 24, 2024 at 08:30:06PM +0300, Vladimir Serbinenko wrote: > --- > .../lib/libgcrypt-patches/02_keccak_sse.diff | 19 +++ > 1 file changed, 19 insertions(+) > create mode 100644

Re: [PATCH v3 4/5] Add DSA and RSA SEXP tests

2024-05-29 Thread Daniel Kiper
Same comments as for earlier patches... On Fri, May 24, 2024 at 08:30:05PM +0300, Vladimir Serbinenko wrote: > --- > grub-core/tests/dsa_sexp_test.c | 107 > grub-core/tests/rsa_sexp_test.c | 81 > 2 files changed, 188 insertions(+) >

Re: [PATCH v3 3/5] Adjust import script, definitions and API users for libgcrypt 1.10

2024-05-29 Thread Daniel Kiper
Again, missing commit message and SOB. Could you add to the GRUB Developers Manual description how to upgrade the libgcrypt? On Fri, May 24, 2024 at 08:30:04PM +0300, Vladimir Serbinenko wrote: > --- > autogen.sh | 5 + > conf/Makefile.common

Re: [PATCH v3 2/5] Import b64dec from gpg-error

2024-05-29 Thread Daniel Kiper
Why this file is needed? From which GPG version this file come from? And missing SOB... On Fri, May 24, 2024 at 08:30:03PM +0300, Vladimir Serbinenko wrote: > --- > grub-core/lib/b64dec.c | 293 + > 1 file changed, 293 insertions(+) > create mode 100644

Re: [PATCH v3 1/5] Import libgcrypt 1.10.3

2024-05-29 Thread Daniel Kiper
Could you add your SOB and a few words to the commit message explaining why this patch is needed. It would be nice if you add a cover letter to this patch set too. Daniel On Fri, May 24, 2024 at 08:30:02PM +0300, Vladimir Serbinenko wrote: > --- > grub-core/lib/libgcrypt/AUTHORS

Re: [PATCH v2] ieee1275 radix support added for KVM on power

2024-05-23 Thread Daniel Kiper via Grub-devel
boot failure. > > Signed-off-by: Avnish Chouhan > Reviewed-by: Daniel Kiper I am OK with this RB now. However, you should not add any tags on behalf of anybody without their explicit permission. Daniel ___ Grub-devel mailing list Gru

Re: [PATCH] ieee1275 radix support added for KVM on power

2024-05-22 Thread Daniel Kiper
On Mon, Dec 18, 2023 at 08:02:34PM +0530, Avnish Chouhan wrote: > This patch adds support for Radix, Xive and Radix_gtse in Options > vector5 which is required for KVM LPARs. KVM LPARs ONLY support > Radix and not the Hash. Not enabling Radix on any PowerVM KVM LPARs > will result in boot failure.

Re: [PATCH v2][Bugfix] util/grub.d/00_header.in: quote background image pathname in output

2024-05-22 Thread Daniel Kiper
On Sun, May 19, 2024 at 05:50:10PM +0200, Pascal Hambourg wrote: > This is required if the pathname contains spaces or grub shell > metacharacters, else the generated config file check will fail. > > Signed-off-by: Pascal Hambourg Reviewed-by: Daniel Ki

Re: [PATCH 1/2 v2] LVM Cachevol and Integrity volumes break entire LVM VG

2024-05-22 Thread Daniel Kiper
On Fri, Apr 26, 2024 at 08:59:21PM -0400, Patrick Plenefisch wrote: > From 42252f253ac685bbc7cea1f5c89146eeeaa364f0 Mon Sep 17 00:00:00 2001 > From: Patrick Plenefisch > Date: Sun, 18 Feb 2024 18:29:43 -0500 > Subject: [PATCH 1/2] disk/lvm: Make cache_lv more generic as > ignored_feature_lv

Re: [PATCH 2/2 v2] LVM Cachevol and Integrity volumes break entire LVM VG

2024-05-22 Thread Daniel Kiper
On Fri, Apr 26, 2024 at 09:00:08PM -0400, Patrick Plenefisch wrote: > From 8cfb6dbb011d3773b90a3cbb8561616a2fb5955f Mon Sep 17 00:00:00 2001 > From: Patrick Plenefisch > Date: Sun, 18 Feb 2024 18:36:05 -0500 > Subject: [PATCH 2/2] lvm: Add support for cachevol and integrity lv May I ask you to

Re: [PATCH 3/3] keccak: Disable acceleration with SSE asm

2024-05-20 Thread Daniel Kiper
On Fri, May 17, 2024 at 02:24:50PM +0300, Vladimir 'phcoder' Serbinenko wrote: > Le ven. 17 mai 2024, 14:15, Daniel Kiper a écrit : > Why is this patch needed? Should not we disable SSE using compiler > flags? > We do but the code in question uses SSE on every x64 platform

Re: [PATCH 0/2] Two small fixes to gzip

2024-05-20 Thread Daniel Kiper
Hey, On Sat, May 18, 2024 at 02:52:20PM +1000, Daniel Axtens wrote: > Hi Daniel, > > > Reviewed-by: Daniel Kiper for both patches... > > Thank you! > > > I assume I can add your SOB on your behalf... > > Oh! Yes! Sorry, 2 years of closed source development have a

Re: [PATCH v14 NEW ALT 1/3] safemath: Add ALIGN_UP_OVF() that checks for {over,under}flow

2024-05-20 Thread Daniel Kiper via Grub-devel
On Sun, May 19, 2024 at 11:48:24AM +0800, Gao Xiang wrote: > The following EROFS patch will use this helper to handle overflow > ALIGN_UP() cases. > > Signed-off-by: Gao Xiang I think Vladimir is right. Reviewed-by: Daniel Kiper Please post v15 an I will merge it this week

Re: [PATCH] docs/grub.texi: fix spelling mistakes

2024-05-20 Thread Daniel Kiper via Grub-devel
On Mon, May 20, 2024 at 08:58:24AM +0100, Jonathan Davies wrote: > Signed-off-by: Jonathan Davies Reviewed-by: Daniel Kiper Thank you for fixing these mistakes. Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mail

Re: [PATCH 3/3] keccak: Disable acceleration with SSE asm

2024-05-17 Thread Daniel Kiper
Why is this patch needed? Should not we disable SSE using compiler flags? Daniel On Thu, May 16, 2024 at 09:27:43PM +0300, Vladimir Serbinenko wrote: > --- > grub-core/lib/libgcrypt/cipher/keccak.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH 2/3] Adjust import script, definitions and API users for libgcrypt 1.10

2024-05-17 Thread Daniel Kiper
Please add a commit message and SOB... Additionally, please expand "Updating external code" in GRUB dev documentation with a description how to update libgcrypt. On Thu, May 16, 2024 at 09:27:42PM +0300, Vladimir Serbinenko wrote: > --- > autogen.sh | 1 +

Re: [PATCH 1/3] Import libgcrypt 1.10.3

2024-05-17 Thread Daniel Kiper
Adding a few folks who are probably interested in this series... May I ask you to add a few words to the commit message saying why this change is needed? And please do not forget to add your SOB to this and other patches. Ah, and missing cover letter... Daniel

Re: [PATCH 0/2] Two small fixes to gzip

2024-05-17 Thread Daniel Kiper
any security > implications > of either change, and the gzip compression test still passes. > > Daniel Axtens (2): > gzio: abort early when get_byte reads nothing > gzio: Properly init a table Reviewed-by: Daniel Kiper for both patches... I assume I can add your

Re: [PATCH v12 1/2] fs/erofs: Add support for EROFS

2024-05-17 Thread Daniel Kiper via Grub-devel
On Fri, May 17, 2024 at 12:40:53PM +0800, Gao Xiang wrote: > From: Yifan Zhao > > EROFS [1] is a lightweight read-only filesystem designed for performance > which has already been shipped in most Linux distributions as well as widely > used in several scenarios, such as Android system partitions,

Re: [PATCH 2/2 v2] LVM Cachevol and Integrity volumes break entire LVM VG

2024-05-16 Thread Daniel Kiper
Patrick, On Thu, May 16, 2024 at 03:38:17PM -0400, Patrick Plenefisch wrote: > Daniel, > > I haven't heard any update about my patch from you since early February. Is > there anything I need to do or is this good to go? I'm not too familiar with > actually submitting patches to mailing-list based

Re: [PATCH v11 2/2] fs/erofs: Add tests for EROFS in grub-fs-tester

2024-05-16 Thread Daniel Kiper via Grub-devel
Signed-off-by: Gao Xiang Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v11 1/2] fs/erofs: Add support for EROFS

2024-05-16 Thread Daniel Kiper via Grub-devel
On Fri, May 10, 2024 at 08:52:55AM +0800, Gao Xiang wrote: > From: Yifan Zhao > > EROFS [1] is a lightweight read-only filesystem designed for performance > which has already been shipped in most Linux distributions as well as widely > used in several scenarios, such as Android system partitions,

Re: [PATCH v10 0/2] Introduce EROFS support

2024-05-09 Thread Daniel Kiper
Hey, On Thu, May 02, 2024 at 03:01:37PM +0800, Yifan Zhao wrote: > EROFS [1] is a lightweight read-only filesystem designed for performance > which has already been shipped in most Linux distributions as well as widely > used in several scenarios, such as Android system partitions, container >

Re: Release signing key still uses SHA1

2024-05-08 Thread Daniel Kiper
On Fri, Apr 26, 2024 at 12:13:21AM +0200, Marek Marczykowski-Górecki wrote: > On Thu, Apr 25, 2024 at 11:27:53PM +0200, Daniel Kiper wrote: > > Hey, > > > > On Tue, Mar 12, 2024 at 05:13:24AM +0100, Marek Marczykowski-Górecki wrote: > > > Hi, > > > >

Re: [PATCH] efi: mm: Fix incorrect free size

2024-05-08 Thread Daniel Kiper via Grub-devel
Your patch makes sens but the commit message is wrong. In general we will be leaking memory for short time. Not big deal here but worth fixing. The memory will not be freed twice as you say in the commit message. May I ask you to fix the commit message? On Tue, Apr 23, 2024 at 09:04:34AM +0800,

Re: [PATCH v5] efi: Fix stack protector issues

2024-05-08 Thread Daniel Kiper
this RB does not make a lot of sens if we have your SOB below. I will drop the RB. > > Signed-off-by: Glenn Washburn > > Thanks for taking care of this. Yeah, thanks a lot Glenn! > I'd ack it but that would make the signoff chain look even weirder :-) :-) Reviewed-by: Daniel Kiper Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH] lvm: Grub2 fails to detect LVM volumes due to an incorrect computation of mda_end

2024-05-08 Thread Daniel Kiper via Grub-devel
around 220 metadata changes to the VG. > > Fixes: 879c4a834 (lvm: Fix two more potential data-dependent alloc overflows) > Fixes: https://savannah.gnu.org/bugs/?61620 > > Signed-off-by: Rogier > Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper Marta, may I ask you to te

Re: [PATCH v5] cryptodisk: allow user to retry failed passphrase

2024-05-08 Thread Daniel Kiper via Grub-devel
up. A value in the > cryptodisk_passphrase_tries environment variable will override this default. > > The user can give up early by entering an empty passphrase, just as they > could before this patch. > > Signed-off-by: Forest Reviewed-by: Daniel Kiper Daniel _

Re: [PATCH] disk/mdraid1x_linux: Prevent infinite recursion

2024-05-06 Thread Daniel Kiper via Grub-devel
gment() -> grub_diskfilter_read_node() -> > -> grub_disk_read() -> grub_disk_read_small() ->... > > The fix adds checks for both the superblock region and the data > region when parsing the superblock metadata in grub_mdraid_detect(). > > Signed-off-by: Lidong Chen

  1   2   3   4   5   6   7   8   9   10   >