[DragonFlyBSD - Bug #3443] (Resolved) drm: reject unload while core teardown is incomplete

liweitianux bugtracker-admin at leaf.dragonflybsd.org
Mon Oct 5 04:12:51 PDT 2026


Issue #3443 has been updated by liweitianux.

Status changed from New to Resolved

Patch merged. Thank you.

----------------------------------------
Bug #3443: drm: reject unload while core teardown is incomplete
http://bugs.dragonflybsd.org/issues/3443#change-14781

* Author: sigttou
* Status: Resolved
* Priority: Normal
* Category: Driver
* Target version: 6.6
* Start date: 2026-10-05
----------------------------------------
Unloading drm.ko reaches ttm_exit(), which waits for device_released.
The callback which sets that flag is compiled out and device unregister
is a stub, so kldunload sleeps indefinitely while holding the linker
lock. The module event handler has already cleared the Linux task and
process cleanup callbacks by then.

DRM also retains worker threads and undrained RCU callouts, so removing
the TTM wait alone would not make unloading safe. Return EBUSY from
MOD_UNLOAD before changing callbacks or entering SYSUNINIT. Keep the
module usable until complete teardown is implemented.

---Files--------------------------------
0001-drm-reject-unload-while-core-teardown-is-incomplete.patch (1.39 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list