Re: [PATCH net] bonding: fix devconf_all NULL dereference when IPv6 is disabled

From: Jakub Kicinski

Date: Mon Jul 20 2026 - 21:18:35 EST


On Tue, 7 Jul 2026 09:06:22 +0800 zhangzl2013@xxxxxxx wrote:
> When booting with the 'ipv6.disable=1' parameter, the devconf_all is
> never initialized because inet6_init() exits before addrconf_init() is
> called which initializes it. bond_send_validate(), however, will still
> call bond_ns_send_all() even ipv6 is indeed disabled. It will lead to
> NULL derefence of net->ipv6.devconf_all in ip6_pol_route().

Applied, thanks.