Re: [PATCH net] sctp: allocate sctp_sockaddr_entry with kzalloc

2019-01-16 Thread David Miller
From: Xin Long 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 kzallo

Re: [PATCH net] sctp: allocate sctp_sockaddr_entry with kzalloc

2019-01-14 Thread Neil Horman
On Mon, Jan 14, 2019 at 06:34:02PM +0800, Xin Long wrote: > 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 kza

Re: [PATCH net] sctp: allocate sctp_sockaddr_entry with kzalloc

2019-01-14 Thread Marcelo Ricardo Leitner
On Mon, Jan 14, 2019 at 06:34:02PM +0800, Xin Long wrote: > 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 kza

[PATCH net] sctp: allocate sctp_sockaddr_entry with kzalloc

2019-01-14 Thread Xin Long
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_cop