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)
Mon, Sep 23, 7:08 PM
Unknown Object (File)
Mon, Sep 23, 4:02 PM
Unknown Object (File)
Mon, Sep 23, 6:38 AM
Unknown Object (File)
Sat, Sep 21, 5:53 PM
Unknown Object (File)
Wed, Sep 18, 10:31 PM
Unknown Object (File)
Wed, Sep 18, 7:13 PM
Unknown Object (File)
Wed, Sep 18, 6:38 PM
Unknown Object (File)
Wed, Sep 18, 9:24 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()?