1. 01 2月, 2012 9 次提交
  2. 13 1月, 2012 1 次提交
  3. 05 1月, 2012 1 次提交
  4. 19 10月, 2011 1 次提交
  5. 02 8月, 2011 1 次提交
  6. 02 7月, 2011 1 次提交
  7. 17 6月, 2011 1 次提交
  8. 14 4月, 2011 1 次提交
  9. 12 3月, 2011 1 次提交
  10. 08 3月, 2011 1 次提交
  11. 17 12月, 2010 2 次提交
  12. 24 9月, 2010 1 次提交
  13. 13 9月, 2010 1 次提交
    • T
      SUNRPC: Fix race corrupting rpc upcall · 5a67657a
      Trond Myklebust 提交于
      If rpc_queue_upcall() adds a new upcall to the rpci->pipe list just
      after rpc_pipe_release calls rpc_purge_list(), but before it calls
      gss_pipe_release (as rpci->ops->release_pipe(inode)), then the latter
      will free a message without deleting it from the rpci->pipe list.
      
      We will be left with a freed object on the rpc->pipe list.  Most
      frequent symptoms are kernel crashes in rpc.gssd system calls on the
      pipe in question.
      Reported-by: NJ. Bruce Fields <bfields@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: stable@kernel.org
      5a67657a
  14. 04 8月, 2010 2 次提交
  15. 15 5月, 2010 5 次提交
  16. 22 3月, 2010 1 次提交
  17. 10 2月, 2010 1 次提交
    • J
      sunrpc: parse and return errors reported by gssd · dc5ddce9
      Jeff Layton 提交于
      The kernel currently ignores any error code sent by gssd and always
      considers it to be -EACCES. In order to better handle the situation of
      an expired KRB5 TGT, the kernel needs to be able to parse and deal with
      the errors that gssd sends. Aside from -EACCES the only error we care
      about is -EKEYEXPIRED, which we're using to indicate that the upper
      layers should retry the call a little later.
      
      To maintain backward compatibility with older gssd's, any error other
      than -EKEYEXPIRED is interpreted as -EACCES.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      dc5ddce9
  18. 07 1月, 2010 1 次提交
  19. 19 12月, 2009 1 次提交
    • J
      sunrpc: on successful gss error pipe write, don't return error · 486bad2e
      Jeff Layton 提交于
      When handling the gssd downcall, the kernel should distinguish between a
      successful downcall that contains an error code and a failed downcall
      (i.e. where the parsing failed or some other sort of problem occurred).
      
      In the former case, gss_pipe_downcall should be returning the number of
      bytes written to the pipe instead of an error. In the event of other
      errors, we generally want the initiating task to retry the upcall so
      we set msg.errno to -EAGAIN. An unexpected error code here is a bug
      however, so BUG() in that case.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Cc: stable@kernel.org
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      486bad2e
  20. 10 12月, 2009 1 次提交
  21. 09 12月, 2009 1 次提交
  22. 10 8月, 2009 2 次提交
  23. 10 6月, 2009 1 次提交
  24. 24 12月, 2008 2 次提交
    • O
      rpc: add service field to new upcall · 2efef708
      Olga Kornievskaia 提交于
      This patch extends the new upcall with a "service" field that currently
      can have 2 values: "*" or "nfs". These values specify matching rules for
      principals in the keytab file. The "*" means that gssd is allowed to use
      "root", "nfs", or "host" keytab entries while the other option requires
      "nfs".
      
      Restricting gssd to use the "nfs" principal is needed for when the
      server performs a callback to the client.  The server in this case has
      to authenticate itself as an "nfs" principal.
      
      We also need "service" field to distiguish between two client-side cases
      both currently using a uid of 0: the case of regular file access by the
      root user, and the case of state-management calls (such as setclientid)
      which should use a keytab for authentication.  (And the upcall should
      fail if an appropriate principal can't be found.)
      
      Signed-off: Olga Kornievskaia <aglo@citi.umich.edu>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      2efef708
    • O
      rpc: add target field to new upcall · 8b1c7bf5
      Olga Kornievskaia 提交于
      This patch extends the new upcall by adding a "target" field
      communicating who we want to authenticate to (equivalently, the service
      principal that we want to acquire a ticket for).
      
      Signed-off: Olga Kornievskaia <aglo@citi.umich.edu>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      8b1c7bf5