From: Cong Wang <xiyou.wangc...@gmail.com>
Date: Tue, 18 Dec 2018 21:17:44 -0800

> syzbot reported the use of uninitialized udp6_addr::sin6_scope_id.
> We can just set ::sin6_scope_id to zero, as tunnels are unlikely
> to use an IPv6 address that needs a scope id and there is no
> interface to bind in this context.
> 
> For net-next, it looks different as we have cfg->bind_ifindex there
> so we can probably call ipv6_iface_scope_id().
> 
> Same for ::sin6_flowinfo, tunnels don't use it.
> 
> Fixes: 8024e02879dd ("udp: Add udp_sock_create for UDP tunnels to open 
> listener socket")
> Reported-by: syzbot+c56449ed3652e6720...@syzkaller.appspotmail.com
> Cc: Jon Maloy <jon.ma...@ericsson.com>
> Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com>

Applied, thanks Cong.

Reply via email to