Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149900859
D36710.1791157181.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
617 B
Referenced Files
None
Subscribers
None
D36710.1791157181.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D36710: geom_part: Check LBA address of the alternate GPT header
Attached
Detach File
Event Timeline
Log In to Comment