On Tue, Jun 01, 2010 at 10:19:19AM +0200, Johannes Berg wrote: > net/mac80211/key.c commit ad0e2b5a00dbec303e4682b403bb6703d11dcdb2 > void ieee80211_key_free(struct ieee80211_key *key) > - if (!key->sdata) { > - /* The key has not been linked yet, simply free it > - * and don't Oops */ It looks like this function can still be called with key->sdata == NULL in some cases and that does indeed result in an oops below: > + local = key->sdata->local; I've seen this issue pop up in FT testing and based on a quick code review, at least ieee80211_add_key() calls ieee80211_key_free() in an error case (sta not found) without having first called ieee80211_key_link(). Which one is wrong - the caller or the freeing function? Should we just restore the previous key->sdata == NULL handler here? I'd guess that the sta-not-found part is caused by FT trying to configure PTK before association in the FT protocol roaming case (wpa_supplicant tries to do this as soon as it knows the key because that works with some drivers and is needed to avoid race condition with encrypted frames; as a workaround, it will do this again after association if the previous attempt failed). -- Jouni Malinen PGP id EFC895FA -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html