1. 18 2月, 2022 13 次提交
  2. 16 2月, 2022 1 次提交
  3. 08 12月, 2021 1 次提交
    • J
      iwlwifi: mvm: fix delBA vs. NSSN queue sync race · 2438d430
      Johannes Berg 提交于
      If we happen to decide an NSSN queue sync (IWL_MVM_RXQ_NSSN_SYNC)
      for some remaining packets that are still on the queue, but just
      after we've decided to do a delBA (which causes its own queues
      sync with IWL_MVM_RXQ_NOTIF_DEL_BA) we can end up with a sequence
      of events like this:
      
       CPU 1                              CPU 2
      
      remove BA session with baid N
      send IWL_MVM_RXQ_NOTIF_DEL_BA
      send IWL_MVM_RXQ_NSSN_SYNC
      get IWL_MVM_RXQ_NOTIF_DEL_BA
                                          get IWL_MVM_RXQ_NOTIF_DEL_BA
      get IWL_MVM_RXQ_NSSN_SYNC
      complete IWL_MVM_RXQ_NOTIF_DEL_BA
      remove N from baid_map[]
                                          get IWL_MVM_RXQ_NSSN_SYNC
                                          WARN_ON(!baid_map[N])
      
      Thus, there's a race that leads in hitting the WARN_ON, but more
      importantly, it's a race that potentially even results in a new
      aggregation session getting assigned to baid N.
      
      To fix this, remove the WARN_ON() in the NSSN_SYNC case, we can't
      completely protect against hitting this case, so we shouldn't be
      warning. However, guard ourselves against BAID reuse by doing yet
      another round of queue synchronization after the entry is removed
      from the baid_map, so that it cannot be reused with any in-flight
      IWL_MVM_RXQ_NSSN_SYNC messages.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      Link: https://lore.kernel.org/r/iwlwifi.20211204083237.44abbbc50f40.I5492600dfe513356555abe2d7df0e2835846e3d8@changeidSigned-off-by: NLuca Coelho <luciano.coelho@intel.com>
      2438d430
  4. 27 8月, 2021 4 次提交
  5. 22 6月, 2021 1 次提交
  6. 14 4月, 2021 1 次提交
  7. 05 2月, 2021 3 次提交
  8. 25 1月, 2021 1 次提交
  9. 12 12月, 2020 1 次提交
  10. 10 12月, 2020 2 次提交
  11. 11 11月, 2020 1 次提交
  12. 09 10月, 2020 3 次提交
  13. 02 10月, 2020 3 次提交
  14. 23 6月, 2020 1 次提交
  15. 10 6月, 2020 1 次提交
  16. 29 5月, 2020 1 次提交
  17. 08 5月, 2020 2 次提交