openwrt/package/kernel/mac80211/patches/subsys
David Bauer 0f1b5ce2f5 mac80211: drop data frames without key on encrypted links
If we know that we have an encrypted link (based on having had
a key configured for TX in the past) then drop all data frames
in the key selection handler if there's no key anymore.

This fixes an issue with mac80211 internal TXQs - there we can
buffer frames for an encrypted link, but then if the key is no
longer there when they're dequeued, the frames are sent without
encryption. This happens if a station is disconnected while the
frames are still on the TXQ.

Detecting that a link should be encrypted based on a first key
having been configured for TX is fine as there are no use cases
for a connection going from with encryption to no encryption.
With extended key IDs, however, there is a case of having a key
configured for only decryption, so we can't just trigger this
behaviour on a key being configured.

Cc: stable@vger.kernel.org
Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-17 13:27:40 +02:00
..
100-remove-cryptoapi-dependencies.patch mac80211: Update to version 5.4-rc2 2019-10-19 12:35:55 +02:00
110-mac80211_keep_keys_on_stop_ap.patch mac80211: Update to version 5.4-rc2 2019-10-19 12:35:55 +02:00
120-cfg80211_allow_perm_addr_change.patch mac80211: Update to version 5.2-rc7 2019-07-18 00:22:04 +02:00
130-disable-fils.patch mac80211: Update to version 5.3-rc4-1 2019-08-17 13:41:16 +02:00
131-Revert-mac80211-aes-cmac-switch-to-shash-CMAC-driver.patch mac80211: Update to version 5.4-rc2 2019-10-19 12:35:55 +02:00
132-mac80211-remove-cmac-dependency.patch mac80211: Update to version 5.3-rc4-1 2019-08-17 13:41:16 +02:00
140-tweak-TSQ-setting.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
150-disable_addr_notifier.patch mac80211: Update to version 5.4-rc2 2019-10-19 12:35:55 +02:00
210-ap_scan.patch mac80211: Update to version 5.4-rc2 2019-10-19 12:35:55 +02:00
300-mac80211-optimize-skb-resizing.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
301-mac80211-minstrel-remove-divisions-in-tx-status-path.patch mac80211: renumber subsys patches accepted upstream 2020-01-14 14:56:46 +01:00
302-mac80211-minstrel_ht-replace-rate-stats-ewma-with-a-.patch mac80211: renumber subsys patches accepted upstream 2020-01-14 14:56:46 +01:00
303-mac80211-minstrel_ht-rename-prob_ewma-to-prob_avg-us.patch mac80211: renumber subsys patches accepted upstream 2020-01-14 14:56:46 +01:00
304-mac80211-sta-randomize-BA-session-dialog-token-alloc.patch mac80211: renumber subsys patches accepted upstream 2020-01-14 14:56:46 +01:00
305-mac80211-fix-tx-status-for-no-ack-cases.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
306-mac80211-move-store-skb-ack-code-to-its-own-function.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
307-mac80211-Shrink-the-size-of-ack_frame_id-to-make-roo.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
308-mac80211-Add-new-sta_info-getter-by-sta-vif-addrs.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
309-mac80211-Import-airtime-calculation-code-from-mt76.patch mac80211: backport airtime queue limits support 2020-01-29 12:24:57 +01:00
310-mac80211-Implement-Airtime-based-Queue-Limit-AQL.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
311-mac80211-Use-Airtime-based-Queue-Limits-AQL-on-packe.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
312-mac80211-airtime-Fix-an-off-by-one-in-ieee80211_calc.patch mac80211: backport airtime queue limits support 2020-01-29 12:24:57 +01:00
313-mac80211-Turn-AQL-into-an-NL80211_EXT_FEATURE.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
314-mac80211-drop-data-frames-without-key-on-encrypted-l.patch mac80211: drop data frames without key on encrypted links 2020-04-17 13:27:40 +02:00
353-mac80211-use-more-bits-for-ack_frame_id.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00
400-allow-ibss-mixed.patch mac80211: Allow IBSS mode and different beacon intervals 2020-02-24 23:23:46 +01:00
500-mac80211_configure_antenna_gain.patch mac80211: Update to version 5.4.27 2020-03-29 18:22:10 +02:00