Bug 496751 - Handle more (generic) DMA_BUF and DRM_IOCTLs for --track-fds=yes
Summary: Handle more (generic) DMA_BUF and DRM_IOCTLs for --track-fds=yes
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.24 GIT
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-27 13:09 UTC by Mark Wielaard
Modified: 2024-11-27 13:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2024-11-27 13:09:31 UTC
There are more than 100 DRM_IOCTLs, or more than 400 when including all the driver specific variants.

We are supporting most generic DRM_IOCTLs that create new file descriptors for --track-fds=yes.
See https://bugs.kde.org/show_bug.cgi?id=492422
But checking usage of (existing) fds is not generally done.

What is missing is at least support for:

DMA_BUF_IOCTL_EXPORT_SYNC_FILE
DMA_BUF_IOCTL_IMPORT_SYNC_FILE

DRM_IOCTL_PRIME_FD_TO_HANDLE
DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE
DRM_IOCTL_SYNCOBJ_EVENTFD