public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Schmitz <schmitzmic@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-block@vger.kernel.org, axboe@kernel.dk,
	linux-m68k@vger.kernel.org, chzigotzky@xenosoft.de, hch@lst.de,
	martin@lichtvoll.de, stable@vger.kernel.org
Subject: Re: [PATCH v3] block: bugfix for Amiga partition overflow check patch
Date: Wed, 5 Jul 2023 20:50:47 +1200	[thread overview]
Message-ID: <07830f19-5275-2108-adf0-b5c1c1d2b5f6@gmail.com> (raw)
In-Reply-To: <CAMuHMdVD9r2XjPYU9WJXYoSO5LriCoYy+TOp4ddru3WbX803Tg@mail.gmail.com>

Hi Geert,

Am 05.07.2023 um 19:24 schrieb Geert Uytterhoeven:
>>> We do not really have a way to record comments in git history
>>> after the fact.  The best you can do is to reply to the email thread
>>> where the patch was submitted.  When people follow the Link:
>>> tag to the lore archive in the original commit, they can read any follow-ups.
>>
>> Does lore pick up related patches through the In-Reply-To header? In
>> that case it would be easiest for me to to put this comment in a cover
>> letter to the bugfix patch.
>
> Lore does not do that (b4 (the tool to download patch series from lore)
> usually can link a series to its previous version, though).
> New replies sent to a patch submission do end up in the right thread,
> so any later comments (bug reports, Reviewed/Tested-by tags, ...)
> can be found easily by following the Link: tag in the commit.

OK, that's good enough for me.

>>>> Partitions that did overflow the disk size (due to 32 bit int
>>>> overflow) were not skipped but truncated to the end of the
>>>> disk. Users who missed the warning message during boot would
>>> I am confused.  So before, the partition size as seen by Linux after
>>> the truncation, was correct?
>>
>> No, it was incorrect (though valid).
>>
>> On a 2 TB disk, a partition of 1.3 TB at the end of the disk (but not
>> extending to the very end!) would trigger a overflow in the size
>> calculation:
>>
>> sda: p4 size 18446744071956107760 extends beyond EOD,
>
> Oh, so they were not "truncated to the end of the disk"?

Not by the RDB parser, but truncation happens ultimately. I should have 
copied the second instance of that message from Christian's log:

sda: p4 size 18446744071956107760 extends beyond EOD, truncated

The core partition code later sanity checks the partition data and 
truncates (see block/partitions/core.c:blk_add_partition())

Cheers,

	Michael

  reply	other threads:[~2023-07-05  8:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-04  5:49 [PATCH v3] block: bugfix for Amiga partition overflow check patch Michael Schmitz
2023-07-04  6:54 ` Greg KH
2023-07-04 19:35   ` Michael Schmitz
2023-07-04  7:20 ` Geert Uytterhoeven
2023-07-04 19:30   ` Michael Schmitz
2023-07-05  7:24     ` Geert Uytterhoeven
2023-07-05  8:50       ` Michael Schmitz [this message]
2023-07-04  7:34 ` Martin Steigerwald

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=07830f19-5275-2108-adf0-b5c1c1d2b5f6@gmail.com \
    --to=schmitzmic@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=chzigotzky@xenosoft.de \
    --cc=geert@linux-m68k.org \
    --cc=hch@lst.de \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=martin@lichtvoll.de \
    --cc=stable@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