Re: [PATCH net 1/3] bpf: bpf_out_neigh_v4: Fix nd_tbl NULL dereference when IPv6 is disabled
From: Fernando Fernandez Mancera
Date: Wed Mar 04 2026 - 11:31:01 EST
On 3/4/26 4:49 PM, David Ahern wrote:
On 3/3/26 9:49 PM, Daniel Borkmann wrote:
Maybe the "fix" could be to just switch IPV6 from tristate to bool in
the Kconfig, and then once net merges into net-next we could deconstruct
all the helper cruft which makes the late on-demand module loading of
IPv6 work.
+1
Maybe I am missing something here, but I believe this won't solve the problem. Even if ipv6 is built-in, it should be possible to pass ipv6.disable=1 during boot and therefore nd_tbl would still be uninitialized, not NULL tho.
Thanks,
Fernando.