Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 May 2015 04:17:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 200382] Loading netgraph via bsnmpd, etc can cause domain to be registered after domain_finalize has been called
Message-ID:  <bug-200382-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: ngie@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200382-8>