From: Jan Kiszka <[email protected]>
Avoid reporting an error but then not returning a proper error code to
the firmware. Impact is rather cosmetic, latest the watchdog will catch
this early termination.
Fixes: 4b76201933bf ("kernel-stub: Check for overflow when casting to VOID *")
Signed-off-by: Jan Kiszka <[email protected]>
---
kernel-stub/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel-stub/main.c b/kernel-stub/main.c
index 7da9009..5b83eba 100644
--- a/kernel-stub/main.c
+++ b/kernel-stub/main.c
@@ -200,6 +200,7 @@ EFI_STATUS efi_main(EFI_HANDLE image_handle,
EFI_SYSTEM_TABLE *system_table)
align_addr(kernel_buffer, pe_header->Opt.SectionAlignment);
if ((uintptr_t) aligned_kernel_buffer != aligned_kernel_buffer) {
error(L"Alignment overflow for kernel image", EFI_LOAD_ERROR);
+ status = EFI_LOAD_ERROR;
goto cleanup_buffer;
}
--
2.47.3
--
You received this message because you are subscribed to the Google Groups "EFI
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/efibootguard-dev/b41fc2a29274333d50a82768a33f34ca0370d15e.1775543350.git.jan.kiszka%40siemens.com.