Re: [v5 PATCH 0/3] Unify ARM64 & RISC-V Linux Loader

2022-10-13 Thread Xiaotian Wu
On 22-10-10 22:26:26, Daniel Kiper wrote: > On Mon, Oct 10, 2022 at 11:12:16AM -0700, Atish Kumar Patra wrote: > > On Mon, Oct 10, 2022 at 7:54 AM Daniel Kiper wrote: > > On Fri, Oct 07, 2022 at 01:50:27AM -0700, Atish Patra wrote: > > > This series unifies the linux loader for ARM64 & R

Re: [PATCH] efi: compile kernel.img with -fshort-wchar on all EFI targets

2022-10-13 Thread Daniel Kiper
On Tue, Oct 11, 2022 at 01:26:33PM +0100, Chris Coulson wrote: > The stack check logs a console message on failure, and the EFI API expects > a NULL terminated UCS-2 string. In order to define a UCS-2 string literal, > kernel.img on amd64 and i386 EFI targets is built with -fshort-wchar. > > Also c

Re: [PATCH] util/grub-mkfont: use valid conversion specifications in printf and fprintf

2022-10-13 Thread Daniel Kiper
On Tue, Oct 11, 2022 at 08:31:02PM +0800, Qiumiao Zhang via Grub-devel wrote: > For printf/fprintf functions, unsigned integers should use %u as the valid > conversion specification instead of %d. > > Signed-off-by: Qiumiao Zhang Reviewed-by: Daniel Kiper Daniel __

Re: [RFC PATCH v3 1/2] mm: Try invalidate disk caches last when out of memory

2022-10-13 Thread Daniel Kiper
On Thu, Oct 13, 2022 at 09:29:18AM +0800, Zhang Boyang wrote: > Previously, every heap grow will cause all disk caches invalidated, > which decreases performance severely. This patch moves disk cache > invalidation code to the last of memory squeezing measures, so disk > caches are released only wh

[PATCH] grub-core/disk/cryptodisk.c: Fix unintentional integer overflow

2022-10-13 Thread Alec Brown
In the function grub_cryptodisk_endecrypt(), a for loop is incrementing the variable i by (1U << log_sector_size). The variable i is of type grub_size_t which is a 64-bit unsigned integer on x86_64 architecture. On the other hand, 1U is a 32-bit unsigned integer. By performing a left shift between