diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2026-09-08 14:28:19 +0200 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-09-09 14:51:31 +0200 |
| commit | 860134b3af77970e006feab7e5decb8c84771c7f (patch) | |
| tree | 27f37292898294997ede5eebed03263ba808aeb4 /tools/perf/scripts/python/stackcollapse.py | |
| parent | cd54bf333f5631d3630bab0a832e9ae648f73515 (diff) | |
| download | linux-860134b3af77970e006feab7e5decb8c84771c7f.tar.gz linux-860134b3af77970e006feab7e5decb8c84771c7f.zip | |
wifi: mac80211: mesh: reset the CSA state when leaving
ifmsh->csa is allocated in ieee80211_mesh_csa_beacon() and only freed
in ieee80211_mesh_finish_csa(), i.e. when the channel switch completes.
Leaving the mesh while a switch is still pending therefore leaks it.
Additionally, ifmsh->csa_role and ifmsh->chsw_ttl have their state leak
in this case, so things can get mixed up in addition to the memory
leak.
Refactor the reset and call it in ieee80211_stop_mesh() to fix it all.
Assisted-by: LLM
Reported-by: syzbot+f5752cd6b94fe38be666@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=f5752cd6b94fe38be666
Fixes: b8456a14e9d2 ("{nl,cfg,mac}80211: implement mesh channel switch userspace API")
Link: https://patch.msgid.link/20260908122838.201719-20-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
