Stephen Hemminger <[email protected]> writes:

> On Thu, 09 Dec 2010 10:28:10 -0500
> Brian Haley <[email protected]> wrote:
>
>> On 12/08/2010 11:16 PM, Eric W. Biederman wrote:

>>              /* If just doing link down, and address is permanent
>>                 and not link-local, then retain it. */
>>              if (!how &&
>>                  (ifa->flags&IFA_F_PERMANENT) &&
>>                  !(ipv6_addr_type(&ifa->addr) & IPV6_ADDR_LINKLOCAL)) {
>>                      list_move_tail(&ifa->if_list, &keep_list);
>> 
>>                      /* If not doing DAD on this address, just keep it. */
>>                      if ((dev->flags&(IFF_NOARP|IFF_LOOPBACK)) ||
>>                          idev->cnf.accept_dad <= 0 ||
>>                          (ifa->flags & IFA_F_NODAD))
>
> I think the problem is on coming back up, not on the down step.

Oh it is.  All addresses that you keep break if you down the loopback
interface, no matter which interface those addresses are on.

Stephen the cause of the regression in 2.6.34-rc1 that you introduced
that breaks the disable_ipv6 functionality in practice is removing
the loopback address from the loopback interface.  So I sent
a partial revert.

It is safe to do a partial revert because the loopback address is always
reprogrammed when we bring the interface back up.  But that
reprogramming only works if it doesn't error out with -EEXIST.

So by all means properly fix the ancient bug that breaks usage of all
local ipv6 addresses when the loopback interface is brought down,
and we can remove the regression fix.

However complaining about a partial revert to fix a regression you
introduced because it fixes a problem deep within the ipv6 networking
stack that the smallest modicum of testing would have revealed on your
part before you broke things seems inappropriate.

Please let's get the disable_ipv6 functionality working again (where 
in practice we don't care about preserving addresses).  Then let's
take our time and tack and fix whatever this is properly.

Eric

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to