wifi: mac80211: fix userspace_selectors corruption
authorJohannes Berg <johannes.berg@intel.com>
Sat, 8 Mar 2025 21:03:35 +0000 (23:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Mar 2025 09:53:10 +0000 (10:53 +0100)
commit700014d3ad1fd6e55c8f9ffa817514d3fbb5286e
treebed8ebb7d402ba94796fe3a120b0d87c9c9be85a
parent65bff0be9b154621b617fc2e4bd89f1e18e97cdb
wifi: mac80211: fix userspace_selectors corruption

Spotted during code review, the selectors need to be large
enough for a 128-bit bitmap, not a single unsigned long,
otherwise we have stack corruption.

We should also allow passing selectors from userspace, but
that should be a separate change.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250308225541.8f1bcf96a504.Ibeb8970c82a30c97279a4cc4e68faca5df1813a5@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c