Re: [PATCH] lib/relocator: always enforce the requested alignment in malloc_in_range()

2023-05-09 Thread Daniel Kiper
On Mon, May 08, 2023 at 09:34:15AM +0200, Roger Pau Monné wrote: > On Fri, Apr 28, 2023 at 04:15:24PM +0200, Daniel Kiper wrote: > > On Thu, Apr 27, 2023 at 05:06:54PM +0200, Roger Pau Monne via Grub-devel > > wrote: > > > On failure to allocate from grub_relocator_firmware_alloc_region() in > >

Re: [PATCH] lib/relocator: always enforce the requested alignment in malloc_in_range()

2023-05-08 Thread Roger Pau Monné via Grub-devel
On Fri, Apr 28, 2023 at 04:15:24PM +0200, Daniel Kiper wrote: > On Thu, Apr 27, 2023 at 05:06:54PM +0200, Roger Pau Monne via Grub-devel > wrote: > > On failure to allocate from grub_relocator_firmware_alloc_region() in > > malloc_in_range() the function would stop enforcing the alignment, and >

Re: [PATCH] lib/relocator: always enforce the requested alignment in malloc_in_range()

2023-04-28 Thread Daniel Kiper
On Thu, Apr 27, 2023 at 05:06:54PM +0200, Roger Pau Monne via Grub-devel wrote: > On failure to allocate from grub_relocator_firmware_alloc_region() in > malloc_in_range() the function would stop enforcing the alignment, and > the following was returned: > > lib/relocator.c:431: trying to allocate

[PATCH] lib/relocator: always enforce the requested alignment in malloc_in_range()

2023-04-27 Thread Roger Pau Monne via Grub-devel
On failure to allocate from grub_relocator_firmware_alloc_region() in malloc_in_range() the function would stop enforcing the alignment, and the following was returned: lib/relocator.c:431: trying to allocate in 0x20-0xffbf9fff aligned 0x20 size 0x406000 lib/relocator.c:1197: allocated: