netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ipv6 preferred lifetime wraparound...
@ 2009-07-02 19:23 Andreas Henriksson
  2009-07-06 12:27 ` Jens Rosenboom
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Henriksson @ 2009-07-02 19:23 UTC (permalink / raw)
  To: Jens Rosenboom; +Cc: netdev

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ipv6 preferred lifetime wraparound...
  2009-07-02 19:23 ipv6 preferred lifetime wraparound Andreas Henriksson
@ 2009-07-06 12:27 ` Jens Rosenboom
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Rosenboom @ 2009-07-06 12:27 UTC (permalink / raw)
  To: Andreas Henriksson; +Cc: netdev

Hi Andreas,

On Thu, Jul 02, 2009 at 09:23:43PM +0200, Andreas Henriksson wrote:
> 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.

> [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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-06 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-02 19:23 ipv6 preferred lifetime wraparound Andreas Henriksson
2009-07-06 12:27 ` Jens Rosenboom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).