Page MenuHomeFreeBSD

net80211: Fix IEEE80211_KEY_UNDEFINED() in ieee80211_node_delucastkey()
ClosedPublic

Authored by bz on Wed, Mar 5, 12:06 AM.
Tags
None
Referenced Files
F112547927: D49234.diff
Wed, Mar 19, 4:56 PM
Unknown Object (File)
Wed, Mar 12, 3:02 AM
Unknown Object (File)
Sat, Mar 8, 8:55 AM
Unknown Object (File)
Fri, Mar 7, 4:01 AM
Unknown Object (File)
Thu, Mar 6, 8:18 PM
Unknown Object (File)
Thu, Mar 6, 7:35 PM
Unknown Object (File)
Thu, Mar 6, 5:24 PM
Unknown Object (File)
Thu, Mar 6, 2:53 PM

Details

Summary

The adjustment of the check inverted the logic. Fix this.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Fixes: 9763fec11b83
Reported by: KUROSAWA Takahiro (takahiro.kurosawa gmail.com) in D48980

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 62758
Build 59642: arc lint + arc unit

Event Timeline

bz requested review of this revision.Wed, Mar 5, 12:06 AM
This revision is now accepted and ready to land.Wed, Mar 5, 12:09 AM

Thanks for fixing!
I've been running the kernel that has exactly the same fix and confirmed the problem I had was fixed.

I just hit this with key referencing and running this patch locally fixed it.

bz, wanna land it? Thanks!

I just hit this with key referencing and running this patch locally fixed it.

bz, wanna land it? Thanks!

Yes, I will; I was AFK today.

How do you notice? If you say you hit it. Do we log an error? STA or AP mode?

In D49234#1123174, @bz wrote:

I just hit this with key referencing and running this patch locally fixed it.

bz, wanna land it? Thanks!

Yes, I will; I was AFK today.

How do you notice? If you say you hit it. Do we log an error? STA or AP mode?

Amusingly whilst debugging the ccmp/gcmp stuff. When I went to unload the ccmp module it complained about the reference count being wrong, even though I had deleted the vap (so any keys should have been deleted.)

In D49234#1123174, @bz wrote:

I just hit this with key referencing and running this patch locally fixed it.

bz, wanna land it? Thanks!

Yes, I will; I was AFK today.

How do you notice? If you say you hit it. Do we log an error? STA or AP mode?

Amusingly whilst debugging the ccmp/gcmp stuff. When I went to unload the ccmp module it complained about the reference count being wrong, even though I had deleted the vap (so any keys should have been deleted.)

Interesting. I'll need more reading on key updates. We should be able to detect that case at run time failing as well I suppose. Wireless was so simple 25 years ago ...