]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-ipv4-fix-circular-list-infinite-loop'
authorDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 16:54:35 +0000 (09:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 16:54:35 +0000 (09:54 -0700)
commite43133d29679c1b34e1c565ece6264ec202f3fe2
tree485cac7117ac0bb3dd6713baaedaa37f5d7a7094
parent5286d4f7bf57b82a2f0e55fb22c5737bd9732221
parentcd6fd5f1eb0eb181601bdfcd75e4ad9c81fcedfc
Merge branch 'net-ipv4-fix-circular-list-infinite-loop'

Florian Westphal says:

====================
net: ipv4: fix circular-list infinite loop

Tariq and Ran reported a regression caused by net-next commit
a062ebaf8b1c ("net: ipv4: provide __rcu annotation for ifa_list").

This happens when net.ipv4.conf.$dev.promote_secondaries sysctl is
enabled -- we can arrange for ifa->next to point at ifa, so next
process that tries to walk the list loops forever.

Fix this and extend rtnetlink.sh with a small test case for this.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>