1. 18 4月, 2020 1 次提交
  2. 07 4月, 2020 1 次提交
  3. 31 3月, 2020 1 次提交
    • Y
      qed: Fix use after free in qed_chain_free · 8063f761
      Yuval Basson 提交于
      The qed_chain data structure was modified in
      commit 1a4a6975 ("qed: Chain support for external PBL") to support
      receiving an external pbl (due to iWARP FW requirements).
      The pages pointed to by the pbl are allocated in qed_chain_alloc
      and their virtual address are stored in an virtual addresses array to
      enable accessing and freeing the data. The physical addresses however
      weren't stored and were accessed directly from the external-pbl
      during free.
      
      Destroy-qp flow, leads to freeing the external pbl before the chain is
      freed, when the chain is freed it tries accessing the already freed
      external pbl, leading to a use-after-free. Therefore we need to store
      the physical addresses in additional to the virtual addresses in a
      new data structure.
      
      Fixes: 1a4a6975 ("qed: Chain support for external PBL")
      Signed-off-by: NMichal Kalderon <mkalderon@marvell.com>
      Signed-off-by: NYuval Bason <ybason@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8063f761
  4. 30 3月, 2020 1 次提交
  5. 05 2月, 2020 1 次提交
  6. 04 2月, 2020 1 次提交
  7. 02 2月, 2020 1 次提交
  8. 27 1月, 2020 13 次提交
  9. 10 12月, 2019 1 次提交
  10. 31 10月, 2019 2 次提交
  11. 29 10月, 2019 1 次提交
  12. 16 9月, 2019 1 次提交
  13. 11 9月, 2019 2 次提交
  14. 05 9月, 2019 1 次提交
  15. 01 9月, 2019 2 次提交
  16. 23 8月, 2019 1 次提交
  17. 16 8月, 2019 2 次提交
  18. 09 8月, 2019 1 次提交
  19. 03 8月, 2019 1 次提交
  20. 27 7月, 2019 1 次提交
  21. 26 7月, 2019 1 次提交
  22. 25 7月, 2019 1 次提交
    • A
      qed: reduce maximum stack frame size · 7c116e02
      Arnd Bergmann 提交于
      clang warns about an overly large stack frame in one function
      when it decides to inline all __qed_get_vport_*() functions into
      __qed_get_vport_stats():
      
      drivers/net/ethernet/qlogic/qed/qed_l2.c:1889:13: error: stack frame size of 1128 bytes in function '_qed_get_vport_stats' [-Werror,-Wframe-larger-than=]
      
      Use a noinline_for_stack annotation to prevent clang from inlining
      these, which keeps the maximum stack usage at around half of that
      in the worst case, similar to what we get with gcc.
      
      Fixes: 86622ee7 ("qed: Move statistics to L2 code")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7c116e02
  23. 22 7月, 2019 1 次提交
  24. 04 7月, 2019 1 次提交