ipv6 preferred lifetime wraparound...
Subsystems (2)
Hello!
I spotted your patch[1] to prevent ipv6 preferred lifetime wraparound. It looks to me like you fixed the preferred lifetime, but did not touch the valid lifetime. According to a debian bugreport[2] it seems both of them like to wrap around. Shouldn't the "valid -= tval;", visible in your patch context, also be conditional similar to your change for "preferred -= tval;" ?
Regards,
Andreas Henriksson
[1]: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a1faa69810b2af562b70b2a71c116c7d03575dd3
[2]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518710
Hi Andreas,
Quoted 8 lines · Andreas Henriksson
Hello!
I spotted your patch[1] to prevent ipv6 preferred lifetime wraparound. It looks to me like you fixed the preferred lifetime, but did not touch the valid lifetime. According to a debian bugreport[2] it seems both of them like to wrap around. Shouldn't the "valid -= tval;", visible in your patch context, also be conditional similar to your change for "preferred -= tval;" ?
the first version of my patch changed the calculation for the valid lifetime, too. However, the address is removed immediately once the valid lifetime reaches zero. In order to see a wraparound here, the kernel would have to be busy with other stuff for more than one second and at the same time your userland process would need to be running to look at this value. This seemes to me to be rather unlikely, so I rather wanted to save some code size. But if others see a risk here, it would certainly make sense to patch this second statement, too.
Quoted 1 line
[2]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518710
Btw, I failed to find a wrapped valid lifetime here, I also did some tests myself and always saw the expired addresses being deleted well before the timer could wrap.
Yours,
Jens