Re: [PATCH v2] sctp: check assoc before SCTP_ADDR_{MADE_PRIM,ADDED} event

From: David Miller
Date: Thu May 28 2020 - 15:48:26 EST


From: Jonas Falkevik <jonas.falkevik@xxxxxxxxx>
Date: Wed, 27 May 2020 11:56:40 +0200

> Make sure SCTP_ADDR_{MADE_PRIM,ADDED} are sent only for associations
> that have been established.
>
> These events are described in rfc6458#section-6.1
> SCTP_PEER_ADDR_CHANGE:
> This tag indicates that an address that is
> part of an existing association has experienced a change of
> state (e.g., a failure or return to service of the reachability
> of an endpoint via a specific transport address).
>
> Signed-off-by: Jonas Falkevik <jonas.falkevik@xxxxxxxxx>
> ---
> Changes in v2:
> - Check asoc state to be at least established.
> Instead of associd being SCTP_FUTURE_ASSOC.
> - Common check for all peer addr change event

Applied and queued up for -stable, thanks.