From: Dominik Maier <dmnk@google.com>
To: netdev-bot+sashiko@kernel.org
Cc: Dominik Maier <dmnk@google.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Kuniyuki Iwashima <kuniyu@google.com>,
Simon Horman <horms@kernel.org>,
Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
netdev@vger.kernel.org, dmnk+artist@google.com
Subject: Re: [PATCH net v2] net: avoid clobbering active cork flowi union on datagram connect
Date: Mon, 30 Nov 2026 17:04:26 +0100 [thread overview]
Message-ID: <20261130160426.2652203-1-dmnk@google.com> (raw)
In-Reply-To: <179577046722.3135.9189478439176832766@kernel.org>
On Fri, 27 Nov 2026 09:07:47 +0000, netdev-bot+sashiko@kernel.org wrote:
> - [High] udp_sendmsg()'s connected fast path does not take the socket
> lock, and it still sends with whatever is stored in the shared…
> - [High] Finishing an IPv4 cork on an AF_INET6 UDP socket connected to a
> native IPv6 peer only calls sk_dst_reset() (include/net/udp.h:429-432).
> - [Medium] For non-UDP datagram sockets, __ip4_datagram_connect_corked()
> (net/ipv4/datagram.c) and ip6_datagram_dst_update_corked()…
> - [Medium] L2TP UDP-encap transmit still uses the user tunnel socket's
> inet->cork.fl as its working flow while the user has frames corked.
> - [Low] The comment "Throw away all pending data and cancel the corking.
Thanks, all five points are valid. Sending v3 with:
- udp_sendmsg()'s lockless connected fast path filling fl4_stack from
the socket fields instead of reading shared inet->cork.fl.u.ip4;
- AF_INET6 UDP restoring inet->cork.fl.u.ip6 (and np->final) when an
IPv4 cork completes on a native-IPv6-connected socket;
- l2tp_xmit_core() skipping transmit while sk_write_queue is non-empty,
alongside sock_owned_by_user();
- the udp_v6_flush_pending_frames() comment kept directly above that
function.
pw-bot: cr
prev parent reply other threads:[~2026-11-30 16:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 18:06 [PATCH net v2] net: avoid clobbering active cork flowi union on datagram connect Dominik Maier
2026-11-27 9:07 ` netdev-bot+sashiko
2026-11-30 16:04 ` Dominik Maier [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=20261130160426.2652203-1-dmnk@google.com \
--to=dmnk@google.com \
--cc=davem@davemloft.net \
--cc=dmnk+artist@google.com \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemdebruijn.kernel@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 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.