[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190116.133849.1334161442048173947.davem@davemloft.net>
Date: Wed, 16 Jan 2019 13:38:49 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: lucien.xin@...il.com
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
linux-sctp@...r.kernel.org, marcelo.leitner@...il.com,
nhorman@...driver.com, glider@...gle.com
Subject: Re: [PATCH net] sctp: allocate sctp_sockaddr_entry with kzalloc
From: Xin Long <lucien.xin@...il.com>
Date: Mon, 14 Jan 2019 18:34:02 +0800
> The similar issue as fixed in Commit 4a2eb0c37b47 ("sctp: initialize
> sin6_flowinfo for ipv6 addrs in sctp_inet6addr_event") also exists
> in sctp_inetaddr_event, as Alexander noticed.
>
> To fix it, allocate sctp_sockaddr_entry with kzalloc for both sctp
> ipv4 and ipv6 addresses, as does in sctp_v4/6_copy_addrlist().
>
> Reported-by: Alexander Potapenko <glider@...gle.com>
> Signed-off-by: Xin Long <lucien.xin@...il.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists