All of lore.kernel.org
 help / color / mirror / Atom feed
* Bug in ipv6_ifa_notify?
@ 2004-11-08  6:15 Herbert Xu
  2004-11-08  7:34 ` Herbert Xu
  2004-11-08 13:30 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 2 replies; 9+ messages in thread
From: Herbert Xu @ 2004-11-08  6:15 UTC (permalink / raw)
  To: David S. Miller, Arnaldo Carvalho de Melo, YOSHIFUJI Hideaki, netdev

Hi:

I'm reviewing the changes between 2.6.8.1 and 2.6.9.  The following
change caught my eye:

# ChangeSet
#   2004/08/17 11:25:16+09:00 yoshfuji@linux-ipv6.org
#   [IPV6] refer inet6 device via corresponding local route from address structure.

In particular, it changed the handling of RTM_NEWADDR in ipv6_ifa_notify.
Previously if you received duplicate RTM_NEWADDR notifications
ip6_rt_addr_add would allocate a new rt and then free it since
ip6_ins_rt would fail.

With the new code, it will call ip6_ins_rt on the *same* rt
again which will cause it to be dst_free'd.  I don't see any
way for this to lead to dst underflows yet, but it'll certainly
corrupt the routing table since dst_free modifies rt->u.next.

Now the question is is it possible to get dupliate RTM_NEWADDR
notifications?

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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

end of thread, other threads:[~2004-11-09 21:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-08  6:15 Bug in ipv6_ifa_notify? Herbert Xu
2004-11-08  7:34 ` Herbert Xu
2004-11-08 12:10   ` Herbert Xu
2004-11-08 20:37     ` Herbert Xu
2004-11-09 11:48       ` Herbert Xu
2004-11-09 14:57         ` YOSHIFUJI Hideaki / 吉藤英明
2004-11-09 20:35           ` Herbert Xu
2004-11-09 21:04             ` YOSHIFUJI Hideaki / 吉藤英明
2004-11-08 13:30 ` YOSHIFUJI Hideaki / 吉藤英明

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.