Return-path: Received: from mail-fx0-f158.google.com ([209.85.220.158]:49651 "EHLO mail-fx0-f158.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300AbZDOAsQ (ORCPT ); Tue, 14 Apr 2009 20:48:16 -0400 Received: by fxm2 with SMTP id 2so2679213fxm.37 for ; Tue, 14 Apr 2009 17:48:14 -0700 (PDT) Subject: Re: A warning in latest -git 2.6.30-rc1 From: Maxim Levitsky To: reinette chatre Cc: linux-wireless , iwlwifi maling list In-Reply-To: <1239638705.10251.8.camel@rc-desk> References: <1239576236.3814.2.camel@maxim-laptop> <1239638705.10251.8.camel@rc-desk> Content-Type: text/plain Date: Wed, 15 Apr 2009 03:48:11 +0300 Message-Id: <1239756491.8954.10.camel@maxim-laptop> (sfid-20090415_024821_289136_4FEAD446) Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, 2009-04-13 at 09:05 -0700, reinette chatre wrote: > Hi Maxim, > > On Sun, 2009-04-12 at 15:43 -0700, Maxim Levitsky wrote: > > I have just noticed this, seems to be harmless, everything works fine: > > > > > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250121] ------------[ cut here ]------------ > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250128] WARNING: at /home/maxim/software/kernel/linux-2.6/drivers/net/wireless/iwlwifi/iwl3945-base.c:496 iwl3945_mac_set_key+0x7e5/0x7f0 [iwl3945]() > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250134] Hardware name: Aspire 5720 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250137] no space for a new keyModules linked in: uhci_hcd af_packet nfsd exportfs nfs lockd nfs_acl auth_rpcgss sunrpc cpufreq_powersave cpufreq_conservative cpufreq_userspace acpi_cpufreq coretemp uvcvideo videodev v4l1_compat v4l2_compat_ioctl32 sbp2 joydev iwl3945 iwlcore psmouse snd_hda_codec_realtek rfkill ehci_hcd tg3 snd_hda_intel snd_hda_codec iTCO_wdt mac80211 nvidia(P) ohci1394 ricoh_mmc sdhci_pci sdhci evdev serio_raw libphy snd_hwdep iTCO_vendor_support usbcore snd_pcm snd_timer snd_page_alloc ext3 jbd mbcache fuse > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250208] Pid: 8, comm: events/0 Tainted: P W 2.6.30-rc1-vanilla #5 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250212] Call Trace: > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250224] [] warn_slowpath+0xd0/0x130 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250233] [] ? __slab_alloc+0xbf/0x760 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250241] [] ? alloc_inode+0x51/0x60 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250247] [] ? __d_lookup+0xcf/0x150 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250255] [] ? security_inode_alloc+0x1c/0x20 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250262] [] ? inode_init_always+0x12e/0x1f0 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250277] [] ? iwl3945_mac_set_key+0x0/0x7f0 [iwl3945] > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250284] [] ? security_d_instantiate+0x16/0x30 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250291] [] ? d_instantiate+0x45/0x50 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250313] [] ? iwl_scan_cancel_timeout+0x2d/0xb0 [iwlcore] > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250328] [] iwl3945_mac_set_key+0x7e5/0x7f0 [iwl3945] > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250357] [] __ieee80211_key_todo+0x16c/0x330 [mac80211] > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250383] [] ? key_todo+0x0/0x10 [mac80211] > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250408] [] ieee80211_key_todo+0x15/0x30 [mac80211] > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250433] [] key_todo+0x9/0x10 [mac80211] > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250441] [] worker_thread+0x1a3/0x2a0 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250448] [] ? autoremove_wake_function+0x0/0x40 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250455] [] ? worker_thread+0x0/0x2a0 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250461] [] ? worker_thread+0x0/0x2a0 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250467] [] kthread+0x56/0x90 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250475] [] child_rip+0xa/0x20 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250481] [] ? kthread+0x0/0x90 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250487] [] ? child_rip+0x0/0x20 > > > Apr 13 00:35:22 maxim-laptop kernel: [ 3495.250492] ---[ end trace a941121475b47e49 ]--- > > > > > Happens often, usually after resume from disk. I have WPA2 network. > > > > > > This is vanilla kernel commit b0cbc861a3c05e634520b049b5cc27ad6febb51f > > Sounds like you can easily reproduce it ... would it be possible to get > us some extra logs for this problem? Could you please run with debug > 0x400002 ? > > Thank you very much > > Reinette > > It turns out that this bug doesn't show up, when I need (with debug options you provided) I found that I enabled hw encryption, although it is disabled by default, and I suspect that this is due to that I see clearly now that this warning (as expected) occures, just after association, when wpa_supplicant sets keys. I look at source for further information. Best regards, Maxim Levitsky