grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* grub mishandles corrupt/missing primary GPT
@ 2013-10-24  1:38 Chris Murphy
  2013-10-24  1:49 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 13+ messages in thread
From: Chris Murphy @ 2013-10-24  1:38 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

https://bugzilla.redhat.com/show_bug.cgi?id=1022743

Gist is, starting with a disk with valid PMBR, primary GPT, and backup GPT, if I zero LBA 2, I can no longer boot from the disk. I get a grub rescue prompt.

Instead, if I merely corrupt a portion of the first partitiontypeguid to mimic corruption, I can still boot, whereas this primary GPT fails checksums with both gdisk and parted. 

This tells me that GRUB isn't checking for the validity of the primary GPT. And GRUB doesn't ever use the backup GPT.

Expected behavior is GRUB should check if the MBR is a PMBR (1st and only entry is type 0xEE) and if not then consider the disk MBR. If it is PMBR, check validity of the primary GPT header+table, if valid use it. If invalid, check validity of backup GPT header+table, if valid use it. If invalid, fail.

Chris Murphy

[-- Attachment #2: Type: text/html, Size: 1140 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-12-10 19:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-24  1:38 grub mishandles corrupt/missing primary GPT Chris Murphy
2013-10-24  1:49 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-24  3:07   ` Chris Murphy
2013-10-24 13:39     ` Lennart Sorensen
2013-10-24 18:17       ` Chris Murphy
2013-11-02 22:36         ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-09 15:28   ` Phillip Susi
2013-12-09 15:54     ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-10  0:11       ` Chris Murphy
2013-12-10  0:55         ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-10  1:56           ` Chris Murphy
2013-12-10  2:06             ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-10 19:38       ` Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).