1. 01 2月, 2013 1 次提交
  2. 31 1月, 2013 1 次提交
  3. 11 1月, 2013 1 次提交
  4. 09 1月, 2013 1 次提交
    • T
      SUNRPC: Ensure we release the socket write lock if the rpc_task exits early · 87ed5003
      Trond Myklebust 提交于
      If the rpc_task exits while holding the socket write lock before it has
      allocated an rpc slot, then the usual mechanism for releasing the write
      lock in xprt_release() is defeated.
      
      The problem occurs if the call to xprt_lock_write() initially fails, so
      that the rpc_task is put on the xprt->sending wait queue. If the task
      exits after being assigned the lock by __xprt_lock_write_func, but
      before it has retried the call to xprt_lock_and_alloc_slot(), then
      it calls xprt_release() while holding the write lock, but will
      immediately exit due to the test for task->tk_rqstp != NULL.
      Reported-by: NChris Perl <chris.perl@gmail.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: stable@vger.kernel.org [>= 3.1]
      87ed5003
  5. 05 1月, 2013 2 次提交
  6. 18 12月, 2012 3 次提交
  7. 16 12月, 2012 2 次提交
  8. 13 12月, 2012 2 次提交
    • A
      SUNRPC handle EKEYEXPIRED in call_refreshresult · eb96d5c9
      Andy Adamson 提交于
      Currently, when an RPCSEC_GSS context has expired or is non-existent
      and the users (Kerberos) credentials have also expired or are non-existent,
      the client receives the -EKEYEXPIRED error and tries to refresh the context
      forever.  If an application is performing I/O, or other work against the share,
      the application hangs, and the user is not prompted to refresh/establish their
      credentials. This can result in a denial of service for other users.
      
      Users are expected to manage their Kerberos credential lifetimes to mitigate
      this issue.
      
      Move the -EKEYEXPIRED handling into the RPC layer. Try tk_cred_retry number
      of times to refresh the gss_context, and then return -EACCES to the application.
      Signed-off-by: NAndy Adamson <andros@netapp.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      eb96d5c9
    • A
      SUNRPC set gss gc_expiry to full lifetime · 620038f6
      Andy Adamson 提交于
      Only use the default GSSD_MIN_TIMEOUT if the gss downcall timeout is zero.
      Store the full lifetime in gc_expiry (not 3/4 of the lifetime) as subsequent
      patches will use the gc_expiry to determine buffered WRITE behavior in the
      face of expired or soon to be expired gss credentials.
      Signed-off-by: NAndy Adamson <andros@netapp.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      620038f6
  9. 11 12月, 2012 1 次提交
  10. 06 12月, 2012 2 次提交
  11. 04 12月, 2012 5 次提交
  12. 09 11月, 2012 1 次提交
  13. 08 11月, 2012 1 次提交
  14. 05 11月, 2012 17 次提交