mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Juan Agustin Niccolini <juanagusnicco@gmail.com>
Cc: netdev@vger.kernel.org, john.fastabend@gmail.com,
	kuba@kernel.org, sd@queasysnail.net, davem@davemloft.net,
	edumazet@kernel.org, pabeni@redhat.com, willemb@google.com,
	horms@kernel.org, daniel@iogearbox.net, ast@kernel.org,
	jiayuan.chen@linux.dev, linux-kernel@vger.kernel.org,
	eddsterxyz@gmail.com, kylebot@openai.com
Subject: Re: [PATCH net] tls: set the copy cursor before cloning plaintext
Date: Mon, 30 Nov 2026 16:10:06 +0000	[thread overview]
Message-ID: <179605500675.3403811.7621253363656924847.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261123063842.64536-1-juanagusnicco@gmail.com>

Hello:

This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:

On Mon, 23 Nov 2026 01:38:42 -0500 you wrote:
> tls_sw_sendmsg_locked() copies into the open record by cloning space
> with tls_clone_plaintext_msg() and filling it with
> sk_msg_memcopy_from_iter(), which starts at sg.curr and sg.copybreak
> as left by whatever last added to the record. The copy trusts other
> paths to leave that cursor in the right state, and they have not.
> 
> Since commit d829e9c4112b ("tls: convert to generic sk_msg interface"),
> the path that adds the caller's own pages (sendpage, later splice) did
> not move sg.curr, so the next copy wrote into those pages. Commit
> c5a595000e26 ("net: tls, update curr on splice as well") fixed that by
> making the splice path leave sg.curr at sg.end with copybreak 0. That
> is only correct if the clone adds a new element. sk_msg_clone() instead
> grows the last element when the cloned range is contiguous with it, so
> sg.end does not move, and the copy starts at an unused slot, wraps
> around the ring and writes from sg.start, into the spliced pages again.
> 
> [...]

Here is the summary with links:
  - [net] tls: set the copy cursor before cloning plaintext
    https://git.kernel.org/netdev/net/c/80a141905909

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



      parent reply	other threads:[~2026-11-30 16:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  6:38 Juan Agustin Niccolini
     [not found] ` <CADsVqVCugK=ruV+gBaUrQ5fFXG6CwH1pq7K_UH_TabF47-YOag@mail.gmail.com>
2026-11-25 13:54   ` Juan Agustin Niccolini
2026-11-30 16:10 ` patchwork-bot+netdevbpf [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=179605500675.3403811.7621253363656924847.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=ast@kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=eddsterxyz@gmail.com \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=jiayuan.chen@linux.dev \
    --cc=john.fastabend@gmail.com \
    --cc=juanagusnicco@gmail.com \
    --cc=kuba@kernel.org \
    --cc=kylebot@openai.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sd@queasysnail.net \
    --cc=willemb@google.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

all inboxes | Powered by JetHome®