[Bug 200382] Loading netgraph via bsnmpd, etc can cause domain to be registered after domain_finalize has been called

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 22 04:17:19 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200382

            Bug ID: 200382
           Summary: Loading netgraph via bsnmpd, etc can cause domain to
                    be registered after domain_finalize has been called
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ngie at FreeBSD.org

We have a bug open at $work where we loaded netgraph modules after boot and it
consistently prints out the warning shown here:
https://svnweb.freebsd.org/base/head/sys/kern/uipc_domain.c?annotate=275329#l236

230 #ifdef notyet
231         KASSERT(domain_init_status < 2,
232             ("attempt to domain_add(%s) after domainfinalize()",
233             dp->dom_name));
234 #else
235         if (domain_init_status >= 2)
236                 printf("WARNING: attempt to domain_add(%s) after "
237                     "domainfinalize()\n", dp->dom_name);
238 #endif

This may or may not have been made worse with the commit done in r195837 to
make the domains register more lazily, depending on whether or not the VNET was
initialized.

This should repro the issue seen here:

- Build/install bsnmpd with WITH_NETGRAPH=yes (I think this is the default).
- Disable bsnmpd.
- Build netgraph as modules; don't load them at boot.
- Start bsnmpd after boot with forcestart.

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


More information about the freebsd-bugs mailing list