summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMikhail Lobanov <m.lobanov@rosa.ru>2025-03-17 13:31:37 +0300
committerJohannes Berg <johannes.berg@intel.com>2025-03-18 12:27:33 +0300
commit16ee3ea8faef8ff042acc15867a6c458c573de61 (patch)
tree8a8f615a7d38f8f50b3fa01aa44a69a40f4fbd17 /tools/perf/scripts/python/export-to-postgresql.py
parent892726f0099efdbec0be8275b58af0dc70e02ff2 (diff)
downloadlinux-16ee3ea8faef8ff042acc15867a6c458c573de61.tar.xz
wifi: mac80211: check basic rates validity in sta_link_apply_parameters
When userspace sets supported rates for a new station via NL80211_CMD_NEW_STATION, it might send a list that's empty or contains only invalid values. Currently, we process these values in sta_link_apply_parameters() without checking the result of ieee80211_parse_bitrates(), which can lead to an empty rates bitmap. A similar issue was addressed for NL80211_CMD_SET_BSS in commit ce04abc3fcc6 ("wifi: mac80211: check basic rates validity"). This patch applies the same approach in sta_link_apply_parameters() for NL80211_CMD_NEW_STATION, ensuring there is at least one valid rate by inspecting the result of ieee80211_parse_bitrates(). Found by Linux Verification Center (linuxtesting.org) with Syzkaller. Fixes: b95eb7f0eee4 ("wifi: cfg80211/mac80211: separate link params from station params") Signed-off-by: Mikhail Lobanov <m.lobanov@rosa.ru> Link: https://patch.msgid.link/20250317103139.17625-1-m.lobanov@rosa.ru Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions