OSDN Git Service

ipv6: Fix PMTU updates for UDP/raw sockets in presence of VRF
authorDavid Ahern <dsahern@gmail.com>
Sun, 18 Nov 2018 18:45:30 +0000 (10:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 15:07:57 +0000 (16:07 +0100)
commitc37215a94f5ee89ec10575ea28ec20f1e89f3015
tree2ceabf23788a6c8aef1705c304b912f488899641
parent51d258e4c75bbaf1a190564ea70997a8a33570f0
ipv6: Fix PMTU updates for UDP/raw sockets in presence of VRF

[ Upstream commit 7ddacfa564870cdd97275fd87decb6174abc6380 ]

Preethi reported that PMTU discovery for UDP/raw applications is not
working in the presence of VRF when the socket is not bound to a device.
The problem is that ip6_sk_update_pmtu does not consider the L3 domain
of the skb device if the socket is not bound. Update the function to
set oif to the L3 master device if relevant.

Fixes: ca254490c8df ("net: Add VRF support to IPv6 stack")
Reported-by: Preethi Ramachandra <preethir@juniper.net>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/route.c