[DragonFlyBSD - Bug #3428] (New) drm: dma-buf reference imbalance freezes VA/EGL cleanup
sigttou
bugtracker-admin at leaf.dragonflybsd.org
Thu Oct 1 01:41:17 PDT 2026
Issue #3428 has been reported by sigttou.
----------------------------------------
Bug #3428: drm: dma-buf reference imbalance freezes VA/EGL cleanup
http://bugs.dragonflybsd.org/issues/3428
* Author: sigttou
* Status: New
* Priority: Normal
* Category: Driver
* Target version: 6.6
* Start date: 2026-10-01
----------------------------------------
dma_buf_get() returns without retaining a file reference, but PRIME import
later drops one. Repeated imports can release the buffer prematurely.
dma_buf_fd() also leaves an extra reference after installing the descriptor.
Retain the caller's reference in dma_buf_get(). Consume the transferred
reference after successful descriptor installation in dma_buf_fd().
FreeBSD uses the same ownership rules: retain the lookup reference and drop
the extra reference after descriptor installation.
https://github.com/freebsd/drm-kmod/blob/f252a30f27d157d9c763cd408850775096a6263f/drivers/dma-buf/dma-buf.c
---Files--------------------------------
0001-balance-dma-buf-file-references.patch (1.62 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