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)
Mon, Jun 22, 11:52 AM
Unknown Object (File)
Fri, Jun 19, 10:42 AM
Unknown Object (File)
Jun 17 2026, 12:18 PM
Unknown Object (File)
May 3 2026, 10:07 AM
Unknown Object (File)
Apr 28 2026, 2:46 PM
Unknown Object (File)
Apr 27 2026, 6:43 PM
Unknown Object (File)
Apr 27 2026, 4:14 AM
Unknown Object (File)
Apr 25 2026, 3:05 PM
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.