1. 06 5月, 2020 1 次提交
  2. 05 5月, 2020 1 次提交
  3. 04 5月, 2020 2 次提交
  4. 02 5月, 2020 2 次提交
  5. 01 5月, 2020 2 次提交
  6. 30 4月, 2020 4 次提交
  7. 27 2月, 2020 1 次提交
    • U
      net/smc: fix cleanup for linkgroup setup failures · 51e3dfa8
      Ursula Braun 提交于
      If an SMC connection to a certain peer is setup the first time,
      a new linkgroup is created. In case of setup failures, such a
      linkgroup is unusable and should disappear. As a first step the
      linkgroup is removed from the linkgroup list in smc_lgr_forget().
      
      There are 2 problems:
      smc_listen_decline() might be called before linkgroup creation
      resulting in a crash due to calling smc_lgr_forget() with
      parameter NULL.
      If a setup failure occurs after linkgroup creation, the connection
      is never unregistered from the linkgroup, preventing linkgroup
      freeing.
      
      This patch introduces an enhanced smc_lgr_cleanup_early() function
      which
      * contains a linkgroup check for early smc_listen_decline()
        invocations
      * invokes smc_conn_free() to guarantee unregistering of the
        connection.
      * schedules fast linkgroup removal of the unusable linkgroup
      
      And the unused function smcd_conn_free() is removed from smc_core.h.
      
      Fixes: 3b2dec26 ("net/smc: restructure client and server code in af_smc")
      Fixes: 2a0674ff ("net/smc: improve abnormal termination of link groups")
      Signed-off-by: NUrsula Braun <ubraun@linux.ibm.com>
      Signed-off-by: NKarsten Graul <kgraul@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      51e3dfa8
  8. 14 2月, 2020 1 次提交
  9. 16 12月, 2019 1 次提交
    • U
      net/smc: add fallback check to connect() · 86434744
      Ursula Braun 提交于
      FASTOPEN setsockopt() or sendmsg() may switch the SMC socket to fallback
      mode. Once fallback mode is active, the native TCP socket functions are
      called. Nevertheless there is a small race window, when FASTOPEN
      setsockopt/sendmsg runs in parallel to a connect(), and switch the
      socket into fallback mode before connect() takes the sock lock.
      Make sure the SMC-specific connect setup is omitted in this case.
      
      This way a syzbot-reported refcount problem is fixed, triggered by
      different threads running non-blocking connect() and FASTOPEN_KEY
      setsockopt.
      
      Reported-by: syzbot+96d3f9ff6a86d37e44c8@syzkaller.appspotmail.com
      Fixes: 6d6dd528 ("net/smc: fix refcount non-blocking connect() -part 2")
      Signed-off-by: NUrsula Braun <ubraun@linux.ibm.com>
      Signed-off-by: NKarsten Graul <kgraul@linux.ibm.com>
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      86434744
  10. 17 11月, 2019 3 次提交
  11. 13 11月, 2019 1 次提交
  12. 30 10月, 2019 1 次提交
  13. 26 10月, 2019 2 次提交
  14. 23 10月, 2019 1 次提交
  15. 06 8月, 2019 2 次提交
  16. 28 6月, 2019 1 次提交
  17. 27 6月, 2019 1 次提交
  18. 21 5月, 2019 1 次提交
  19. 13 4月, 2019 7 次提交
  20. 12 4月, 2019 3 次提交
  21. 22 2月, 2019 1 次提交
  22. 08 2月, 2019 1 次提交