From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx02.posteo.de ([89.146.194.165]:60338 "EHLO mx02.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753141AbbAWMcA (ORCPT ); Fri, 23 Jan 2015 07:32:00 -0500 Received: from dovecot03.posteo.de (unknown [185.67.36.28]) by mx02.posteo.de (Postfix) with ESMTPS id 0477A236A61 for ; Fri, 23 Jan 2015 13:31:59 +0100 (CET) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3kTKbf5vq5z5vMp for ; Fri, 23 Jan 2015 13:31:58 +0100 (CET) Message-ID: <1422016318.1212.22.camel@posteo.de> (sfid-20150123_133204_361815_363026D4) Subject: brcmfmac: kernel panic in brcmf_cfg80211_del_key From: =?ISO-8859-1?Q?J=F6rg?= Krause To: linux-wireless Date: Fri, 23 Jan 2015 13:31:58 +0100 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi all, I'm running an wireless device with Linux kernel 3.18.3 and the brcmfmac driver. When connection the device to my network, I see from time to time these messages in the kernel log: [ 899.624759] brcmfmac: brcmf_cfg80211_del_key: invalid key index (4) [ 899.649874] brcmfmac: brcmf_cfg80211_del_key: invalid key index (5) [ 899.678066] cfg80211: Calling CRDA to update world regulatory domain I'm not sure about the meaning of the 'invalid key index' messages and if it may cause some trouble. However the system is running fine. Now I had a test case with two wireless devices having the same hostname and MAC address in the same network. The first wireless devices connects to the network and starts receiving an audio stream via UDP. Another device with same hostname and MAC is started after this and repeatedly reboots after 30 seconds. The first device gets disconnected after the second device connects to the network. The device is running with the network tools tools wpa_supplicant, a wpa_action script, udhcpc, avahi, and crda. The device tries to reconnect to the network. It successfully connects, but authentification fails. This step produces a lot of the kernel messages from above. Okay, nothing wrong until here I think. But after some time the brcmfmac driver is dying: [ 901.799454] ------------[ cut here ]------------ [ 901.804332] WARNING: CPU: 0 PID: 104 at drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c:1076 brcmf_netdev_wait_pend8021x+0xe0/0xf4 [brcmfmac]() [ 901.866565] Modules linked in: [ 901.907705] brcmfmac brcmutil [ 901.909298] CPU: 0 PID: 104 Comm: wpa_supplicant Not tainted 3.18.3 #1 [ 901.959287] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 901.993628] [] (show_stack) from [] (warn_slowpath_common+0x68/0x88) [ 902.016243] [] (warn_slowpath_common) from [] (warn_slowpath_null+0x1c/0x24) [ 902.040249] [] (warn_slowpath_null) from [] (brcmf_netdev_wait_pend8021x+0xe0/0xf4 [brcmfmac]) [ 902.067408] [] (brcmf_netdev_wait_pend8021x [brcmfmac]) from [] (brcmf_cfg80211_get_key+0x1a8/0x374 [brcmfmac]) [ 902.098434] [] (brcmf_cfg80211_get_key [brcmfmac]) from [] (brcmf_cfg80211_del_key+0x1d8/0x2e0 [brcmfmac]) [ 902.164527] [] (brcmf_cfg80211_del_key [brcmfmac]) from [] (brcmf_cfg80211_add_key+0xd8/0x248 [brcmfmac]) [ 902.213096] [] (brcmf_cfg80211_add_key [brcmfmac]) from [] (nl80211_new_key+0x108/0x144) [ 902.253581] [] (nl80211_new_key) from [] (genl_rcv_msg+0x22c/0x39c) [ 902.290997] [] (genl_rcv_msg) from [] (netlink_rcv_skb+0xb4/0xd8) [ 902.325813] [] (netlink_rcv_skb) from [] (genl_rcv+0x20/0x34) [ 902.363540] [] (genl_rcv) from [] (netlink_unicast+0x14c/0x1cc) [ 902.399402] [] (netlink_unicast) from [] (netlink_sendmsg+0x2b8/0x39c) [ 902.435798] [] (netlink_sendmsg) from [] (sock_sendmsg+0x84/0xa8) [ 902.477184] [] (sock_sendmsg) from [] (___sys_sendmsg.part.32+0x284/0x290) [ 902.486197] [] (___sys_sendmsg.part.32) from [] (__sys_sendmsg+0x4c/0x7c) [ 902.555011] [] (__sys_sendmsg) from [] (ret_fast_syscall+0x0/0x44) [ 902.591178] ---[ end trace 93a9f5360e80c5ca ]--- I'm not sure if I should worry about this issue. Best regards Jörg Krause