openwrt/package/kernel
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
..
acx-mac80211 kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
ath10k-ct ath10k-ct: Support AQL on ath10k CT_KVER-5.4 2020-03-30 01:46:50 +02:00
bcm27xx-gpu-fw bcm27xx-gpu-fw: update to latest version from RPi foundation 2020-03-31 13:22:59 +02:00
broadcom-wl broadcom-wl: fix compilation with kernel 5.4 2020-04-12 12:41:12 +02:00
button-hotplug kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
cryptodev-linux cryptodev-linux: Fix error when compiling with 5.4 kernel 2020-03-18 23:12:48 +01:00
dtc/patches package: kernel: dtc: Add DTO support 2017-11-06 16:39:41 +01:00
gpio-button-hotplug gpio-button-hotplug: remove duplicate logging text 2020-03-08 15:10:55 +01:00
gpio-nct5104d kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
hwmon-gsc kernel: make kmod-hwmon-core selected by dependent modules 2020-03-13 14:23:33 +01:00
i2c-gpio-custom kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
kmod-sched-cake-oot kmod-sched-cake: switch to in-tree cake for 4.19+ 2020-04-01 21:59:45 +01:00
lantiq lantiq: ltq-tapi: fix compilation with newer Linux kernels 2020-03-16 22:28:16 +01:00
leds-apu2 kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
linux Revert "kmod-sched: add act_police" 2020-04-14 08:48:33 +01:00
mac80211 mac80211: drop data frames without key on encrypted links 2020-04-17 13:27:40 +02:00
mt76 packages: mt76: add 14c3:7610 pci id to list 2020-04-08 14:05:29 +01:00
mwlwifi mwlwifi: Update the 88W8964's firmware to 9.3.2.12 and fix backports version detection 2020-04-13 22:11:26 +02:00
nat46 nat46: Fix compile with kernel 5.4 2020-02-28 17:50:46 +01:00
om-watchdog kernel/om-watchdog: Apply device renames from ramips 2019-07-10 17:36:29 +02:00
rtc-rv5c386a kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
rtl8812au-ct rtl8812au-ct: Update to version 2020-01-12 2020-02-24 21:27:08 +01:00
spi-gpio-custom kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
trelay kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
w1-gpio-custom kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00