Re: [PATCH] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

From: Roman Gushchin
Date: Tue May 21 2013 - 11:51:50 EST


On 21.05.2013 19:38, Eric Dumazet wrote:
On Tue, 2013-05-21 at 18:47 +0400, Roman Gushchin wrote:

This code has the same mistake: it is rcu_dereference_raw(head->first),
so there is nothing that prevents gcc to store the (head->first) value
in a register.

If other rcu accessors have the same problem, a more complete patch is
needed.

Ok, I'll try to provide a complete patch ASAP.


Thanks




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/