Page MenuHomeFreeBSD

Fix pmbr issues > 2TB
ClosedPublic

Authored by imp on Jul 7 2021, 9:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 5 2024, 4:32 PM
Unknown Object (File)
Jan 5 2024, 3:23 PM
Unknown Object (File)
Dec 19 2023, 11:48 PM
Unknown Object (File)
Dec 9 2023, 11:23 PM
Unknown Object (File)
Nov 23 2023, 1:38 PM
Unknown Object (File)
Nov 16 2023, 2:45 PM
Unknown Object (File)
Nov 13 2023, 8:06 PM
Unknown Object (File)
Nov 7 2023, 6:37 PM
Subscribers

Details

Summary

These issues have low impact because they require precise circumstances
to trigger one of them. The disk must be > 2 TiB in size and either:

  • The primary GPT header is dammaged.
  • The freebsd-boot partiton is located farther than the first 2 TiB of the disc and one of its sectors takes place at a lba value that makes the higher 32 bits of this very value change.

Errors and corrections folow:

  • decl and incl don't affect CF, so replace with subl/addl $1
  • repe uses %cx, so move size to it with movw
  • moving a 64-bit value with %cx of 2 (should be 4) so addresses > 2TB will work.

Diff Detail

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