From: Qingfang Deng <qingfang.deng@linux.dev>
To: netdev-bot+sinfo@kernel.org
Cc: John Fastabend <john.fastabend@gmail.com>,
Jakub Kicinski <kuba@kernel.org>,
Sabrina Dubroca <sd@queasysnail.net>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
Dave Watson <davejwatson@fb.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Chuck Lever <cel@kernel.org>
Subject: Re: [PATCH net] tls: skip empty data records in tls_sw_splice_read()
Date: Wed, 30 Sep 2026 13:49:54 +0800 [thread overview]
Message-ID: <b3409f74-749d-45f3-8dde-84ba9d135001@linux.dev> (raw)
In-Reply-To: <179074618718.31693.10040628020266132112@kernel.org>
On 2026/9/30 13:29, netdev-bot+sinfo@kernel.org wrote:
> Hi!
>
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
>
> - Whether the issue was actually triggered, or is only theoretical
> (e.g. found by code inspection). If it was triggered please include
> the symptoms, like the stack trace or error messages.
>
> Please do not repost the series just to address the above. Instead,
> reply to this email with the missing information, so that reviewers
> can take it into account. If the series needs another revision for
> other reasons, please include the information in the commit messages
> then.
>
> The evaluation is done by an LLM so it may be wrong, if you think
> that is the case please reply and explain.
Quoting Sashiko's reply:
> When an application invokes splice() on a TLS 1.3 socket and a
> 0-length record arrives, rxm->full_len is 0, making chunk 0.
> net/tls/tls_sw.c:tls_sw_splice_read() { ... chunk = min_t(unsigned
> int, rxm->full_len, len); copied = skb_splice_bits(skb, sk,
> rxm->offset, pipe, chunk, flags); if (copied < 0) goto splice_requeue;
> if (copied < rxm->full_len) { rxm->offset += copied; rxm->full_len -=
> copied; goto splice_requeue; } consume_skb(skb); splice_read_end:
> tls_rx_reader_unlock(sk, ctx); return copied ? : err; } Because copied
> is 0, the copied < rxm->full_len check fails, the SKB is consumed, and
> the function returns 0. Returning 0 from a splice operation signals
> End-of-File to userspace, which would erroneously drop the live
> connection.
Best regards,
next prev parent reply other threads:[~2026-09-30 5:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 5:26 [PATCH net] tls: skip empty data records in tls_sw_splice_read() Qingfang Deng
2026-09-30 5:29 ` netdev-bot+sinfo
2026-09-30 5:49 ` Qingfang Deng [this message]
2026-09-30 9:13 ` Sabrina Dubroca
2026-09-30 9:24 ` Qingfang Deng
2026-09-30 9:47 ` Sabrina Dubroca
2026-09-30 13:45 ` Chuck Lever
2026-09-30 14:51 ` Sabrina Dubroca
2026-09-30 14:57 ` Chuck Lever
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=b3409f74-749d-45f3-8dde-84ba9d135001@linux.dev \
--to=qingfang.deng@linux.dev \
--cc=cel@kernel.org \
--cc=davejwatson@fb.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sinfo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sd@queasysnail.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.