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)
Sat, Oct 11, 6:11 AM
Unknown Object (File)
Fri, Oct 10, 12:57 PM
Unknown Object (File)
Sat, Sep 20, 10:47 AM
Unknown Object (File)
Tue, Sep 16, 4:41 PM
Unknown Object (File)
Sat, Sep 13, 9:01 AM
Unknown Object (File)
Aug 19 2025, 5:22 PM
Unknown Object (File)
Aug 1 2025, 11:03 PM
Unknown Object (File)
Jul 26 2025, 7:48 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.