diff options
| author | Zhao Li <enderaoelyther@gmail.com> | 2026-10-28 22:17:50 +0800 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-11-10 10:18:15 +0100 |
| commit | 989f47c56e48d442d79497a25ed946d029c4dc53 (patch) | |
| tree | 2d0cf8e95f44223c060ac9a7801052b4d7c2dcc7 /tools/perf/scripts/python | |
| parent | f3c45d5b741a7d7586e639c2f55d2557029f2e1a (diff) | |
wifi: mac80211_hwsim: ignore non-generic netlink releases
Closing an unrelated netlink socket can remove mac80211_hwsim radios or
clear the active wmediumd registration when its port ID matches a generic
netlink socket.
mac80211_hwsim_netlink_notify() handles every NETLINK_URELEASE event,
but netlink port IDs are scoped by protocol. The notifier therefore treats
a release from another protocol as a MAC80211_HWSIM socket release.
Ignore release notifications unless they come from NETLINK_GENERIC.
LLM assistance was used to find the bug and review.
Fixes: 7882513bacb1 ("mac80211_hwsim driver support userspace frame tx/rx")
Fixes: e9ed49bf4c2c ("mac80211-hwsim: Add support for HWSIM_ATTR_DESTROY_RADIO_ON_CLOSE")
Cc: stable@vger.kernel.org
Signed-off-by: Zhao Li <enderaoelyther@gmail.com>
Link: https://patch.msgid.link/20261028141751.6728-2-enderaoelyther@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
