]> git.baikalelectronics.ru Git - 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)
commitd0e883e5c2c6601cc58ed379492ef43dc3702e06
tree7748c5750e0069ca56d6f98939e91261b00154ed
parent0d0d23e331c474223bee8744701c9d00a60acf42
ipv6: addrconf: fix /proc/net/if_inet6

Commit 266f5cb6cee (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