From: Chaitanya Kulkarni <chaitanyak@nvidia.com>
To: Maurizio Lombardi <mlombard@redhat.com>,
"kbusch@kernel.org" <kbusch@kernel.org>
Cc: "linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
"dwagner@suse.de" <dwagner@suse.de>,
"yjshin0438@gmail.com" <yjshin0438@gmail.com>,
"hare@suse.de" <hare@suse.de>,
"sagi@grimberg.me" <sagi@grimberg.me>,
"mlombard@arkamax.eu" <mlombard@arkamax.eu>
Subject: Re: [PATCH V3 0/2] nvmet-tcp: fix receive path error handling and state machine
Date: Wed, 18 Mar 2026 00:24:36 +0000 [thread overview]
Message-ID: <3a4e57c8-13ba-41b2-90d4-4b0d4a22cab0@nvidia.com> (raw)
In-Reply-To: <20260316143936.120999-1-mlombard@redhat.com>
On 3/16/26 07:39, 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.
>
> V3: remove nvmet_tcp_fatal_error(), fold it into nvmet_tcp_socket_error()
>
> V2: some cosmetic changes to Patch 1, no functional changes.
>
> Maurizio Lombardi (2):
> nvmet-tcp: propagate nvmet_tcp_build_pdu_iovec() errors to its callers
> nvmet-tcp: remove redundant calls to nvmet_tcp_fatal_error()
>
> drivers/nvme/target/tcp.c | 88 ++++++++++++++++-----------------------
> 1 file changed, 36 insertions(+), 52 deletions(-)
>
Assuming that you have ran block test on this series with nvme_trtype=tcp
and this series is passing without any problem.
With that :-
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
-ck
next prev parent reply other threads:[~2026-03-18 0:24 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 ` Chaitanya Kulkarni [this message]
2026-03-18 7:20 ` [PATCH V3 0/2] nvmet-tcp: fix receive path error handling and state machine Maurizio Lombardi
2026-04-08 15:30 ` Maurizio Lombardi
2026-04-08 19:05 ` Keith Busch
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=3a4e57c8-13ba-41b2-90d4-4b0d4a22cab0@nvidia.com \
--to=chaitanyak@nvidia.com \
--cc=dwagner@suse.de \
--cc=hare@suse.de \
--cc=kbusch@kernel.org \
--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