HomeFreeBSD

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

Description

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

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.

Approved by: re (cperciva)
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D43512

(cherry picked from commit 49619f73151aeaca4cef5adf631253da04a46e19)
(cherry picked from commit f8ec0379435745d800ec149f9289401c792e61bb)

Details

Provenance
bzAuthored on Jan 19 2024, 2:52 PM
Reviewer
cc
Differential Revision
D43512: net80211: make sure calls to (*iv_update_bss)() are locked
Parents
rGf7c8d5448446: net80211: fix a NULL deref in ieee80211_sta_join1()
Branches
Unknown
Tags
Unknown