Message ID | 20090822014523.3ec2f591@neptune.home |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Bruno Prémont <bonbons@linux-vserver.org> Date: Sat, 22 Aug 2009 01:45:23 +0200 > Commit 63d9950b08184e6531adceb65f64b429909cc101 > (ipv6: Make v4-mapped bindings consistent with IPv4) > changes behavior of inet6_bind() for v4-mapped addresses so it should > behave the same way as inet_bind(). > > During this change setting of err to -EADDRNOTAVAIL got lost: ... > Signed-off-by Bruno Prémont <bonbons@linux-vserver.org> Thanks for finding and fixing this bug, applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Sun, 23 August 2009 David Miller <davem@davemloft.net> wrote: > From: Bruno Prémont <bonbons@linux-vserver.org> > Date: Sat, 22 Aug 2009 01:45:23 +0200 > > > Commit 63d9950b08184e6531adceb65f64b429909cc101 > > (ipv6: Make v4-mapped bindings consistent with IPv4) > > changes behavior of inet6_bind() for v4-mapped addresses so it > > should behave the same way as inet_bind(). > > > > During this change setting of err to -EADDRNOTAVAIL got lost: > ... > > Signed-off-by Bruno Prémont <bonbons@linux-vserver.org> > > Thanks for finding and fixing this bug, applied, thanks! Please consider queueing this for 2.6.30.x stable, upstream commit is ca6982b858e1d08010c1d29d8e8255b2ac2ad70a Bruno -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Aug 25, 2009 at 10:20:42PM +0200, Bruno Prémont wrote: > On Sun, 23 August 2009 David Miller <davem@davemloft.net> wrote: > > From: Bruno Prémont <bonbons@linux-vserver.org> > > Date: Sat, 22 Aug 2009 01:45:23 +0200 > > > > > Commit 63d9950b08184e6531adceb65f64b429909cc101 > > > (ipv6: Make v4-mapped bindings consistent with IPv4) > > > changes behavior of inet6_bind() for v4-mapped addresses so it > > > should behave the same way as inet_bind(). > > > > > > During this change setting of err to -EADDRNOTAVAIL got lost: > > ... > > > Signed-off-by Bruno Prémont <bonbons@linux-vserver.org> > > > > Thanks for finding and fixing this bug, applied, thanks! > > Please consider queueing this for 2.6.30.x stable, upstream commit is > ca6982b858e1d08010c1d29d8e8255b2ac2ad70a Now queued up. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index caa0278..45f9a2a 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -306,8 +306,10 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) v4addr != htonl(INADDR_ANY) && chk_addr_ret != RTN_LOCAL && chk_addr_ret != RTN_MULTICAST && - chk_addr_ret != RTN_BROADCAST) + chk_addr_ret != RTN_BROADCAST) { + err = -EADDRNOTAVAIL; goto out; + } } else { if (addr_type != IPV6_ADDR_ANY) { struct net_device *dev = NULL;