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, Mar 1, 5:35 AM
Unknown Object (File)
Fri, Feb 21, 4:29 PM
Unknown Object (File)
Feb 1 2025, 2:15 PM
Unknown Object (File)
Jan 22 2025, 12:51 AM
Unknown Object (File)
Jan 12 2025, 4:58 PM
Unknown Object (File)
Jan 12 2025, 4:34 PM
Unknown Object (File)
Dec 24 2024, 11:47 PM
Unknown Object (File)
Dec 8 2024, 10:25 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.