[PATCH] disk/mdraid1x_linux: Prevent infinite recursion

2024-04-29 Thread Lidong Chen via Grub-devel
The test corpus for version-1 RAID generated an infinite recursion in grub_partition_iterate() while attempting to read the superblock. The reason for the issue was that the data region overlapped with the superblock. The infinite call loop looks like this: grub_partition_iterate() ->

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

2024-04-29 Thread Vladimir 'phcoder' Serbinenko
Generally looks good. Few comments. I have missed part of discussion, so point me to relevant parts of it if I miss something that's already been discussed Le mer. 24 avr. 2024, 14:31, Yifan Zhao a écrit : De qq, > + struct grub_erofs_super *sb = >data->sb; > + > + return (grub_le_to_cpu32

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

2024-04-29 Thread Yifan Zhao
In this patch, three tests of EROFS are introduced and they cover compact, extended and chunk-based inodes, respectively. Signed-off-by: Yifan Zhao Reviewed-by: Glenn Washburn --- .gitignore | 1 + Makefile.util.def| 6 ++ tests/erofs_test.in | 20

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

2024-04-29 Thread 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, container images, and rootfs for embedded devices. This patch brings EROFS

[PATCH v9 0/2] Introduce EROFS support

2024-04-29 Thread 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, container images, and rootfs for embedded devices. This patch brings EROFS

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

2024-04-29 Thread Ard Biesheuvel
On Sat, 27 Apr 2024 at 15:08, Glenn Washburn wrote: > > From: Ard Biesheuvel > > The 'ground truth' stack protector cookie value is kept in a global > variable, and loaded in every function prologue and epilogue to store > it into resp. compare it with the stack slot holding the cookie. > > If

Re: [PATCH v13 20/20] tests: Add tpm2_test

2024-04-29 Thread Gary Lin via Grub-devel
On Fri, Apr 26, 2024 at 05:18:04PM -0500, Glenn Washburn wrote: > On Thu, 25 Apr 2024 16:02:06 +0800 > Gary Lin wrote: > > > For the tpm2 module, the TCG2 command submission function is the only > > difference between the a QEMU instance and grub-emu. To test TPM key > > unsealing with a QEMU

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

2024-04-29 Thread Gary Lin via Grub-devel
On Sat, Apr 27, 2024 at 03:27:57AM -0500, Glenn Washburn wrote: > On Thu, 25 Apr 2024 16:01:54 +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 >