ipv4: fix a race in update_or_create_fnhe()
authorEric Dumazet <edumazet@google.com>
Thu, 4 Sep 2014 05:21:56 +0000 (22:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 00:15:50 +0000 (17:15 -0700)
nh_exceptions is effectively used under rcu, but lacks proper
barriers. Between kzalloc() and setting of nh->nh_exceptions(),
we need a proper memory barrier.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 4895c771c7f00 ("ipv4: Add FIB nexthop exceptions.")
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found