Linux block layer
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <chaitanyak@nvidia.com>
To: Keith Busch <kbusch@meta.com>,
	"axboe@kernel.dk" <axboe@kernel.dk>,
	"dlemoal@kernel.org" <dlemoal@kernel.org>,
	"johannes.thumshirn@wdc.com" <johannes.thumshirn@wdc.com>,
	"bvanassche@acm.org" <bvanassche@acm.org>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Cc: Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH] null_blk: fix zone read length beyond write pointer
Date: Wed, 12 Nov 2025 17:38:54 +0000	[thread overview]
Message-ID: <c960d4eb-b660-4506-965a-c5170ca08246@nvidia.com> (raw)
In-Reply-To: <20251112164218.816774-1-kbusch@meta.com>

On 11/12/25 08:42, Keith Busch wrote:
> From: Keith Busch<kbusch@kernel.org>
>
> Fix up the divisor calculating the number of zone sectors being read and
> handle a read that straddles the zone write pointer. The length is
> rounded up a sector boundary, so be sure to truncate any excess bytes
> off to avoid copying past the data segment.
>
> Fixes: 3451cf34f51bb70 ("null_blk: allow byte aligned memory offsets")
> Signed-off-by: Keith Busch<kbusch@kernel.org>



Looks good.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck



  parent reply	other threads:[~2025-11-12 17:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-12 16:42 [PATCH] null_blk: fix zone read length beyond write pointer Keith Busch
2025-11-12 17:00 ` Bart Van Assche
2025-11-12 17:03 ` Jens Axboe
2025-11-12 17:38 ` Chaitanya Kulkarni [this message]
2025-11-13  2:44 ` Damien Le Moal

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=c960d4eb-b660-4506-965a-c5170ca08246@nvidia.com \
    --to=chaitanyak@nvidia.com \
    --cc=axboe@kernel.dk \
    --cc=bvanassche@acm.org \
    --cc=dlemoal@kernel.org \
    --cc=johannes.thumshirn@wdc.com \
    --cc=kbusch@kernel.org \
    --cc=kbusch@meta.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox