* [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch
@ 2015-10-15 21:08 bugzilla-daemon
2015-10-15 21:11 ` bugzilla-daemon
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bugzilla-daemon @ 2015-10-15 21:08 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1910 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=92480
Bug ID: 92480
Summary: [Patch] Linux mutex leak in drm_dp_get_mst_branch
Product: DRI
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: General
Assignee: dri-devel@lists.freedesktop.org
Reporter: adam_richter2004@yahoo.com
I believe I have found a mutex leak in drm_dp_get_mst_branch_device() in
linux/drivers/gpu/drm/drm_dp_mst_topology.c in kernels 4.2-rc1 through the
current version, 4.3-rc5, where the function can take an error exit without
doing mutex_unlock(&mgr_lock). I have attached a proposed patch.
Unfortunately, since I made the patch, I have not been able to trigger the
error branch that the patch fixes, but I did find the bug by observing that
error branch executing and printing an error message that I believe is unique
to that branch ("*ERROR* failed to lookup MSTB"):
[ 36.944273] [drm:gen8_irq_handler [i915]] *ERROR* The master control
interrupt lied (SDE)!
[ 74.576811] [drm:drm_dp_get_mst_branch_device [drm_kms_helper]] *ERROR*
failed to lookup MSTB with lct 2, rad 10
[ 74.587704] BUG: workqueue leaked lock or atomic: kworker/u8:0/0x00000000/6
[ 74.587704] last function: i915_digport_work_func [i915]
[ 74.655752] [drm:gen8_irq_handler [i915]] *ERROR* The master control
interrupt lied (SDE)!
I think this patch is also arguably an infinitesimal improvement in that it
depends less on the optimizer, by reducing two references to port->mstb to one.
Anyhow, if the patch looks good, I would be delighted to if the appropriate
person (Dave?) would integrate it for submission upstream.
Thanks in advance for any feedback on this.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3156 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread* [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch
2015-10-15 21:08 [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch bugzilla-daemon
@ 2015-10-15 21:11 ` bugzilla-daemon
2015-10-16 9:43 ` bugzilla-daemon
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2015-10-15 21:11 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 422 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=92480
--- Comment #1 from Adam J. Richter <adam_richter2004@yahoo.com> ---
Created attachment 118904
--> https://bugs.freedesktop.org/attachment.cgi?id=118904&action=edit
Patch to fix mutex leak on error return of drm_dp_get_mst_branch_device in
linux-4.3-rc5/drivers/gpu/drm/drm_dp_mst_topology.c
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1627 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread* [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch
2015-10-15 21:08 [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch bugzilla-daemon
2015-10-15 21:11 ` bugzilla-daemon
@ 2015-10-16 9:43 ` bugzilla-daemon
2015-10-28 12:58 ` bugzilla-daemon
2015-10-28 12:58 ` bugzilla-daemon
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2015-10-16 9:43 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=92480
--- Comment #2 from Jani Nikula <jani.nikula@intel.com> ---
Please send your (In reply to Adam J. Richter from comment #0)
> Anyhow, if the patch looks good, I would be delighted to if the appropriate
> person (Dave?) would integrate it for submission upstream.
Good catch!
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Please send the patch in proper patch format with your Signed-off-by to
dri-devel@lists.freedesktop.org mailing list. See
Documentation/SubmittingPatches for help.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1575 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch
2015-10-15 21:08 [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch bugzilla-daemon
2015-10-15 21:11 ` bugzilla-daemon
2015-10-16 9:43 ` bugzilla-daemon
@ 2015-10-28 12:58 ` bugzilla-daemon
2015-10-28 12:58 ` bugzilla-daemon
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2015-10-28 12:58 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 670 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=92480
Jani Nikula <jani.nikula@intel.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Jani Nikula <jani.nikula@intel.com> ---
commit 6749c9f023d49adca3ca4773e93282b95ceebfb5
Author: Adam Richter <adamrichter4@gmail.com>
Date: Fri Oct 16 03:33:02 2015 -0700
drm: fix mutex leak in drm_dp_get_mst_branch_device
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2193 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread* [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch
2015-10-15 21:08 [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch bugzilla-daemon
` (2 preceding siblings ...)
2015-10-28 12:58 ` bugzilla-daemon
@ 2015-10-28 12:58 ` bugzilla-daemon
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2015-10-28 12:58 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 409 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=92480
--- Comment #4 from Jani Nikula <jani.nikula@intel.com> ---
also cherry-picked to v4.3 as
commit 30730c7f5943b3beace1e29f7f1476e05de3da14
Author: Adam Richter <adamrichter4@gmail.com>
Date: Fri Oct 16 03:33:02 2015 -0700
drm: fix mutex leak in drm_dp_get_mst_branch_device
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1285 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-10-28 12:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 21:08 [Bug 92480] [Patch] Linux mutex leak in drm_dp_get_mst_branch bugzilla-daemon
2015-10-15 21:11 ` bugzilla-daemon
2015-10-16 9:43 ` bugzilla-daemon
2015-10-28 12:58 ` bugzilla-daemon
2015-10-28 12:58 ` bugzilla-daemon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.