All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
To: axboe@kernel.dk
Cc: linux-block@vger.kernel.org
Subject: Re: [PATCH] block: atari: Return early for unsupported sector size
Date: Tue, 12 Jul 2016 22:42:30 -0300	[thread overview]
Message-ID: <87inwa9uux.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <1467736712-11825-1-git-send-email-krisman@linux.vnet.ibm.com> (Gabriel Krisman Bertazi's message of "Tue, 5 Jul 2016 13:38:32 -0300")

Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com> writes:

> For 4K LBA or very large disks, atari_partition can easily get tricked
> into thinking it has found an Atari partition table.  Depending on the
> data in the disk, it ends up creating partitions with awkward lengths.
>
> We saw logs like this while playing with fio.
>
> [5.625867] nvme2n1: AHDI p2
> [5.625872] nvme2n1: p2 size 2910030523 extends beyond EOD, truncated
>
> People has had issues with misinterpreted AHDI partition tables for a long
> time, see this BSD thread from 1995, for example.
>
> https://mail-index.netbsd.org/port-atari/1995/11/19/0001.html
>
> Since the atari partition, according to the spec, doesn't even support
> sector sizes with more than 512, a quick sanity check is reasonable to
> just bail out early, before even attempting to read sector 0.
>
> Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
> ---

Hi Jens,

Any thoughts on this?  Do you think we can get it queued for 4.8?
-- 
Gabriel Krisman Bertazi

  reply	other threads:[~2016-07-13  1:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05 16:38 [PATCH] block: atari: Return early for unsupported sector size Gabriel Krisman Bertazi
2016-07-13  1:42 ` Gabriel Krisman Bertazi [this message]
2016-07-13 16:32 ` Jens Axboe

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=87inwa9uux.fsf@linux.vnet.ibm.com \
    --to=krisman@linux.vnet.ibm.com \
    --cc=axboe@kernel.dk \
    --cc=linux-block@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.