util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: util-linux@vger.kernel.org, grawity@gmail.com
Subject: Re: [bug] incorrect GPT entry validation?
Date: Mon, 5 Nov 2012 10:45:46 +0100	[thread overview]
Message-ID: <20121105094546.GA365@x2.net.home> (raw)
In-Reply-To: <20121103183511.GO482@rampage>

On Sat, Nov 03, 2012 at 02:35:11PM -0400, Dave Reisner wrote:
> Hi,
> 
> A user reported problems with libblkid incorrectly reporting (or not
> reporting) tags for some partitions on a GPT formatted disk. I was able
> to reproduce it:
> 
> - created a 10G disk on a VM
> - initialized it with GPT (using gdisk), created 5 entries
> - formatted each of them with ext4
> 
> blkid correctly reads the first 2 entries on the disk, but then starts
> reporting corrupted GPT entries (seen via LIBBLKID_DEBUG=0xffff):
> 
> https://dev.archlinux.org/~dreisner/blkid_bad.txt

It would be nice to have the debug output.

Please, send me begin of the device:

    # dd if=/dev/vdd of=img count=1 bs=1Mib
    # gzip -9 img

> It's interesting to note that blkid will _always_ read 2 entries before
> reporting corruption, i.e.

Hmm... sounds like in-memory buffer corruption libblkid caches the
data from the device).

> # blkid -c /dev/null /dev/vdd{4,5,2}

Are you able to reproduce the bug by "blkid -p -o udev" ?

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2012-11-05  9:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-03 18:35 [bug] incorrect GPT entry validation? Dave Reisner
2012-11-05  9:45 ` Karel Zak [this message]
2012-11-05 14:05   ` Mantas Mikulėnas
2012-11-21 14:53 ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121105094546.GA365@x2.net.home \
    --to=kzak@redhat.com \
    --cc=grawity@gmail.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).