Re: [PATCH 2/6] efi: Convert device_path allocation to use malloc()

2024-07-25 Thread Simon Glass
Hi Heinrich, On Thu, 25 Jul 2024 at 10:18, Heinrich Schuchardt wrote: > > On 25.07.24 15:56, Simon Glass wrote: > > Currently this calls efi_alloc() which reserves a page for each > > allocation and this can overwrite memory that will be used for reading > > images. > > We already agreed to integ

Re: [PATCH 2/6] efi: Convert device_path allocation to use malloc()

2024-07-25 Thread Heinrich Schuchardt
On 25.07.24 15:56, Simon Glass wrote: Currently this calls efi_alloc() which reserves a page for each allocation and this can overwrite memory that will be used for reading images. We already agreed to integrate LMB and UEFI memory management to avoid this sort of problem. Please, have a look

[PATCH 2/6] efi: Convert device_path allocation to use malloc()

2024-07-25 Thread Simon Glass
Currently this calls efi_alloc() which reserves a page for each allocation and this can overwrite memory that will be used for reading images. Switch the code to use malloc(), as with other parts of EFI, such as efi_add_protocol(). Signed-off-by: Simon Glass --- lib/efi_loader/efi_device_path.