Search Linux Wireless

Re: [ipw3945-devel] [PATCH 7/7] iwlwifi: prevent double key removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2008-11-20 at 10:46 +0200, Tomas Winkler wrote:
> On Thu, Nov 20, 2008 at 8:56 AM, Johannes Berg
> <johannes@xxxxxxxxxxxxxxxx> wrote:
> > On Wed, 2008-11-19 at 15:32 -0800, Reinette Chatre wrote:
> >
> >
> >> When the key is removed a second time the offset is set to 255 - this index
> >> is not valid for the ucode_key_table and corrupts the eeprom pointer (which
> >> is 255 bits from ucode_key_table).
> >
> >> +     if (WARN(priv->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET,
> >> +              "Removing wrong key %d 0x%x\n", keyconf->keyidx, key_flags)) {
> >> +             spin_unlock_irqrestore(&priv->sta_lock, flags);
> >> +             return 0;
> >> +     }
> >
> > So, since _this_ patch has been tested to fix the problem, the WARN_ON
> > must be triggering.
> 
> It fix the immediate problem of crashing the kernel but not the
> problem why the key is removed twice.
> I'm analyzing the log I've got from Carlos to figure this out you can
> have a look as well.
> It should be probably considered as a test patch. The purpose is not
> to hide the bug buy fixing a symptom.
> I suspect there is some problem in mac80211 is that this is happening
> only on suspend/resumes not in regular flow

Hmm. Since we don't have suspend/resume that seems a bit odd. Maybe
because we don't have suspend/resume in mac80211? Maybe you've already
killed all the keys at suspend, but mac80211 doesn't know about that and
removes them after resume when we disassoc?

> > What are you doing to address the actual bug that causes it to trigger?
> 
> If the flow of double removal of a key is okay from mac80211
> perspective we just catch it internally which is always good otherwise
> we need to fix also mac80211.

Do we really want the WARN() in this patch though? We already know the
information from Carlos's log, so do we need to bother users?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux