Bug 1376606

Summary: [abrt] [ INFO: possible recursive locking detected ]
Product: [Fedora] Fedora Reporter: depelover
Component: xorg-x11-drv-intelAssignee: Adam Jackson <ajax>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: ajax, kernel-maint, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/afafec5d40492178edbf22f9c9b31ac26bdb5349
Whiteboard: abrt_hash:870adee8acc99781424d79570f19d67d1794a0b8;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 17:23:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: dmesg none

Description depelover 2016-09-15 22:28:02 UTC
Additional info:
reporter:       libreport-2.7.2
[ INFO: possible recursive locking detected ]
4.7.3-200.fc24.x86_64+debug #1 Not tainted
---------------------------------------------
Xorg/1478 is trying to acquire lock:
 (&dev->struct_mutex){+.+.+.}, at: [<ffffffffc04ee677>] i915_gem_unmap_dma_buf+0xa7/0xf0 [i915]

but task is already holding lock:
 (&dev->struct_mutex){+.+.+.}, at: [<ffffffffc03bdb7e>] drm_gem_object_unreference_unlocked+0xbe/0xe0 [drm]

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&dev->struct_mutex);
  lock(&dev->struct_mutex);

 *** DEADLOCK ***

 May be due to missing lock nesting notation

1 lock held by Xorg/1478:
 #0:  (&dev->struct_mutex){+.+.+.}, at: [<ffffffffc03bdb7e>] drm_gem_object_unreference_unlocked+0xbe/0xe0 [drm]

stack backtrace:
CPU: 2 PID: 1478 Comm: Xorg Not tainted 4.7.3-200.fc24.x86_64+debug #1
Hardware name: LENOVO 20156/Emerald Lake 2, BIOS 62CN41WW 09/10/2012
 0000000000000086 00000000157c3de1 ffff88009cecb9d0 ffffffffad457bd5
 ffffffffaeac6de0 ffff8800c128c000 ffff88009cecba98 ffffffffad10c266
 ffff88009cecb9f0 ffffffff00000001 000000009cecba10 ffffffffae409400
Call Trace:
 [<ffffffffad457bd5>] dump_stack+0x86/0xc1
 [<ffffffffad10c266>] __lock_acquire+0x726/0x1210
 [<ffffffffad0e7f67>] ? sched_clock_cpu+0xa7/0xc0
 [<ffffffffad479a04>] ? debug_check_no_obj_freed+0x154/0x260
 [<ffffffffad10d1be>] lock_acquire+0xfe/0x1f0
 [<ffffffffc04ee677>] ? i915_gem_unmap_dma_buf+0xa7/0xf0 [i915]
 [<ffffffffad8d9576>] mutex_lock_nested+0x86/0x3f0
 [<ffffffffc04ee677>] ? i915_gem_unmap_dma_buf+0xa7/0xf0 [i915]
 [<ffffffffc04ee677>] ? i915_gem_unmap_dma_buf+0xa7/0xf0 [i915]
 [<ffffffffc04ee668>] ? i915_gem_unmap_dma_buf+0x98/0xf0 [i915]
 [<ffffffffc04ee677>] i915_gem_unmap_dma_buf+0xa7/0xf0 [i915]
 [<ffffffffad5ff2c1>] dma_buf_unmap_attachment+0x51/0x70
 [<ffffffffc03d7a62>] drm_prime_gem_destroy+0x22/0x40 [drm]
 [<ffffffffc06c022b>] nouveau_gem_object_del+0x7b/0xf0 [nouveau]
 [<ffffffffc03bd6f9>] drm_gem_object_free+0x29/0x70 [drm]
 [<ffffffffc03bdb95>] drm_gem_object_unreference_unlocked+0xd5/0xe0 [drm]
 [<ffffffffc03bdaca>] ? drm_gem_object_unreference_unlocked+0xa/0xe0 [drm]
 [<ffffffffc03bdc07>] drm_gem_object_handle_unreference_unlocked+0x67/0xb0 [drm]
 [<ffffffffc03bdca8>] drm_gem_object_release_handle+0x58/0xa0 [drm]
 [<ffffffffc03bdd55>] drm_gem_handle_delete+0x65/0x90 [drm]
 [<ffffffffc03be4e0>] drm_gem_close_ioctl+0x20/0x30 [drm]
 [<ffffffffc03bec22>] drm_ioctl+0x152/0x570 [drm]
 [<ffffffffc03be4c0>] ? drm_gem_handle_create+0x40/0x40 [drm]
 [<ffffffffad5d3139>] ? rpm_resume+0x679/0x840
 [<ffffffffad10b725>] ? trace_hardirqs_on_caller+0xf5/0x1b0
 [<ffffffffad10b7ed>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffffc06b8aa4>] nouveau_drm_ioctl+0x74/0xc0 [nouveau]
 [<ffffffffad2aba13>] do_vfs_ioctl+0xa3/0x6c0
 [<ffffffffad2b9232>] ? __fget+0x122/0x210
 [<ffffffffad2b9115>] ? __fget+0x5/0x210
 [<ffffffffad2ac0a9>] SyS_ioctl+0x79/0x90
 [<ffffffffad8dd13c>] entry_SYSCALL_64_fastpath+0x1f/0xbd

Potential duplicate: bug 1297412

Comment 1 depelover 2016-09-15 22:28:14 UTC
Created attachment 1201452 [details]
File: dmesg

Comment 2 Fedora End Of Life 2017-07-25 23:03:50 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2017-08-08 17:23:31 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.