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
F169881084: D58069.id.diff
Wed, Sep 2, 9:13 PM
F169866038: D58069.diff
Wed, Sep 2, 8:06 PM
Unknown Object (File)
Wed, Sep 2, 8:31 AM
Unknown Object (File)
Wed, Sep 2, 6:46 AM
Unknown Object (File)
Tue, Sep 1, 9:01 PM
Unknown Object (File)
Tue, Sep 1, 3:19 AM
Unknown Object (File)
Mon, Aug 31, 7:18 PM
Unknown Object (File)
Mon, Aug 31, 2:25 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 74572
Build 71455: arc lint + arc unit