Page MenuHomeFreeBSD

loader.efi: Fix off by one error in size of the virtual disk
ClosedPublic

Authored by imp on Jul 7 2026, 4:13 AM.
Tags
None
Referenced Files
F165885045: D58069.id181415.diff
Mon, Aug 10, 10:20 AM
F165880527: D58069.id181415.diff
Mon, Aug 10, 10:01 AM
F165879479: D58069.id181659.diff
Mon, Aug 10, 9:58 AM
Unknown Object (File)
Mon, Aug 10, 12:41 AM
Unknown Object (File)
Sun, Aug 9, 7:46 AM
Unknown Object (File)
Sun, Aug 9, 2:00 AM
Unknown Object (File)
Sat, Aug 8, 9:32 PM
Unknown Object (File)
Sat, Aug 8, 6:35 PM
Subscribers

Details

Summary

The end address is the final byte in the array, not one byte past the
end of the array, so we need to add 1 to get the full length.

Fixes: 59219fc76a4b ("loader.efi: efiblk_memdisk_preload passes the VirtualDisks to FreeBSD")
Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable