summaryrefslogtreecommitdiff
path: root/net/tipc/netlink_compat.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2019-01-14 13:34:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-23 10:09:50 +0300
commit81b2fee6eb16e0f942dc921a1e1382d7c31a6722 (patch)
tree83192001dbb29a7da6790ffb1b1e1b705dc2e08d /net/tipc/netlink_compat.c
parent0fb89795bbaea0a2c69549b78249eeecd28c721e (diff)
downloadlinux-81b2fee6eb16e0f942dc921a1e1382d7c31a6722.tar.xz
sctp: allocate sctp_sockaddr_entry with kzalloc
commit 400b8b9a2a17918f8ce00786f596f530e7f30d50 upstream. 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@google.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Reported-by: syzbot+ae0c70c0c2d40c51bb92@syzkaller.appspotmail.com Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc/netlink_compat.c')
0 files changed, 0 insertions, 0 deletions