mac80211: handle various extensible elements correctly
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 Jun 2021 10:41:45 +0000 (13:41 +0300)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:47:23 +0000 (08:47 -0400)
commitfb71d81ccd69c3d607c44a8562f7abf606ae74e8
tree7c8113fb839c9f32f0701a74956d320927cc4832
parent676a7cb1a96bfa8e8cb38a9fcdd69f3d91a0abda
mac80211: handle various extensible elements correctly

[ Upstream commit 652e8363bbc7d149fa194a5cbf30b1001c0274b0 ]

Various elements are parsed with a requirement to have an
exact size, when really we should only check that they have
the minimum size that we need. Check only that and therefore
ignore any additional data that they might carry.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210618133832.cd101f8040a4.Iadf0e9b37b100c6c6e79c7b298cc657c2be9151a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/util.c