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)
Sun, Dec 14, 12:01 PM
Unknown Object (File)
Thu, Nov 20, 11:12 PM
Unknown Object (File)
Thu, Nov 20, 11:10 PM
Unknown Object (File)
Thu, Nov 20, 11:02 PM
Unknown Object (File)
Nov 16 2025, 6:31 PM
Unknown Object (File)
Nov 16 2025, 5:12 PM
Unknown Object (File)
Nov 16 2025, 4:28 PM
Unknown Object (File)
Nov 16 2025, 10:27 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.