From: Jens Axboe <axboe@kernel.dk>
To: Jann Horn <jannh@google.com>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] partitions: mac: fix handling of bogus partition table
Date: Fri, 14 Feb 2025 15:40:28 -0700 [thread overview]
Message-ID: <173957282830.385288.5820409491649052216.b4-ty@kernel.dk> (raw)
In-Reply-To: <20250214-partition-mac-v1-1-c1c626dffbd5@google.com>
On Fri, 14 Feb 2025 02:39:50 +0100, Jann Horn wrote:
> Fix several issues in partition probing:
>
> - The bailout for a bad partoffset must use put_dev_sector(), since the
> preceding read_part_sector() succeeded.
> - If the partition table claims a silly sector size like 0xfff bytes
> (which results in partition table entries straddling sector boundaries),
> bail out instead of accessing out-of-bounds memory.
> - We must not assume that the partition table contains proper NUL
> termination - use strnlen() and strncmp() instead of strlen() and
> strcmp().
>
> [...]
Applied, thanks!
[1/1] partitions: mac: fix handling of bogus partition table
commit: 80e648042e512d5a767da251d44132553fe04ae0
Best regards,
--
Jens Axboe
prev parent reply other threads:[~2025-02-14 22:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-14 1:39 Jann Horn
2025-02-14 22:40 ` Jens Axboe [this message]
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=173957282830.385288.5820409491649052216.b4-ty@kernel.dk \
--to=axboe@kernel.dk \
--cc=jannh@google.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®