[Bug 262301] [ctl] Cannot "kldunload ctl"

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 02 Mar 2022 16:46:19 UTC

            Bug ID: 262301
           Summary: [ctl] Cannot "kldunload ctl"
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

The ctl module cannot be unloaded if ctld has ever started.  A simple "kldload
ctl; kldunload ctl" works, but after starting ctld with "service ctld
onestart", then the module cannot be unloaded.

somers@fbsd-head /u/h/somers> sudo kldunload ctl
kldunload: can't unload file: Device busy
somers@fbsd-head /u/h/somers [1]> dmesg | tail -n1
kldunload: attempt to unload file that was loaded by the kernel

This problem means that there's no way for ctl to handle SIGKILL except a
reboot.  If you ever send SIGKILL to that process, it will stay in the
process's pending list forever.

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