Skip to contentSkip to conversation

New: DRM dead lock code path

Bug 117861 [email protected] 1 participant 4 messages May 9, 2016 – Jul 8, 2016

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=117861

            Bug ID: 117861
           Summary: DRM dead lock code path
           Product: Drivers
           Version: 2.5
    Kernel Version: master 4.4/4.5/4.6
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

dead lock code path exist for DRM
drivers/gpu/drm/{drm_prime.c,drm_gem.c}

drm_gem_prime_fd_to_handle()

| mutex_lock(&file_priv->prime.lock);
| drm_prime_add_buf_handle() goto fail
| drm_gem_handle_delete()
| | drm_gem_object_release_handle()
| | | drm_gem_remove_prime_handles()
| | | | mutex_lock(&filp->prime.lock)
| mutex_unlock(&file_priv->prime.lock)
Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 117861] DRM dead lock code path

https://bugzilla.kernel.org/show_bug.cgi?id=117861

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Alex Deucher <[email protected]> --- I believe this is fixed in:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6984128d01cf935820a0563f3a00c6623ba58109
Which should probably go to stable.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 117861] DRM dead lock code path

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=117861

--- Comment #2 from Qiang Yu <[email protected]> --- (In reply to Alex Deucher from comment #1)

Quoted 4 lines

I believe this is fixed in:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/
?id=6984128d01cf935820a0563f3a00c6623ba58109
Which should probably go to stable.

Your fix is in 4.5 kernel and related to another dead lock path:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579610

This dead lock path is different and remains in the kernel master branch.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author Reviewed-by Alex Deucher
#3 lore raw

[Bug 117861] DRM dead lock code path

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=117861

--- Comment #3 from Alex Deucher <[email protected]> --- fixed in:
https://cgit.freedesktop.org/~airlied/linux/commit/?h=drm-next&id=bd6e2732f0e2894ce792f344c41fc32591436fe3

drm/prime: fix error path deadlock fail
There were a couple messed up things about this fail path.
(1) it would drop object_name_lock twice
(2) drm_gem_handle_delete() (in drm_gem_remove_prime_handles()) needs to grab prime_lock

Link:
http://patchwork.freedesktop.org/patch/msgid/[email protected]

Which should go upstream in the next merge window.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel