Page MenuHomeFreeBSD

Fix pmbr issues > 2TB
ClosedPublic

Authored by imp on Jul 7 2021, 9:37 PM.
Tags
None
Referenced Files
F161354194: D31100.id91953.diff
Fri, Jul 3, 2:39 AM
F161346945: D31100.id91962.diff
Fri, Jul 3, 1:07 AM
F161340341: D31100.id.diff
Thu, Jul 2, 11:36 PM
F161338168: D31100.id92157.diff
Thu, Jul 2, 11:06 PM
Unknown Object (File)
Wed, Jul 1, 1:13 PM
Unknown Object (File)
Wed, Jul 1, 4:14 AM
Unknown Object (File)
May 6 2026, 2:04 AM
Unknown Object (File)
Apr 30 2026, 7:24 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40385
Build 37274: arc lint + arc unit