]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ipv6: addrconf: fix /proc/net/if_inet6
authorEric Dumazet <edumazet@google.com>
Tue, 16 Oct 2012 07:37:27 +0000 (07:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2012 18:41:47 +0000 (14:41 -0400)
commit9f0d3c2781baa1102108e16efbe640dd74564a7c
tree7748c5750e0069ca56d6f98939e91261b00154ed
parent2384d6aa079de7c16c7877220d3cd4c6f4f50767
ipv6: addrconf: fix /proc/net/if_inet6

Commit 1d5783030a1 (ipv6/addrconf: speedup /proc/net/if_inet6 filling)
added bugs hiding some devices from if_inet6 and breaking applications.

"ip -6 addr" could still display all IPv6 addresses, while "ifconfig -a"
couldnt.

One way to reproduce the bug is by starting in a shell :

unshare -n /bin/bash
ifconfig lo up

And in original net namespace, lo device disappeared from if_inet6

Reported-by: Jan Hinnerk Stosch <janhinnerk.stosch@gmail.com>
Tested-by: Jan Hinnerk Stosch <janhinnerk.stosch@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Mihai Maruseac <mihai.maruseac@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c