diff options
author | subashab@codeaurora.org <subashab@codeaurora.org> | 2017-04-18 20:39:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-20 22:50:27 +0300 |
commit | 0bd84065b19bca12f07f288c8ea470e2c1b2de7a (patch) | |
tree | 61d18a576598f539be7cb331caa46dabd8caf349 /net/ipv6/xfrm6_mode_transport.c | |
parent | 8ad0921b8a526f64a2bdf7fe17b82dd2db84f152 (diff) | |
download | linux-0bd84065b19bca12f07f288c8ea470e2c1b2de7a.tar.xz |
net: ipv6: Fix UDP early demux lookup with udp_l3mdev_accept=0
David Ahern reported that 5425077d73e0c ("net: ipv6: Add early demux
handler for UDP unicast") breaks udp_l3mdev_accept=0 since early
demux for IPv6 UDP was doing a generic socket lookup which does not
require an exact match. Fix this by making UDPv6 early demux match
connected sockets only.
v1->v2: Take reference to socket after match as suggested by Eric
v2->v3: Add comment before break
Fixes: 5425077d73e0c ("net: ipv6: Add early demux handler for UDP unicast")
Reported-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Cc: Eric Dumazet <edumazet@google.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Tested-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/xfrm6_mode_transport.c')
0 files changed, 0 insertions, 0 deletions