Return-path: Received: from mail.byterg.ru ([217.12.248.131]:50238 "EHLO mail.byterg.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752322AbbCCIWI (ORCPT ); Tue, 3 Mar 2015 03:22:08 -0500 Received: from [192.168.10.51] by mail.byterg.ru with esmtp (envelope-from ) id 1YShBe-0003BN-OJ for linux-wireless@vger.kernel.org; Tue, 03 Mar 2015 11:24:14 +0400 Message-ID: <54F56F50.6070505@byterg.ru> (sfid-20150303_092212_305523_BB3D19DD) Date: Tue, 03 Mar 2015 11:22:40 +0300 From: Brilliantov Kirill Vladimirovich Reply-To: brilliantov@byterg.ru MIME-Version: 1.0 To: linux-wireless@vger.kernel.org Subject: 8188e: possible recursive locking detected on linux-3.18.7 Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: Hello! I work with linux-3.18.7 on board with FreeScale iMX287 ARM CPU, for tests I use USB TP-Link TL-WN725N on RTL8188e chip. [ 7.802249] usb 1-1: new high-speed USB device number 2 using ci_hdrc [ 7.982221] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0) ifconfig wlan0 up [ 50.193673] MAC Address = e8:de:27:a3:ee:9d iwlist wlan0 scan [ 56.633485] [ 56.635036] ============================================= [ 56.640453] [ INFO: possible recursive locking detected ] [ 56.645876] 3.18.7+ #40 Not tainted [ 56.649379] --------------------------------------------- [ 56.654794] RTW_CMD_THREAD/84 is trying to acquire lock: [ 56.660118] (&(&(pqueue->lock))->rlock){+.-...}, at: [] _rtw_alloc_network+0x14/0xc4 [ 56.668948] [ 56.668948] but task is already holding lock: [ 56.674801] (&(&(pqueue->lock))->rlock){+.-...}, at: [] rtw_update_scanned_network+0x18/0x250 [ 56.684378] [ 56.684378] other info that might help us debug this: [ 56.690924] Possible unsafe locking scenario: [ 56.690924] [ 56.696858] CPU0 [ 56.699313] ---- [ 56.701766] lock(&(&(pqueue->lock))->rlock); [ 56.706244] lock(&(&(pqueue->lock))->rlock); [ 56.710721] [ 56.710721] *** DEADLOCK *** [ 56.710721] [ 56.716662] May be due to missing lock nesting notation [ 56.716662] [ 56.723474] 2 locks held by RTW_CMD_THREAD/84: [ 56.727927] #0: (&(&(pmlmepriv->lock))->rlock){+.....}, at: [] rtw_survey_event_callback+0x7c/0x1c4 [ 56.738115] #1: (&(&(pqueue->lock))->rlock){+.-...}, at: [] rtw_update_scanned_network+0x18/0x250 [ 56.748125] [ 56.748125] stack backtrace: [ 56.752516] CPU: 0 PID: 84 Comm: RTW_CMD_THREAD Not tainted 3.18.7+ #40 [ 56.759198] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 56.767002] [] (show_stack) from [] (validate_chain+0xd14/0x1154) [ 56.774878] [] (validate_chain) from [] (__lock_acquire+0x560/0xbb0) [ 56.783011] [] (__lock_acquire) from [] (lock_acquire+0x64/0x78) [ 56.790804] [] (lock_acquire) from [] (_raw_spin_lock_bh+0x44/0x58) [ 56.798865] [] (_raw_spin_lock_bh) from [] (_rtw_alloc_network+0x14/0xc4) [ 56.807442] [] (_rtw_alloc_network) from [] (rtw_update_scanned_network+0x98/0x250) [ 56.816881] [] (rtw_update_scanned_network) from [] (rtw_survey_event_callback+0xf8/0x1c4) [ 56.826922] [] (rtw_survey_event_callback) from [] (mlme_evt_hdl+0x5c/0xec) [ 56.835658] [] (mlme_evt_hdl) from [] (rtw_cmd_thread+0x110/0x348) [ 56.843623] [] (rtw_cmd_thread) from [] (kthread+0xb8/0xd4) [ 56.850972] [] (kthread) from [] (ret_from_fork+0x14/0x34) I get network list success. This problem fixed in next linux versions? Thank you and excuse me for my bad english. -- Best regards, Brilliantov Kirill Vladimirovich