[PATCH 2/4] amdgpu: fix a race in kfd_mem_export_dmabuf()

Alex Deucher alexdeucher at gmail.com
Thu Aug 22 18:02:23 UTC 2024


On Wed, Aug 21, 2024 at 8:29 PM Al Viro <viro at zeniv.linux.org.uk> wrote:
>
> On Wed, Aug 14, 2024 at 06:15:46PM -0400, Felix Kuehling wrote:
> >
> > On 2024-08-12 02:59, Al Viro wrote:
> > > Using drm_gem_prime_handle_to_fd() to set dmabuf up and insert it into
> > > descriptor table, only to have it looked up by file descriptor and
> > > remove it from descriptor table is not just too convoluted - it's
> > > racy; another thread might have modified the descriptor table while
> > > we'd been going through that song and dance.
> > >
> > > Switch kfd_mem_export_dmabuf() to using drm_gem_prime_handle_to_dmabuf()
> > > and leave the descriptor table alone...
> > >
> > > Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
> >
> > This patch is
> >
> > Reviewed-by: Felix Kuehling <felix.kuehling at amd.com>
>
> Umm...  So which tree should that series go through?
>
> I can put it through vfs.git, or send a pull request to drm folks, or...
>
> Preferences?

I'm happy to take these via the amdgpu tree once the other patches get reviewed.

Alex


More information about the amd-gfx mailing list