Re: [PATCH] osdep/linux: Fix md array device enumeration

2023-06-07 Thread Kees Cook
On Wed, Jun 07, 2023 at 03:39:24PM +0200, Daniel Kiper wrote: > On Tue, Jun 06, 2023 at 11:02:31AM -0700, Kees Cook wrote: > > On Tue, Jun 6, 2023 at 10:27 AM Julian Andres Klode > > wrote: > > > > > > On Tue, Jun 06, 2023 at 07:09:26PM +0200, Daniel Kiper wrote: > > > > On Tue, Jun 06, 2023 at 06

Re: [PATCH v2 1/1] fs/udf: Fix out of bounds access

2023-06-07 Thread Darren Kenny
Hi Li,, LGTM! Reviewed-by: Darren Kenny Thanks, Darren. On Wednesday, 2023-06-07 at 01:31:06 UTC, Lidong Chen wrote: > Implemented a boundary check before advancing the allocation > descriptors pointer. > > Signed-off-by: Lidong Chen > Reviewed-by: Darren Kenny > Reviewed-by: Daniel Kiper

Re: [PATCH] osdep/linux: Fix md array device enumeration

2023-06-07 Thread Daniel Kiper
On Tue, Jun 06, 2023 at 11:02:31AM -0700, Kees Cook wrote: > On Tue, Jun 6, 2023 at 10:27 AM Julian Andres Klode > wrote: > > > > On Tue, Jun 06, 2023 at 07:09:26PM +0200, Daniel Kiper wrote: > > > On Tue, Jun 06, 2023 at 06:15:27PM +0200, Julian Andres Klode wrote: > > > > On Tue, Jun 06, 2023 at

[PATCH v2 0/5] loongarch: add relaxation support

2023-06-07 Thread Xiaotian Wu
Because the binutils of the loongarch architecture adds relaxation support [1], the next version of binutils will not be able to build grub. So we added the R_LARCH_B16, R_LARCH_B21 and R_LARCH_RELAX relocations to enhance grub compatibility. [1]: https://sourceware.org/git/?p=binutils-gdb.git

[PATCH v2 5/5] loongarch: Add relaxation support

2023-06-07 Thread Xiaotian Wu
Because the binutils of the loongarch architecture adds relaxation support [1], the next version of binutils will not be able to build grub. So we added the R_LARCH_B16, R_LARCH_B21 and R_LARCH_RELAX [2] relocations to enhance grub compatibility. [1]: https://sourceware.org/git/?p=binutils-gdb.g

[PATCH v2 2/5] loongarch: Optimize code using pc variable

2023-06-07 Thread Xiaotian Wu
We already have the pc variable, no need to calculate it again. Signed-off-by: Xiaotian Wu --- util/grub-mkimagexx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/grub-mkimagexx.c b/util/grub-mkimagexx.c index e7d5bc631..a3ab04eb1 100644 --- a/util/grub-mkimagexx.c +++

[PATCH v2 1/5] Use the correct format specifier for formatted output

2023-06-07 Thread Xiaotian Wu
Use "PRIxGRUB_INT64_T" format specifier for "grub_int64_t" type, and drop the casts code. Signed-off-by: Xiaotian Wu --- grub-core/kern/arm64/dl_helper.c | 4 ++-- grub-core/kern/loongarch64/dl_helper.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/grub-core/kern

[PATCH v2 4/5] loongarch: Add ELF relocation types documentation and comments

2023-06-07 Thread Xiaotian Wu
see https://github.com/loongson/la-abi-specs/blob/release/laelf.adoc#relocations Signed-off-by: Xiaotian Wu --- grub-core/kern/loongarch64/dl_helper.c | 25 + 1 file changed, 25 insertions(+) diff --git a/grub-core/kern/loongarch64/dl_helper.c b/grub-core/kern/loongarch

[PATCH v2 3/5] loongarch: Rename function names

2023-06-07 Thread Xiaotian Wu
According to the relocation documentation, the following function names are renamed to show their exact meaning: - from grub_loongarch64_xxx64_hi12() to grub_loongarch64_abs64_hi12() - from grub_loongarch64_xxx64_hi12() to grub_loongarch64_abs64_lo20() Signed-off-by: Xiaotian Wu --- grub-core/k