aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2013-05-29 09:06:27 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-27 10:34:33 -0700
commit64274c35beebe1be22650a9353c0c33a7b8b723c (patch)
treec57037c60b3d0416246c9d4a31477c41b3b6a7ce /net
parente1b796f9408a33d18709e9fdbf18ce91dfede962 (diff)
downloadkernel_samsung_smdk4412-64274c35beebe1be22650a9353c0c33a7b8b723c.zip
kernel_samsung_smdk4412-64274c35beebe1be22650a9353c0c33a7b8b723c.tar.gz
kernel_samsung_smdk4412-64274c35beebe1be22650a9353c0c33a7b8b723c.tar.bz2
net: force a reload of first item in hlist_nulls_for_each_entry_rcu
[ Upstream commit c87a124a5d5e8cf8e21c4363c3372bcaf53ea190 ] Roman Gushchin discovered that udp4_lib_lookup2() was not reloading first item in the rcu protected list, in case the loop was restarted. This produced soft lockups as in https://lkml.org/lkml/2013/4/16/37 rcu_dereference(X)/ACCESS_ONCE(X) seem to not work as intended if X is ptr->field : In some cases, gcc caches the value or ptr->field in a register. Use a barrier() to disallow such caching, as documented in Documentation/atomic_ops.txt line 114 Thanks a lot to Roman for providing analysis and numerous patches. Diagnosed-by: Roman Gushchin <klamm@yandex-team.ru> Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Boris Zhmurov <zhmurov@yandex-team.ru> Signed-off-by: Roman Gushchin <klamm@yandex-team.ru> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions