Page MenuHomeFreeBSD

gptboot.efi: align secbuf to 4K
ClosedPublic

Authored by mhorne on Jun 3 2020, 12:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 23 2024, 3:22 PM
Unknown Object (File)
Feb 23 2024, 3:22 PM
Unknown Object (File)
Feb 23 2024, 3:22 PM
Unknown Object (File)
Feb 23 2024, 2:59 PM
Unknown Object (File)
Feb 19 2024, 4:14 PM
Unknown Object (File)
Dec 20 2023, 7:33 AM
Unknown Object (File)
Nov 21 2023, 8:50 AM
Unknown Object (File)
Aug 31 2023, 11:38 AM
Subscribers

Details

Summary

The u-boot EFI implementation of the ReadBlocks and WriteBlocks methods
requires that the provided buffer meet the IO alignment requirements of
the underlying disk. Unlike loader.efi, gptboot.efi doesn't check this
requirement, and therefore fails to perform a successful read. Adjust
secbuf's alignment to 4K in hopes that we will always meet this
requirement.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

We boot off 512byte devices... good find...

This revision is now accepted and ready to land.Jun 3 2020, 3:01 AM
This revision was automatically updated to reflect the committed changes.