Re: [Patch net] ipv6: explicitly initialize udp6_addr in udp_sock_create6()

2018-12-19 Thread David Miller
From: Cong Wang 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. > > Fo

[Patch net] ipv6: explicitly initialize udp6_addr in udp_sock_create6()

2018-12-18 Thread Cong Wang
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