Files
android_kernel_xiaomi_sm8450/net/ipv6
David Ahern 8c43bd1706 net/tcp: Fix socket lookups with SO_BINDTODEVICE
Similar to 69678bcd4d ("udp: fix SO_BINDTODEVICE"), TCP socket lookups
need to fail if dev_match is not true. Currently, a packet to a given port
can match a socket bound to device when it should not. In the VRF case,
this causes the lookup to hit a VRF socket and not a global socket
resulting in a response trying to go through the VRF when it should not.

Fixes: 3fa6f616a7 ("net: ipv4: add second dif to inet socket lookups")
Fixes: 4297a0ef08 ("net: ipv6: add second dif to inet6 socket lookups")
Reported-by: Lou Berger <lberger@labn.net>
Diagnosed-by: Renato Westphal <renato@opensourcerouting.org>
Tested-by: Renato Westphal <renato@opensourcerouting.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-06-20 08:03:06 +09:00
..
2018-03-27 13:18:09 -04:00
2018-05-11 00:10:56 +02:00
2017-05-21 13:42:36 -04:00
2018-06-12 16:19:22 -07:00
2018-04-26 15:07:42 -04:00
2018-02-28 11:43:28 -05:00
2018-05-24 11:57:35 +02:00
2016-12-25 17:21:23 +01:00
2018-05-16 07:24:30 +02:00
2018-05-16 07:24:30 +02:00
2017-09-01 18:35:23 -07:00
2015-11-03 10:52:13 -05:00