Page MenuHomeFreeBSD

net80211: make sure calls to (*iv_update_bss)() are locked
ClosedPublic

Authored by bz on Jan 19 2024, 5:07 PM.
Tags
None
Referenced Files
F102657446: D43512.diff
Fri, Nov 15, 11:03 AM
Unknown Object (File)
Sun, Nov 10, 5:31 PM
Unknown Object (File)
Fri, Oct 25, 11:10 PM
Unknown Object (File)
Fri, Oct 18, 10:38 PM
Unknown Object (File)
Fri, Oct 18, 12:53 PM
Unknown Object (File)
Fri, Oct 18, 2:29 AM
Unknown Object (File)
Oct 3 2024, 11:33 AM
Unknown Object (File)
Oct 2 2024, 9:29 PM

Details

Summary

It turned out thare various calls into (*iv_update_bss)(), that is
direct changes to vap->iv_bss in the old days, happened without
synchronisation.

Use locking assertions to document the requirement or status quo
at some callers given ic locking will eventually have to be dealt
with.

MFC after: 3 days

Diff Detail

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

Event Timeline

bz requested review of this revision.Jan 19 2024, 5:07 PM
This revision is now accepted and ready to land.Jan 23 2024, 5:22 PM

By the way, I forgot to ask, is it also helpful to add IEEE80211_LOCK_ASSERT in lkpi_iv_update_bss()?