Felix Fietkau
9d0f50b802
mac80211: ensure that mgmt tx skbs have tailroom for encryption
...
Some drivers use IEEE80211_KEY_FLAG_SW_MGMT_TX to indicate that management
frames need to be software encrypted. Since normal data packets are still
encrypted by the hardware, crypto_tx_tailroom_needed_cnt gets decremented
after key upload to hw. This can lead to passing skbs to ccmp_encrypt_skb,
which don't have the necessary tailroom for software encryption.
Change the code to add tailroom for encrypted management packets, even if
crypto_tx_tailroom_needed_cnt is 0.
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2019-02-01 11:08:02 +01:00
..
2017-10-11 15:46:45 +02:00
2017-10-11 09:37:35 +02:00
2017-10-11 09:37:35 +02:00
2017-02-08 09:19:33 +01:00
2017-02-08 09:19:33 +01:00
2017-10-11 09:37:35 +02:00
2016-10-17 16:14:04 +02:00
2016-10-17 16:14:04 +02:00
2018-06-18 22:40:32 +02:00
2018-06-18 22:40:32 +02:00
2019-01-25 10:13:22 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2016-02-24 09:04:38 +01:00
2017-11-02 11:10:55 +01:00
2018-11-09 11:39:44 +01:00
2017-11-02 11:10:55 +01:00
2018-11-09 11:14:51 +01:00
2017-11-02 11:10:55 +01:00
2018-09-05 10:10:11 +02:00
2017-11-02 11:10:55 +01:00
2016-09-30 13:45:44 +02:00
2018-11-09 11:20:34 +01:00
2018-06-29 09:53:09 +02:00
2017-02-10 14:31:51 -05:00
2016-10-27 16:03:25 +02:00
2018-06-18 22:40:32 +02:00
2018-06-18 22:39:39 +02:00
2018-09-05 10:03:14 +02:00
2018-12-18 14:19:10 +01:00
2018-12-20 11:53:36 -08:00
2018-12-05 15:32:28 +01:00
2018-09-05 10:15:48 +02:00
2017-02-08 09:19:33 +01:00
2018-07-05 23:21:10 +02:00
2015-05-05 14:21:56 +02:00
2018-12-20 11:53:36 -08:00
2018-10-11 16:01:01 +02:00
2018-09-10 09:14:28 +02:00
2017-12-11 09:58:38 -05:00
2018-11-09 11:41:20 +01:00
2017-06-16 11:48:39 -04:00
2016-12-13 16:22:27 +01:00
2018-11-09 11:41:20 +01:00
2018-11-09 11:41:20 +01:00
2018-02-22 21:13:03 +01:00
2014-04-09 14:49:43 +02:00
2018-12-19 08:36:18 -08:00
2017-11-20 16:55:11 +01:00
2018-06-15 13:34:40 +02:00
2017-11-02 11:10:55 +01:00
2017-05-17 16:03:40 +02:00
2018-10-11 16:01:01 +02:00
2018-10-11 16:01:05 +02:00
2018-10-11 16:01:05 +02:00
2018-10-11 16:01:04 +02:00
2018-10-11 16:01:02 +02:00
2018-10-11 16:01:05 +02:00
2018-10-11 16:01:05 +02:00
2019-01-25 10:17:25 +01:00
2018-11-09 11:37:04 +01:00
2018-09-05 10:03:14 +02:00
2018-11-09 11:38:29 +01:00
2018-11-09 11:38:29 +01:00
2018-12-19 09:40:17 +01:00
2018-09-10 09:13:32 +02:00
2016-02-24 09:04:38 +01:00
2016-02-24 09:04:38 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-11-09 11:20:34 +01:00
2019-02-01 11:08:02 +01:00
2018-12-18 14:19:10 +01:00
2018-09-05 10:03:14 +02:00
2018-11-20 14:26:55 +08:00
2012-03-13 14:54:16 -04:00
2017-12-11 12:16:04 +01:00
2014-10-22 10:42:09 +02:00
2018-02-22 21:13:03 +01:00
2015-01-27 11:10:13 +01:00