android_kernel_oneplus_msm8998/net/ipv6
Wei Wang a0271af208 net: ipv6: reset daddr and dport in socket if connect() fails
In __ip6_datagram_connect(), reset socket->socket_v6_daddr and inet->dport if
error occurs.
In udp_v6_early_demux(), check for socket_state to make sure it is in
TCP_ESTABLISHED state.
Together, it makes sure unconnected UDP socket won't be considered as a
valid candidate for early demux.

v3: add TCP_ESTABLISHED state check in udp_v6_early_demux()
v2: fix compilation error

CRs-Fixed: 2057820
Change-Id: Ifa9c2ddfaa5b51d4082b7b1dd8a5d03b3c290705
Fixes: 5425077d73e0 ("net: ipv6: Add early demux handler for UDP unicast")
Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 85cb73ff9b74785a7fc752875d7f0fe17ca3ea7c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[subashab@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2017-07-12 15:09:29 -06:00
..
netfilter
addrconf.c Merge android-4.4@64a73ff (v4.4.76) into msm-4.4 2017-07-10 03:00:34 -07:00
addrconf_core.c
addrlabel.c
af_inet6.c
ah6.c
anycast.c
datagram.c net: ipv6: reset daddr and dport in socket if connect() fails 2017-07-12 15:09:29 -06:00
esp6.c
exthdrs.c
exthdrs_core.c
exthdrs_offload.c
fib6_rules.c ipv6: Do not leak throw route references 2017-07-05 14:37:14 +02:00
icmp.c
ila.c
inet6_connection_sock.c
inet6_hashtables.c
ip6_checksum.c
ip6_fib.c ipv6: Do not leak throw route references 2017-07-05 14:37:14 +02:00
ip6_flowlabel.c
ip6_gre.c
ip6_icmp.c
ip6_input.c
ip6_offload.c Merge branch 'android-4.4@e76c0fa' into branch 'msm-4.4' 2017-06-20 14:55:15 -07:00
ip6_offload.h
ip6_output.c Merge android-4.4@64a73ff (v4.4.76) into msm-4.4 2017-07-10 03:00:34 -07:00
ip6_tunnel.c This is the 4.4.66 stable release 2017-05-03 08:50:11 -07:00
ip6_udp_tunnel.c
ip6_vti.c
ip6mr.c ip6mr: fix notification device destruction 2017-05-02 21:19:54 -07:00
ipcomp6.c
ipv6_sockglue.c
Kconfig
Makefile
mcast.c
mcast_snoop.c
mip6.c
ndisc.c
netfilter.c
output_core.c ipv6: Prevent overrun when parsing v6 header options 2017-06-07 12:05:58 +02:00
ping.c This is the 4.4.72 stable release 2017-06-14 16:33:25 +02:00
proc.c
protocol.c
raw.c This is the 4.4.72 stable release 2017-06-14 16:33:25 +02:00
reassembly.c
route.c Merge remote-tracking branch 'origin/tmp-285c137' into msm-4.4 2017-05-15 05:09:49 -07:00
sit.c
syncookies.c
sysctl_net_ipv6.c
tcp_ipv6.c Merge branch 'android-4.4@77ddb50' (v4.4.74) into 'msm-4.4' 2017-06-28 10:03:23 -07:00
tcpv6_offload.c
tunnel6.c
udp.c net: ipv6: reset daddr and dport in socket if connect() fails 2017-07-12 15:09:29 -06:00
udp_impl.h
udp_offload.c ipv6: Check ip6_find_1stfragopt() return value properly. 2017-06-07 12:05:58 +02:00
udplite.c
xfrm6_input.c
xfrm6_mode_beet.c
xfrm6_mode_ro.c ipv6: xfrm: Handle errors reported by xfrm6_find_1stfragopt() 2017-06-14 13:16:19 +02:00
xfrm6_mode_transport.c ipv6: xfrm: Handle errors reported by xfrm6_find_1stfragopt() 2017-06-14 13:16:19 +02:00
xfrm6_mode_tunnel.c
xfrm6_output.c
xfrm6_policy.c
xfrm6_protocol.c
xfrm6_state.c
xfrm6_tunnel.c