0261-carl9170-prevent-speculative-execution.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Elena Reshetova <[email protected]>
  3. Date: Mon, 4 Sep 2017 13:11:47 +0300
  4. Subject: [PATCH] carl9170: prevent speculative execution
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. CVE-2017-5753
  9. CVE-2017-5715
  10. Real commit text tbd
  11. Signed-off-by: Elena Reshetova <[email protected]>
  12. Signed-off-by: Tim Chen <[email protected]>
  13. Signed-off-by: Andy Whitcroft <[email protected]>
  14. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  15. (cherry picked from commit dc218eba4fe8241ab073be41a068f6796450c6d0)
  16. Signed-off-by: Fabian Grünbichler <[email protected]>
  17. ---
  18. drivers/net/wireless/ath/carl9170/main.c | 1 +
  19. 1 file changed, 1 insertion(+)
  20. diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c
  21. index 988c8857d78c..7e2c1c870a1d 100644
  22. --- a/drivers/net/wireless/ath/carl9170/main.c
  23. +++ b/drivers/net/wireless/ath/carl9170/main.c
  24. @@ -1388,6 +1388,7 @@ static int carl9170_op_conf_tx(struct ieee80211_hw *hw,
  25. mutex_lock(&ar->mutex);
  26. if (queue < ar->hw->queues) {
  27. + gmb();
  28. memcpy(&ar->edcf[ar9170_qmap[queue]], param, sizeof(*param));
  29. ret = carl9170_set_qos(ar);
  30. } else {
  31. --
  32. 2.14.2