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
Unknown Object (File)
Fri, Nov 15, 12:17 PM
Unknown Object (File)
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)
Oct 18 2024, 10:38 PM
Unknown Object (File)
Oct 18 2024, 12:53 PM
Unknown Object (File)
Oct 18 2024, 2:29 AM
Unknown Object (File)
Oct 3 2024, 11:33 AM

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 Not Applicable
Unit
Tests Not Applicable

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()?