Skip to content
Commit 6a9e9cea authored by Florian Westphal's avatar Florian Westphal Committed by David S. Miller
Browse files

net: ipv4: fix infinite loop on secondary addr promotion



secondary address promotion causes infinite loop -- it arranges
for ifa->ifa_next to point back to itself.

Problem is that 'prev_prom' and 'last_prim' might point at the same entry,
so 'last_sec' pointer must be obtained after prev_prom->next update.

Fixes: 2638eb8b ("net: ipv4: provide __rcu annotation for ifa_list")
Reported-by: default avatarRan Rozenstein <ranro@mellanox.com>
Reported-by: default avatarTariq Toukan <tariqt@mellanox.com>
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5b9469a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment