From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754188Ab1HGQXJ (ORCPT ); Sun, 7 Aug 2011 12:23:09 -0400 Received: from mail-qw0-f46.google.com ([209.85.216.46]:40396 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752605Ab1HGQXE (ORCPT ); Sun, 7 Aug 2011 12:23:04 -0400 Message-ID: <4E3EBBC8.303@gmail.com> Date: Sun, 07 Aug 2011 09:22:32 -0700 From: "Justin P. Mattock" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 MIME-Version: 1.0 To: "linux-kernel@vger.kernel.org" Subject: INFO: possible circular locking dependency detected Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org this shows up on suspend. the below I was able capture, but most of the time I have to reboot the machine. [ 1033.001941] ======================================================= [ 1033.001949] [ INFO: possible circular locking dependency detected ] [ 1033.001956] 3.0.0-07530-gde96355 #1 [ 1033.001960] ------------------------------------------------------- [ 1033.001965] upowerd/867 is trying to acquire lock: [ 1033.001970] (&battery->lock){+.+.+.}, at: [] acpi_battery_get_state+0x6f/0x174 [ 1033.001990] [ 1033.001992] but task is already holding lock: [ 1033.001997] (s_active#249){++++.+}, at: [] sysfs_read_file+0x94/0x172 [ 1033.002014] [ 1033.002015] which lock already depends on the new lock. [ 1033.002017] [ 1033.002022] [ 1033.002023] the existing dependency chain (in reverse order) is: [ 1033.002028] [ 1033.002030] -> #1 (s_active#249){++++.+}: [ 1033.002042] [] lock_acquire+0x106/0x15b [ 1033.002052] [] sysfs_deactivate+0xa0/0xf1 [ 1033.002061] [] sysfs_addrm_finish+0x36/0x55 [ 1033.002070] [] sysfs_hash_and_remove+0x59/0x7b [ 1033.002079] [] sysfs_remove_group+0x73/0x9b [ 1033.002088] [] device_remove_groups+0x2a/0x3f [ 1033.002098] [] device_remove_attrs+0x3a/0x61 [ 1033.002107] [] device_del+0x12e/0x184 [ 1033.002115] [] device_unregister+0x49/0x56 [ 1033.002123] [] power_supply_unregister+0x28/0x2c [ 1033.002134] [] sysfs_remove_battery+0x39/0x50 [ 1033.002143] [] acpi_battery_notify+0x4a/0xb1 [ 1033.002152] [] acpi_device_notify+0x19/0x1b [ 1033.002162] [] acpi_ev_notify_dispatch+0x67/0x7e [ 1033.002172] [] acpi_os_execute_deferred+0x27/0x34 [ 1033.002181] [] process_one_work+0x1e8/0x3d2 [ 1033.002191] [] worker_thread+0xd9/0x15c [ 1033.002199] [] kthread+0x9f/0xa7 [ 1033.002208] [] kernel_thread_helper+0x4/0x10 [ 1033.002218] [ 1033.002219] -> #0 (&battery->lock){+.+.+.}: [ 1033.002229] [] __lock_acquire+0xa06/0xce3 [ 1033.002238] [] lock_acquire+0x106/0x15b [ 1033.002246] [] __mutex_lock_common+0x61/0x380 [ 1033.002256] [] mutex_lock_nested+0x40/0x45 [ 1033.002265] [] acpi_battery_get_state+0x6f/0x174 [ 1033.002273] [] acpi_battery_get_property+0x32/0x1d4 [ 1033.002282] [] power_supply_show_property+0x5e/0x175 [ 1033.002292] [] dev_attr_show+0x27/0x4e [ 1033.002301] [] sysfs_read_file+0xbd/0x172 [ 1033.002309] [] vfs_read+0xa9/0xf0 [ 1033.002318] [] sys_read+0x4a/0x6e [ 1033.002326] [] system_call_fastpath+0x16/0x1b [ 1033.002336] [ 1033.002338] other info that might help us debug this: [ 1033.002340] [ 1033.002344] Possible unsafe locking scenario: [ 1033.002346] [ 1033.002350] CPU0 CPU1 [ 1033.002354] ---- ---- [ 1033.002358] lock(s_active); [ 1033.002366] lock(&battery->lock); [ 1033.002374] lock(s_active); [ 1033.002381] lock(&battery->lock); [ 1033.002388] [ 1033.002390] *** DEADLOCK *** [ 1033.002391] [ 1033.002397] 2 locks held by upowerd/867: [ 1033.002401] #0: (&buffer->mutex){+.+.+.}, at: [] sysfs_read_file+0x38/0x172 [ 1033.002417] #1: (s_active#249){++++.+}, at: [] sysfs_read_file+0x94/0x172 [ 1033.002433] [ 1033.002435] stack backtrace: [ 1033.002441] Pid: 867, comm: upowerd Not tainted 3.0.0-07530-gde96355 #1 [ 1033.002446] Call Trace: [ 1033.002458] [] print_circular_bug+0x1f8/0x209 [ 1033.002467] [] __lock_acquire+0xa06/0xce3 [ 1033.002475] [] ? trace_hardirqs_on_caller+0x121/0x158 [ 1033.002487] [] ? get_page_from_freelist+0x578/0x68d [ 1033.002496] [] ? acpi_battery_get_state+0x6f/0x174 [ 1033.002504] [] lock_acquire+0x106/0x15b [ 1033.002512] [] ? acpi_battery_get_state+0x6f/0x174 [ 1033.002522] [] __mutex_lock_common+0x61/0x380 [ 1033.002530] [] ? acpi_battery_get_state+0x6f/0x174 [ 1033.002538] [] ? acpi_battery_get_state+0x6f/0x174 [ 1033.002543] [] mutex_lock_nested+0x40/0x45 [ 1033.002543] [] acpi_battery_get_state+0x6f/0x174 [ 1033.002543] [] acpi_battery_get_property+0x32/0x1d4 [ 1033.002543] [] power_supply_show_property+0x5e/0x175 [ 1033.002543] [] dev_attr_show+0x27/0x4e [ 1033.002543] [] ? sysfs_read_file+0x94/0x172 [ 1033.002543] [] ? __get_free_pages+0xe/0x3c [ 1033.002543] [] sysfs_read_file+0xbd/0x172 [ 1033.002543] [] vfs_read+0xa9/0xf0 [ 1033.002543] [] ? fget_light+0x91/0x9c [ 1033.002543] [] sys_read+0x4a/0x6e [ 1033.002543] [] system_call_fastpath+0x16/0x1b [ 1038.160078] usb 2-1: new low speed USB device number 5 using uhci_hcd seems 3.0.0-rc1 was fine so a bisect is not to much(if I have time I will try). full dmesg: http://fpaste.org/ZkHW/ Justin P. Mattock