Page MenuHomeFreeBSD

D36710.1791157181.diff
No OneTemporary

Size
617 B
Referenced Files
None
Subscribers
None

D36710.1791157181.diff

diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c
--- a/sys/geom/part/g_part_gpt.c
+++ b/sys/geom/part/g_part_gpt.c
@@ -486,9 +486,12 @@
if (hdr->hdr_lba_self != table->lba[elt])
goto fail;
hdr->hdr_lba_alt = le64toh(buf->hdr_lba_alt);
- if (hdr->hdr_lba_alt == hdr->hdr_lba_self)
- goto fail;
- if (hdr->hdr_lba_alt > last && geom_part_check_integrity)
+ if (elt == GPT_ELT_PRIHDR) {
+ if (hdr->hdr_lba_alt < 2)
+ goto fail;
+ if (hdr->hdr_lba_alt > last && geom_part_check_integrity)
+ goto fail;
+ } else if (hdr->hdr_lba_alt != 1)
goto fail;
/* Check the managed area. */

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 4, 11:39 PM (12 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30165037
Default Alt Text
D36710.1791157181.diff (617 B)

Event Timeline