netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] ipv6: rt6_update_expires() seems racy
@ 2013-02-18 23:55 Eric Dumazet
  2013-02-19 20:28 ` [RFC PATCH] ipv6: Split from and expires field in dst_entry out of union [net-next] Neil Horman
  0 siblings, 1 reply; 18+ messages in thread
From: Eric Dumazet @ 2013-02-18 23:55 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Gao feng, Neil Horman, Jiri Bohac

Some strange crashes happen in rt6_check_expired(), with access
to random addresses.

At first glance, it looks like the RTF_EXPIRES and
stuff added in commit 1716a96101c49186b
(ipv6: fix problem with expired dst cache)
are racy : same dst could be manipulated at the same time
on different cpus.

At some point, our stack believes rt->dst.from contains a dst pointer,
while its really a jiffie value (as rt->dst.expires shares the same area
of memory)

rt6_update_expires() should be fixed, or am I missing something ?

CC Neil because of https://bugzilla.redhat.com/show_bug.cgi?id=892060

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

end of thread, other threads:[~2013-02-20 20:12 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-18 23:55 [RFC] ipv6: rt6_update_expires() seems racy Eric Dumazet
2013-02-19 20:28 ` [RFC PATCH] ipv6: Split from and expires field in dst_entry out of union [net-next] Neil Horman
2013-02-19 21:17   ` Eric Dumazet
2013-02-19 21:49     ` Neil Horman
2013-02-19 21:55       ` Eric Dumazet
2013-02-20  6:33         ` Gao feng
2013-02-20  7:00           ` Eric Dumazet
2013-02-20  9:31             ` Gao feng
2013-02-20 10:02             ` YOSHIFUJI Hideaki
2013-02-20 10:17               ` [PATCH] ipv6: fix race condition regarding dst->expires and dst->from YOSHIFUJI Hideaki
2013-02-20 10:25                 ` YOSHIFUJI Hideaki
2013-02-20 10:29                   ` [PATCH V2] " YOSHIFUJI Hideaki
2013-02-20 16:12                     ` Eric Dumazet
2013-02-20 16:34                       ` Neil Horman
2013-02-20 20:12                     ` David Miller
2013-02-20 10:55   ` [RFC PATCH] ipv6: Split from and expires field in dst_entry out of union [net-next] David Laight
2013-02-20 12:02     ` Neil Horman
2013-02-20 12:08       ` David Laight

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