1. 14 7月, 2020 2 次提交
  2. 26 2月, 2020 1 次提交
  3. 25 1月, 2020 1 次提交
  4. 15 1月, 2020 4 次提交
  5. 04 11月, 2019 3 次提交
  6. 07 7月, 2019 5 次提交
  7. 31 5月, 2019 1 次提交
  8. 10 5月, 2019 1 次提交
  9. 07 5月, 2019 1 次提交
  10. 27 4月, 2019 2 次提交
  11. 26 4月, 2019 1 次提交
  12. 24 4月, 2019 1 次提交
  13. 24 3月, 2019 1 次提交
  14. 20 12月, 2018 2 次提交
    • N
      NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred(). · 5e16923b
      NeilBrown 提交于
      When NFS creates a machine credential, it is a "generic" credential,
      not tied to any auth protocol, and is really just a container for
      the princpal name.
      This doesn't get linked to a genuine credential until rpcauth_bindcred()
      is called.
      The lookup always succeeds, so various places that test if the machine
      credential is NULL, are pointless.
      
      As a step towards getting rid of generic credentials, this patch gets
      rid of generic machine credentials.  The nfs_client and rpc_client
      just hold a pointer to a constant principal name.
      When a machine credential is wanted, a special static 'struct rpc_cred'
      pointer is used. rpcauth_bindcred() recognizes this, finds the
      principal from the client, and binds the correct credential.
      Signed-off-by: NNeilBrown <neilb@suse.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      5e16923b
    • N
      NFSv4: add cl_root_cred for use when machine cred is not available. · a534ecb0
      NeilBrown 提交于
      NFSv4 state management tries a root credential when no machine
      credential is available, as can happen with kerberos.
      It does this by replacing the cl_machine_cred with a root credential.
      This means that any user of the machine credential needs to take
      a lock while getting a reference to the machine credential, which is
      a little cumbersome.
      
      So introduce an explicit cl_root_cred, and never free either
      credential until client shutdown.  This means that no locking
      is needed to reference these credentials.  Future patches
      will make use of this.
      
      This is only a temporary addition.  both cl_machine_cred and
      cl_root_cred will disappear later in the series.
      Signed-off-by: NNeilBrown <neilb@suse.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      a534ecb0
  15. 10 8月, 2018 1 次提交
  16. 05 6月, 2018 1 次提交
  17. 16 5月, 2018 1 次提交
  18. 16 12月, 2017 1 次提交
    • S
      nfs: fix a deadlock in nfs client initialization · c156618e
      Scott Mayhew 提交于
      The following deadlock can occur between a process waiting for a client
      to initialize in while walking the client list during nfsv4 server trunking
      detection and another process waiting for the nfs_clid_init_mutex so it
      can initialize that client:
      
      Process 1                               Process 2
      ---------                               ---------
      spin_lock(&nn->nfs_client_lock);
      list_add_tail(&CLIENTA->cl_share_link,
              &nn->nfs_client_list);
      spin_unlock(&nn->nfs_client_lock);
                                              spin_lock(&nn->nfs_client_lock);
                                              list_add_tail(&CLIENTB->cl_share_link,
                                                      &nn->nfs_client_list);
                                              spin_unlock(&nn->nfs_client_lock);
                                              mutex_lock(&nfs_clid_init_mutex);
                                              nfs41_walk_client_list(clp, result, cred);
                                              nfs_wait_client_init_complete(CLIENTA);
      (waiting for nfs_clid_init_mutex)
      
      Make sure nfs_match_client() only evaluates clients that have completed
      initialization in order to prevent that deadlock.
      
      This patch also fixes v4.0 trunking behavior by not marking the client
      NFS_CS_READY until the clientid has been confirmed.
      Signed-off-by: NScott Mayhew <smayhew@redhat.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      c156618e
  19. 18 11月, 2017 1 次提交
  20. 02 10月, 2017 1 次提交
  21. 20 7月, 2017 1 次提交
  22. 21 4月, 2017 5 次提交
  23. 18 3月, 2017 1 次提交
  24. 02 12月, 2016 1 次提交