Re: [PATCH 2/4] efi_loader: check alignment in efi_add_memory_map()

2020-05-14 Thread Heinrich Schuchardt
On 5/14/20 8:50 PM, Michael Walle wrote: > Am 2020-05-14 20:35, schrieb Heinrich Schuchardt: >> On 5/14/20 2:38 PM, Michael Walle wrote: >>> The first argument has to be aligned with EFI_PAGE_SIZE. This alignment >>> is already checked for external callers but it is not checked for >>> internal cal

Re: [PATCH 2/4] efi_loader: check alignment in efi_add_memory_map()

2020-05-14 Thread Michael Walle
Am 2020-05-14 20:35, schrieb Heinrich Schuchardt: On 5/14/20 2:38 PM, Michael Walle wrote: The first argument has to be aligned with EFI_PAGE_SIZE. This alignment is already checked for external callers but it is not checked for internal callers. Unfortunately, most of the time the return value

Re: [PATCH 2/4] efi_loader: check alignment in efi_add_memory_map()

2020-05-14 Thread Heinrich Schuchardt
On 5/14/20 2:38 PM, Michael Walle wrote: > The first argument has to be aligned with EFI_PAGE_SIZE. This alignment > is already checked for external callers but it is not checked for > internal callers. Unfortunately, most of the time the return value is > not checked, so scream loud and clear. Wh

[PATCH 2/4] efi_loader: check alignment in efi_add_memory_map()

2020-05-14 Thread Michael Walle
The first argument has to be aligned with EFI_PAGE_SIZE. This alignment is already checked for external callers but it is not checked for internal callers. Unfortunately, most of the time the return value is not checked, so scream loud and clear. Signed-off-by: Michael Walle --- lib/efi_loader/e