Re: [PATCH v3] sctp: fully initialize the IPv6 address in sctp_v6_to_addr()

From: David Miller
Date: Fri Aug 18 2017 - 19:01:55 EST


From: Alexander Potapenko <glider@xxxxxxxxxx>
Date: Wed, 16 Aug 2017 20:16:40 +0200

> KMSAN reported use of uninitialized sctp_addr->v4.sin_addr.s_addr and
> sctp_addr->v6.sin6_scope_id in sctp_v6_cmp_addr() (see below).
> Make sure all fields of an IPv6 address are initialized, which
> guarantees that the IPv4 fields are also initialized.
...
> Signed-off-by: Alexander Potapenko <glider@xxxxxxxxxx>
> Reviewed-by: Xin Long <lucien.xin@xxxxxxxxx>
> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@xxxxxxxxx>

Applied and queued up for -stable, thanks.