public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
From: Keith Busch <kbusch@kernel.org>
To: Maurizio Lombardi <mlombard@redhat.com>
Cc: linux-nvme@lists.infradead.org, dwagner@suse.de,
	yjshin0438@gmail.com, hare@suse.de, sagi@grimberg.me,
	chaitanyak@nvidia.com, mlombard@arkamax.eu
Subject: Re: [PATCH V3 0/2] nvmet-tcp: fix receive path error handling and state machine
Date: Wed, 8 Apr 2026 13:05:24 -0600	[thread overview]
Message-ID: <adam9I0CCWi5_Ipl@kbusch-mbp> (raw)
In-Reply-To: <20260316143936.120999-1-mlombard@redhat.com>

On Mon, Mar 16, 2026 at 03:39:34PM +0100, Maurizio Lombardi wrote:
> Patch 1 fixes a potential issue where network data could be read into an
> uninitialized iterator. Currently, nvmet_tcp_build_pdu_iovec() returns void,
> meaning callers are unaware if an out-of-bounds PDU length or offset triggers
> an early return. Consequently, callers blindly overwrite the queue state to
> NVMET_TCP_RECV_DATA. This patch modifies the function to return an error code,
> shifting the handling responsibility to the callers to ensure proper socket
> teardown.
> 
> Patch 2 cleans up redundant, localized calls to nvmet_tcp_fatal_error() scattered
> across the receive path. It delegates the responsibility of executing the fatal
> error function to the top-level caller by bubbling up the error codes.

Thanks, applied to nvme-7.1.


      parent reply	other threads:[~2026-04-08 19:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-16 14:39 [PATCH V3 0/2] nvmet-tcp: fix receive path error handling and state machine Maurizio Lombardi
2026-03-16 14:39 ` [PATCH V3 1/2] nvmet-tcp: propagate nvmet_tcp_build_pdu_iovec() errors to its callers Maurizio Lombardi
2026-03-17  4:33   ` yunje shin
2026-03-16 14:39 ` [PATCH V3 2/2] nvmet-tcp: remove redundant calls to nvmet_tcp_fatal_error() Maurizio Lombardi
2026-03-17  6:58   ` Hannes Reinecke
2026-03-18  0:24 ` [PATCH V3 0/2] nvmet-tcp: fix receive path error handling and state machine Chaitanya Kulkarni
2026-03-18  7:20   ` Maurizio Lombardi
2026-04-08 15:30 ` Maurizio Lombardi
2026-04-08 19:05 ` Keith Busch [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=adam9I0CCWi5_Ipl@kbusch-mbp \
    --to=kbusch@kernel.org \
    --cc=chaitanyak@nvidia.com \
    --cc=dwagner@suse.de \
    --cc=hare@suse.de \
    --cc=linux-nvme@lists.infradead.org \
    --cc=mlombard@arkamax.eu \
    --cc=mlombard@redhat.com \
    --cc=sagi@grimberg.me \
    --cc=yjshin0438@gmail.com \
    /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