Sabrina Dubroca
48d58ae9e8
net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup
...
[ Upstream commit 6c8991f41546c3c472503dff1ea9daaddf9331c2 ]
ipv6_stub uses the ip6_dst_lookup function to allow other modules to
perform IPv6 lookups. However, this function skips the XFRM layer
entirely.
All users of ipv6_stub->ip6_dst_lookup use ip_route_output_flow (via the
ip_route_output_key and ip_route_output helpers) for their IPv4 lookups,
which calls xfrm_lookup_route(). This patch fixes this inconsistent
behavior by switching the stub to ip6_dst_lookup_flow, which also calls
xfrm_lookup_route().
This requires some changes in all the callers, as these two functions
take different arguments and have different return types.
Fixes: 5f81bd2e5d ("ipv6: export a stub for IPv6 symbols used by vxlan")
Reported-by: Xiumei Mu <[email protected] >
Signed-off-by: Sabrina Dubroca <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2019-12-18 16:08:42 +01:00
..
ila
netfilter
netfilter: drop bridge nf reset from nf_reset
2019-10-01 18:42:15 +02:00
addrconf.c
Revert "blackhole_netdev: fix syzkaller reported issue"
2019-10-16 13:41:26 -04:00
addrconf_core.c
net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup
2019-12-18 16:08:42 +01:00
addrlabel.c
af_inet6.c
net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup
2019-12-18 16:08:42 +01:00
ah6.c
ipv6: Use ipv6_authlen for len
2019-07-11 14:43:25 -07:00
anycast.c
calipso.c
datagram.c
net: ipv6: add net argument to ip6_dst_lookup_flow
2019-12-18 16:08:40 +01:00
esp6.c
xfrm: remove get_mtu indirection from xfrm_type
2019-07-01 06:16:40 +02:00
esp6_offload.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
2019-07-05 15:01:15 -07:00
exthdrs.c
exthdrs_core.c
ipv6: remove printk
2019-07-27 14:23:48 -07:00
exthdrs_offload.c
fib6_notifier.c
fib6_rules.c
ipv6: do not free rt if FIB_LOOKUP_NOREF is set on suppress rule
2019-09-26 09:34:25 +02:00
fou6.c
icmp.c
ipv6: icmp: allow flowlabel reflection in echo replies
2019-07-01 10:54:51 -07:00
inet6_connection_sock.c
net: ipv6: add net argument to ip6_dst_lookup_flow
2019-12-18 16:08:40 +01:00
inet6_hashtables.c
net: annotate accesses to sk->sk_incoming_cpu
2019-10-30 13:24:25 -07:00
ip6_checksum.c
ip6_fib.c
ipv6: fix a typo in fib6_rule_lookup()
2019-09-20 19:17:57 -07:00
ip6_flowlabel.c
ipv6: fix static key imbalance in fl_create()
2019-07-11 14:43:25 -07:00
ip6_gre.c
erspan: fix the tun_info options_len check for erspan
2019-10-29 17:36:42 -07:00
ip6_icmp.c
ip6_input.c
ipv6: drop incoming packets having a v4mapped source address
2019-10-03 11:40:21 -04:00
ip6_offload.c
ip6_offload.h
ip6_output.c
net: ipv6: add net argument to ip6_dst_lookup_flow
2019-12-18 16:08:40 +01:00
ip6_tunnel.c
ip6_tunnel: fix possible use-after-free on xmit
2019-07-26 14:17:44 -07:00
ip6_udp_tunnel.c
ip6_vti.c
ip6mr.c
ipmr: remove hard code cache_resolve_queue_len limit
2019-09-07 17:49:00 +02:00
ipcomp6.c
xfrm: remove type and offload_type map from xfrm_state_afinfo
2019-06-06 08:34:50 +02:00
ipv6_sockglue.c
net-ipv6: IPV6_TRANSPARENT - check NET_RAW prior to NET_ADMIN
2019-11-21 19:15:20 -08:00
Kconfig
Makefile
mcast.c
mld: fix memory leak in mld_del_delrec()
2019-08-28 14:47:35 -07:00
mcast_snoop.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 343
2019-06-05 17:37:07 +02:00
mip6.c
xfrm: remove type and offload_type map from xfrm_state_afinfo
2019-06-06 08:34:50 +02:00
ndisc.c
net-ipv6-ndisc: add support for RFC7710 RA Captive Portal Identifier
2019-07-22 12:10:54 -07:00
netfilter.c
net: ensure correct skb->tstamp in various fragmenters
2019-10-18 10:02:37 -07:00
output_core.c
ping.c
ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()'
2019-09-12 11:20:33 +01:00
proc.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2019-06-07 11:00:14 -07:00
protocol.c
raw.c
net: ipv6: add net argument to ip6_dst_lookup_flow
2019-12-18 16:08:40 +01:00
reassembly.c
inet: frags: re-introduce skb coalescing for local delivery
2019-08-08 15:55:10 -07:00
route.c
ipv6/route: return if there is no fib_nh_gw_family
2019-11-20 12:17:39 -08:00
seg6.c
seg6_hmac.c
seg6_iptunnel.c
seg6_local.c
seg6: fix skb transport_header after decap_and_validate()
2019-11-16 12:18:32 -08:00
sit.c
sit: use dst_cache in ipip6_tunnel_xmit
2019-07-14 12:15:28 -07:00
syncookies.c
net: ipv6: add net argument to ip6_dst_lookup_flow
2019-12-18 16:08:40 +01:00
sysctl_net_ipv6.c
proc/sysctl: add shared variables for range check
2019-07-18 17:08:07 -07:00
tcp_ipv6.c
net: ipv6: add net argument to ip6_dst_lookup_flow
2019-12-18 16:08:40 +01:00
tcpv6_offload.c
tunnel6.c
udp.c
net: annotate accesses to sk->sk_incoming_cpu
2019-10-30 13:24:25 -07:00
udp_impl.h
udp_offload.c
udplite.c
xfrm6_input.c
xfrm6_output.c
xfrm6_policy.c
xfrm6_protocol.c
xfrm6_state.c
xfrm: remove eth_proto value from xfrm_state_afinfo
2019-06-06 08:34:50 +02:00
xfrm6_tunnel.c