From: Sabrina Dubroca <sd@queasysnail.net>
To: netdev@vger.kernel.org
Cc: Cong Wang <xiyou.wangcong@gmail.com>, Xiumei Mu <xmu@redhat.com>,
Sabrina Dubroca <sd@queasysnail.net>
Subject: [PATCH net 0/2] net: convert ipv6_stub to ip6_dst_lookup_flow
Date: Wed, 4 Dec 2019 15:35:51 +0100 [thread overview]
Message-ID: <cover.1575458463.git.sd@queasysnail.net> (raw)
Xiumei Mu reported a bug in a VXLAN over IPsec setup:
IPv6 | ESP | VXLAN
Using this setup, packets go out unencrypted, because VXLAN over IPv6
gets its route from ipv6_stub->ipv6_dst_lookup (in vxlan6_get_route),
which doesn't perform an XFRM lookup.
This patchset first makes ip6_dst_lookup_flow suitable for some
existing users of ipv6_stub->ipv6_dst_lookup by adding a 'net'
argument, then converts all those users.
Sabrina Dubroca (2):
net: ipv6: add net argument to ip6_dst_lookup_flow
net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup
drivers/infiniband/core/addr.c | 7 +++----
drivers/infiniband/sw/rxe/rxe_net.c | 8 +++++---
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c | 8 ++++----
drivers/net/geneve.c | 4 +++-
drivers/net/vxlan.c | 8 +++-----
include/net/ipv6.h | 2 +-
include/net/ipv6_stubs.h | 6 ++++--
net/core/lwt_bpf.c | 4 +---
net/dccp/ipv6.c | 6 +++---
net/ipv6/addrconf_core.c | 11 ++++++-----
net/ipv6/af_inet6.c | 4 ++--
net/ipv6/datagram.c | 2 +-
net/ipv6/inet6_connection_sock.c | 4 ++--
net/ipv6/ip6_output.c | 8 ++++----
net/ipv6/raw.c | 2 +-
net/ipv6/syncookies.c | 2 +-
net/ipv6/tcp_ipv6.c | 4 ++--
net/l2tp/l2tp_ip6.c | 2 +-
net/mpls/af_mpls.c | 7 +++----
net/sctp/ipv6.c | 4 ++--
net/tipc/udp_media.c | 9 ++++++---
21 files changed, 58 insertions(+), 54 deletions(-)
--
2.23.0
next reply other threads:[~2019-12-04 14:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-04 14:35 Sabrina Dubroca [this message]
2019-12-04 14:35 ` [PATCH net 1/2] net: ipv6: add net argument to ip6_dst_lookup_flow Sabrina Dubroca
2019-12-04 14:35 ` [PATCH net 2/2] net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup Sabrina Dubroca
2019-12-04 20:27 ` [PATCH net 0/2] net: convert ipv6_stub to ip6_dst_lookup_flow David Miller
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=cover.1575458463.git.sd@queasysnail.net \
--to=sd@queasysnail.net \
--cc=netdev@vger.kernel.org \
--cc=xiyou.wangcong@gmail.com \
--cc=xmu@redhat.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;
as well as URLs for NNTP newsgroup(s).