Bug 1384176

Summary: [abrt] [ INFO: possible recursive locking detected ]
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: gansalmon, ichavero, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab, ngompa13
Target Milestone: ---Flags: labbott: needinfo? (ngompa13)
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/41900358cac13e4f36e0c3a1dd9570056027e13a
Whiteboard: abrt_hash:30b989775da5a0f8bf64a90c1cc97d16a375bd03;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-23 23:01:54 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 Neal Gompa 2016-10-12 18:10:30 UTC
Additional info:
reporter:       libreport-2.8.0
[ INFO: possible recursive locking detected ]
4.9.0-0.rc0.git4.1.fc26.x86_64 #1 Not tainted
---------------------------------------------
kworker/0:1/83 is trying to acquire lock:
 ("pciehp-%u"PSN(ctrl)){++++.+}, at: [<ffffffff9c0cc415>] flush_workqueue+0x5/0x6b0

but task is already holding lock:
 ("pciehp-%u"PSN(ctrl)){++++.+}, at: [<ffffffff9c0cfcba>] process_one_work+0x1ba/0x6f0

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

       CPU0
       ----
  lock("pciehp-%u"PSN(ctrl));
  lock("pciehp-%u"PSN(ctrl));

 *** DEADLOCK ***

 May be due to missing lock nesting notation

6 locks held by kworker/0:1/83:
 #0:  ("pciehp-%u"PSN(ctrl)){++++.+}, at: [<ffffffff9c0cfcba>] process_one_work+0x1ba/0x6f0
 #1:  ((&info->work)#2){+.+.+.}, at: [<ffffffff9c0cfcba>] process_one_work+0x1ba/0x6f0
 #2:  (&slot->hotplug_lock){+.+.+.}, at: [<ffffffff9c4dd4eb>] pciehp_power_thread+0x8b/0xb0
 #3:  (pci_rescan_remove_lock){+.+.+.}, at: [<ffffffff9c4be847>] pci_lock_rescan_remove+0x17/0x20
 #4:  (&dev->mutex){......}, at: [<ffffffff9c5ea08d>] device_release_driver+0x1d/0x40
 #5:  (&dev->mutex){......}, at: [<ffffffff9c5ea08d>] device_release_driver+0x1d/0x40

stack backtrace:
CPU: 0 PID: 83 Comm: kworker/0:1 Not tainted 4.9.0-0.rc0.git4.1.fc26.x86_64 #1
Hardware name: Apple Inc. iMac17,1/Mac-B809C3757DA9BB8D, BIOS IM171.88Z.0105.B08.1604111319 04/11/2016
Workqueue: pciehp-3 pciehp_power_thread
 ffffae02c340f750 ffffffff9c46c303 ffffffff9dc1ed80 ffff97980976b2c0
 ffffae02c340f818 ffffffff9c11125e 0000000000000000 ffffae0200000006
 00000000c3410000 ffffffff9d4eb000 be50b28c0abcfe51 ffff97980976bf68
Call Trace:
 [<ffffffff9c46c303>] dump_stack+0x86/0xc3
 [<ffffffff9c11125e>] __lock_acquire+0x78e/0x1290
 [<ffffffff9c110596>] ? mark_held_locks+0x76/0xa0
 [<ffffffff9c115e91>] ? __raw_spin_lock_init+0x21/0x60
 [<ffffffff9c1121c6>] lock_acquire+0xf6/0x1f0
 [<ffffffff9c0cc415>] ? flush_workqueue+0x5/0x6b0
 [<ffffffff9c0cc544>] flush_workqueue+0x134/0x6b0
 [<ffffffff9c0cc415>] ? flush_workqueue+0x5/0x6b0
 [<ffffffff9c037e09>] ? sched_clock+0x9/0x10
 [<ffffffff9c0ccb94>] drain_workqueue+0xd4/0x1a0
 [<ffffffff9c0cee7c>] destroy_workqueue+0x1c/0x280
 [<ffffffff9c4df2b6>] pciehp_release_ctrl+0x36/0xd0
 [<ffffffff9c4dc676>] pciehp_remove+0x26/0x30
 [<ffffffff9c4d7552>] pcie_port_remove_service+0x52/0x70
 [<ffffffff9c5e9fb1>] __device_release_driver+0xa1/0x160
 [<ffffffff9c5ea095>] device_release_driver+0x25/0x40
 [<ffffffff9c5e9664>] bus_remove_device+0x114/0x190
 [<ffffffff9c5e57f9>] device_del+0x149/0x280
 [<ffffffff9c46ec97>] ? kobject_put+0x27/0x50
 [<ffffffff9c4d7480>] ? cleanup_service_irqs+0x30/0x30
 [<ffffffff9c5e594a>] device_unregister+0x1a/0x60
 [<ffffffff9c4d749e>] remove_iter+0x1e/0x30
 [<ffffffff9c5e5300>] device_for_each_child+0x50/0x90
 [<ffffffff9c4d7c22>] pcie_port_device_remove+0x22/0x40
 [<ffffffff9c4d7e70>] pcie_portdrv_remove+0x40/0x50
 [<ffffffff9c4c9689>] pci_device_remove+0x39/0xc0
 [<ffffffff9c5e9fb1>] __device_release_driver+0xa1/0x160
 [<ffffffff9c5ea095>] device_release_driver+0x25/0x40
 [<ffffffff9c4c1a2a>] pci_stop_bus_device+0x8a/0xa0
 [<ffffffff9c4c19d1>] pci_stop_bus_device+0x31/0xa0
 [<ffffffff9c4c1b22>] pci_stop_and_remove_bus_device+0x12/0x20
 [<ffffffff9c4dd92d>] pciehp_unconfigure_device+0xad/0x1b0
 [<ffffffff9c4dd3d5>] pciehp_disable_slot+0x55/0xe0
 [<ffffffff9c4dd4f3>] pciehp_power_thread+0x93/0xb0
 [<ffffffff9c0cfd3e>] process_one_work+0x23e/0x6f0
 [<ffffffff9c0cfcba>] ? process_one_work+0x1ba/0x6f0
 [<ffffffff9c0d023e>] worker_thread+0x4e/0x490
 [<ffffffff9c0d01f0>] ? process_one_work+0x6f0/0x6f0
 [<ffffffff9c0d01f0>] ? process_one_work+0x6f0/0x6f0
 [<ffffffff9c0d7602>] kthread+0x102/0x120
 [<ffffffff9c1106b5>] ? trace_hardirqs_on_caller+0xf5/0x1b0
 [<ffffffff9c0d7500>] ? kthread_park+0x60/0x60
 [<ffffffff9c90753a>] ret_from_fork+0x2a/0x40

Comment 1 Neal Gompa 2016-10-12 18:10:41 UTC
Created attachment 1209685 [details]
File: dmesg

Comment 2 Laura Abbott 2017-01-17 01:19:14 UTC
*********** MASS BUG UPDATE **************
We apologize for the inconvenience.  There is a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 25 kernel bugs.
 
Fedora 25 has now been rebased to 4.9.3-200.fc25.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.
 
If you have moved on to Fedora 26, and are still experiencing this issue, please change the version to Fedora 26.
 
If you experience different issues, please open a new bug report for those.

Comment 3 Laura Abbott 2017-02-23 23:01:54 UTC
*********** MASS BUG UPDATE **************
This bug is being closed with INSUFFICIENT_DATA as there has not been a response in 4 weeks. If you are still experiencing this issue, please reopen and attach the relevant data from the latest kernel you are running and any data that might have been requested previously.