Page MenuHomeFreeBSD

add safety belt check for boot1.efi file size
ClosedPublic

Authored by emaste on Jan 8 2016, 2:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 18 2024, 10:00 AM
Unknown Object (File)
Oct 18 2024, 10:00 AM
Unknown Object (File)
Oct 18 2024, 10:00 AM
Unknown Object (File)
Oct 18 2024, 9:59 AM
Unknown Object (File)
Oct 18 2024, 9:59 AM
Unknown Object (File)
Oct 18 2024, 9:42 AM
Unknown Object (File)
Oct 14 2024, 11:56 AM
Unknown Object (File)
Sep 22 2024, 5:10 PM
Subscribers

Diff Detail

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

Event Timeline

emaste retitled this revision from to add safety belt check for boot1.efi file size.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a reviewer: smh.
emaste added a subscriber: smh.

Apart from the default for BOOT1_MAXSIZE this looks good and I've confirmed worked as expected locally, so nice one :)

sys/boot/efi/boot1/Makefile
82 โ†—(On Diff #12045)

This should really match BOOT1_SIZE from generate-fat.sh which is currently 128k not 64k

emaste edited edge metadata.
  • use same style of size check as boot2
  • update default max size after rS279533
sys/boot/efi/boot1/Makefile
86 โ†—(On Diff #12051)

I would prefer to see something along the lines of:

XX additional bytes required for boot1.efi (generate-fat.sh required?)

improve error message when boot1.efi is too large

smh edited edge metadata.
This revision is now accepted and ready to land.Jan 8 2016, 4:25 PM
This revision was automatically updated to reflect the committed changes.