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

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


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at