ip: SVR fix race condition 63/34763/3
authorKlement Sekera <ksekera@cisco.com>
Fri, 17 Dec 2021 12:47:51 +0000 (12:47 +0000)
committerOle Tr�an <otroan@employees.org>
Mon, 20 Dec 2021 10:05:20 +0000 (10:05 +0000)
commit4ab6ad136b62add35598f3c354231701b7c14c65
tree5cff25e84550e4b7855774e7213efd61bfe7a5cc
parente3241f04410fa45099f958f77636b80293904fc3
ip: SVR fix race condition

There could be a race condition where two fragments of one chain end up
at the same time on different workers, one overwriting others hash
entry. Add a check for that and restart processing on the unlucky worker
who ends up being second from hash table POV. This will then result in a
proper handover to worker now owning this reassembly.

Type: fix
Fixes: de34c35fc73226943538149fae9dbc5cfbdc6e75
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I9eb29c5cb1ffe3b5eb1d5a638e17ab7ba2628d28
src/vnet/ip/reass/ip4_sv_reass.c
src/vnet/ip/reass/ip6_sv_reass.c