mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matt Domsch <Matt_Domsch@dell.com>
To: Linus Torvalds <torvalds@osdl.org>, greg@kroah.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: EFI partition code broken..
Date: Sun, 7 Nov 2004 15:52:04 -0600	[thread overview]
Message-ID: <20041107215204.GB3169@lists.us.dell.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0411071128240.24286@ppc970.osdl.org>

On Sun, Nov 07, 2004 at 11:30:18AM -0800, Linus Torvalds wrote:
> There's a few reports of various USB storage devices locking up. The last 
> one was an iPod, but there's apparently others too.
> 
> The reason? They are unhappy if you access them past the end, and they 
> seem to have problems reporting their true size.
> 
> And the EFI partitioning code will happily just blindly try to access the 
> last sector, because that's where the EFI partition is. Boom. Immediately 
> dead iPod/whatever.

Another train of thought, and copying gregkh for inspiration.  Is there
any way to know which devices lie about their size, and fix that with
quirk code in the device discovery routines?  While I can fix
fs/partitions/efi.c to not to always do I/O to the end of the
purported size of the device, userspace and 'dd' can't.  If we could
quirk down the reported size for devices known to lie, then everything
which uses that value wouldn't have to have its own rules for such.

Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

  parent reply	other threads:[~2004-11-07 21:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.58.0411070959560.2223@ppc970.osdl.org>
     [not found] ` <Pine.LNX.4.58.0411071128240.24286@ppc970.osdl.org>
2004-11-07 20:03   ` Matt Domsch
2004-11-07 21:13     ` Linus Torvalds
2004-11-09 21:49       ` Matt Domsch
2004-11-09 21:59         ` [PATCH 2.6] EFI GPT: reduce alternate header probing Matt Domsch
2004-11-07 21:52   ` Matt Domsch [this message]
2004-11-07 22:41     ` EFI partition code broken Linus Torvalds
2004-11-07 23:46     ` Andries Brouwer

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=20041107215204.GB3169@lists.us.dell.com \
    --to=matt_domsch@dell.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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

all inboxes | Powered by JetHome®