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

From: Eric Dumazet
Date: Tue May 21 2013 - 11:38:34 EST


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.

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/