diff options
author | Florian Westphal <fw@strlen.de> | 2019-06-27 15:03:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-27 19:54:34 +0300 |
commit | 6a9e9cea4c51dd7137f381710bb42e2ad6e7e285 (patch) | |
tree | 57b256e5356e97686e4c57fad2236b0f947c187e /net/ipv4/esp4_offload.c | |
parent | 5b9469a285ebc85af29736a6d9fa995aea0dbf0b (diff) | |
download | linux-6a9e9cea4c51dd7137f381710bb42e2ad6e7e285.tar.xz |
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: 2638eb8b50cf ("net: ipv4: provide __rcu annotation for ifa_list")
Reported-by: Ran Rozenstein <ranro@mellanox.com>
Reported-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/esp4_offload.c')
0 files changed, 0 insertions, 0 deletions