netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* race in net/ipv4/ipip.c ?
@ 2005-01-12 12:23 Lennert Buytenhek
  2005-01-12 12:53 ` Thomas Graf
  0 siblings, 1 reply; 9+ messages in thread
From: Lennert Buytenhek @ 2005-01-12 12:23 UTC (permalink / raw)
  To: netdev

Hi!

	static void ipip_tunnel_link(struct ipip_tunnel *t)
	{
		struct ipip_tunnel **tp = ipip_bucket(t);

		t->next = *tp;
		write_lock_bh(&ipip_lock);
		*tp = t;
		write_unlock_bh(&ipip_lock);
	}

Shouldn't the "t->next = *tp" be done inside the write lock?

A similar race exists in ipip_tunnel_unlink, and ip_gre seems to have
the same issues.


cheers,
Lennert

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

end of thread, other threads:[~2005-01-14  5:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-12 12:23 race in net/ipv4/ipip.c ? Lennert Buytenhek
2005-01-12 12:53 ` Thomas Graf
2005-01-12 13:08   ` YOSHIFUJI Hideaki / 吉藤英明
2005-01-12 13:21     ` Thomas Graf
2005-01-12 13:36       ` YOSHIFUJI Hideaki / 吉藤英明
2005-01-14  4:54         ` David S. Miller
2005-01-14  5:10           ` YOSHIFUJI Hideaki / 吉藤英明
2005-01-12 19:02       ` David S. Miller
2005-01-12 13:09   ` Lennert Buytenhek

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).