]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ipv6: Consider sk_bound_dev_if when binding a socket to a v4 mapped address
authorDavid Ahern <dsahern@gmail.com>
Sat, 5 Jan 2019 00:58:15 +0000 (16:58 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit59523da667219ce1ba71e144a90531b7e505c7ba
tree0c6da66884bfc3cd89fb0c5e32383f6c04681ba0
parenta9b955d02d5ee57df6bdd315552d0863687753ad
ipv6: Consider sk_bound_dev_if when binding a socket to a v4 mapped address

BugLink: https://bugs.launchpad.net/bugs/1837477
[ Upstream commit ec90ad334986fa5856d11dd272f7f22fa86c55c4 ]

Similar to c5ee066333eb ("ipv6: Consider sk_bound_dev_if when binding a
socket to an address"), binding a socket to v4 mapped addresses needs to
consider if the socket is bound to a device.

This problem also exists from the beginning of git history.

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/ipv6/af_inet6.c