Return-path: Received: from c60.cesmail.net ([216.154.195.49]:59340 "EHLO c60.cesmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754449Ab0AVVm1 (ORCPT ); Fri, 22 Jan 2010 16:42:27 -0500 Subject: Re: Starting hostapd causes kernel panic From: Pavel Roskin To: Johannes Berg Cc: Markus Baier , linux-wireless@vger.kernel.org, kalle.valo@iki.fi In-Reply-To: <1264193623.2593.17.camel@johannes.local> References: <1264193623.2593.17.camel@johannes.local> Content-Type: text/plain Date: Fri, 22 Jan 2010 16:42:06 -0500 Message-Id: <1264196526.3040.3.camel@mj> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, 2010-01-22 at 21:53 +0100, Johannes Berg wrote: > Try this please. I'm still getting a panic in ieee80211_tx_h_select_key(): BUG: unable to handle kernel NULL pointer dereference at 00000000000001cf IP: [] ieee80211_tx_h_select_key+0x26a/0x300 [mac80211] PGD 12a7f8067 PUD 126450067 PMD 0 Oops: 0000 [#1] SMP last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0/irq CPU 0 Pid: 19396, comm: hostapd Not tainted 2.6.33-rc4-wl #239 G31T-M/G31T-M RIP: 0010:[] [] ieee80211_tx_h_select_key+0x26a/0x300 [mac80211] (gdb) l *(ieee80211_tx_h_select_key+0x26a) 0x16e4a is in ieee80211_tx_h_select_key (/home/proski/src/linux-2.6/net/mac80211/tx.c:550). 545 case ALG_CCMP: 546 if (!ieee80211_is_data_present(hdr->frame_control) && 547 !ieee80211_use_mfp(hdr->frame_control, tx->sta, 548 tx->skb)) 549 tx->key = NULL; 550 skip_hw = (tx->key->conf.flags & 551 IEEE80211_KEY_FLAG_SW_MGMT) && 552 ieee80211_is_mgmt(hdr->frame_control); 553 break; 554 case ALG_AES_CMAC: I assume it's another case where tx->key should be checked for being NULL. In fact, it's set to NULL on the preceding line! -- Regards, Pavel Roskin