netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: ipv4: fix circular-list infinite loop
@ 2019-06-27 12:03 Florian Westphal
  2019-06-27 12:03 ` [PATCH net-next 1/2] net: ipv4: fix infinite loop on secondary addr promotion Florian Westphal
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Florian Westphal @ 2019-06-27 12:03 UTC (permalink / raw)
  To: netdev; +Cc: ranro, tariqt

Tariq and Ran reported a regression caused by net-next commit
2638eb8b50cf ("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.

Florian Westphal (2):
      net: ipv4: fix infinite loop on secondary addr promotion
      selftests: rtnetlink: add small test case with 'promote_secondaries' enabled

 net/ipv4/devinet.c                       |    3 ++-
 tools/testing/selftests/net/rtnetlink.sh |   20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-07-01  7:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-27 12:03 [PATCH net-next 0/2] net: ipv4: fix circular-list infinite loop Florian Westphal
2019-06-27 12:03 ` [PATCH net-next 1/2] net: ipv4: fix infinite loop on secondary addr promotion Florian Westphal
2019-06-27 12:03 ` [PATCH net-next 2/2] selftests: rtnetlink: add small test case with 'promote_secondaries' enabled Florian Westphal
2019-06-27 16:54 ` [PATCH net-next 0/2] net: ipv4: fix circular-list infinite loop David Miller
2019-06-30  7:56   ` Tariq Toukan
2019-07-01  6:46     ` Ran Rozenstein
2019-07-01  7:21       ` Tariq Toukan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).