[Bug 282168] vtnet(4): panic in if_attach_internal() when kldloading

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 18 Oct 2024 13:25:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282168

--- Comment #6 from Mark Johnston <markj@FreeBSD.org> ---
This is due to a VNET bug.  When a network driver attaches, it needs to have
the current VNET set, e.g., because if_attach_internal()->if_addgroup()
accesses the VNET-global variable V_ifg_head.  Normally this happens in
device_probe_and_attach(), which is how drivers get attached if they're
compiled into the kernel, but we're taking a different path here.

I posted a patch here which fixes the problem for me:
https://reviews.freebsd.org/D47174

-- 
You are receiving this mail because:
You are the assignee for the bug.