29 Dec, 2008

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: (31 commits)
    [CIFS] Remove redundant test
    [CIFS] make sure that DFS pathnames are properly formed
    Remove an already-checked error condition in SendReceiveBlockingLock
    Streamline SendReceiveBlockingLock: Use "goto out:" in an error condition
    Streamline SendReceiveBlockingLock: Use "goto out:" in an error condition
    [CIFS] Streamline SendReceive[2] by using "goto out:" in an error condition
    Slightly streamline SendReceive[2]
    Check the return value of cifs_sign_smb[2]
    [CIFS] Cleanup: Move the check for too large R/W requests
    [CIFS] Slightly simplify wait_for_free_request(), remove an unnecessary "else" branch
    Simplify allocate_mid() slightly: Remove some unnecessary "else" branches
    [CIFS] In SendReceive, move consistency check out of the mutexed region
    cifs: store password in tcon
    cifs: have calc_lanman_hash take more granular args
    cifs: zero out session password before freeing it
    cifs: fix wait_for_response to time out sleeping processes correctly
    [CIFS] Can not mount with prefixpath if root directory of share is inaccessible
    [CIFS] various minor cleanups pointed out by checkpatch script
    [CIFS] fix typo
    [CIFS] remove sparse warning
    ...

    Fix trivial conflict in fs/cifs/cifs_fs_sb.h due to comment changes for
    the CIFS_MOUNT_xyz bit definitions between cifs updates and security
    updates.

    Linus Torvalds
     

26 Dec, 2008

2 commits


04 Dec, 2008

1 commit


21 Nov, 2008

1 commit

  • If a connection with open file handles has gone down
    and come back up and reconnected without reopening
    the file handle yet, do not attempt to send an SMB close
    request for this handle in cifs_close. We were
    checking for the connection being invalid in cifs_close
    but since the connection may have been reconnected
    we also need to check whether the file handle
    was marked invalid (otherwise we could close the
    wrong file handle by accident).

    Acked-by: Jeff Layton
    Signed-off-by: Steve French

    Steve French
     

18 Nov, 2008

1 commit

  • Conflicts:
    fs/cifs/misc.c

    Merge to resolve above, per the patch below.

    Signed-off-by: James Morris

    diff --cc fs/cifs/misc.c
    index ec36410,addd1dc..0000000
    --- a/fs/cifs/misc.c
    +++ b/fs/cifs/misc.c
    @@@ -347,13 -338,13 +338,13 @@@ header_assemble(struct smb_hdr *buffer
    /* BB Add support for establishing new tCon and SMB Session */
    /* with userid/password pairs found on the smb session */
    /* for other target tcp/ip addresses BB */
    - if (current->fsuid != treeCon->ses->linux_uid) {
    + if (current_fsuid() != treeCon->ses->linux_uid) {
    cFYI(1, ("Multiuser mode and UID "
    "did not match tcon uid"));
    - read_lock(&GlobalSMBSeslock);
    - list_for_each(temp_item, &GlobalSMBSessionList) {
    - ses = list_entry(temp_item, struct cifsSesInfo, cifsSessionList);
    + read_lock(&cifs_tcp_ses_lock);
    + list_for_each(temp_item, &treeCon->ses->server->smb_ses_list) {
    + ses = list_entry(temp_item, struct cifsSesInfo, smb_ses_list);
    - if (ses->linux_uid == current->fsuid) {
    + if (ses->linux_uid == current_fsuid()) {
    if (ses->server == treeCon->ses->server) {
    cFYI(1, ("found matching uid substitute right smb_uid"));
    buffer->Uid = ses->Suid;

    James Morris
     

17 Nov, 2008

1 commit

  • Use a similar approach to the SMB session sharing. Add a list of tcons
    attached to each SMB session. Move the refcount to non-atomic. Protect
    all of the above with the cifs_tcp_ses_lock. Add functions to
    properly find and put references to the tcons.

    Signed-off-by: Jeff Layton
    Signed-off-by: Steve French

    Jeff Layton
     

15 Nov, 2008

1 commit

  • We do this by abandoning the global list of SMB sessions and instead
    moving to a per-server list. This entails adding a new list head to the
    TCP_Server_Info struct. The refcounting for the cifsSesInfo is moved to
    a non-atomic variable. We have to protect it by a lock anyway, so there's
    no benefit to making it an atomic. The list and refcount are protected
    by the global cifs_tcp_ses_lock.

    The patch also adds a new routines to find and put SMB sessions and
    that properly take and put references under the lock.

    Signed-off-by: Jeff Layton
    Signed-off-by: Steve French

    Jeff Layton
     

14 Nov, 2008

1 commit

  • Wrap access to task credentials so that they can be separated more easily from
    the task_struct during the introduction of COW creds.

    Change most current->(|e|s|fs)[ug]id to current_(|e|s|fs)[ug]id().

    Change some task->e?[ug]id to task_e?[ug]id(). In some places it makes more
    sense to use RCU directly rather than a convenient wrapper; these will be
    addressed by later patches.

    Signed-off-by: David Howells
    Reviewed-by: James Morris
    Acked-by: Serge Hallyn
    Cc: Steve French
    Cc: linux-cifs-client@lists.samba.org
    Signed-off-by: James Morris

    David Howells
     

12 Oct, 2008

1 commit


23 Sep, 2008

1 commit


24 May, 2008

1 commit


29 Apr, 2008

1 commit


08 Feb, 2008

1 commit


26 Oct, 2007

1 commit


29 Sep, 2007

1 commit

  • This allows cifs to mount to ipc shares (IPC$)
    which will allow user space applications to
    layer over authenticated cifs connections
    (useful for Wine and others that would want
    to put DCE/RPC over CIFS or run CIFS named
    pipes)

    Acked-by: Rob Shearman
    Signed-off-by: Steve French

    Steve French
     

18 Jul, 2007

1 commit


13 Jul, 2007

1 commit

  • This should be the last big batch of whitespace/formatting fixes.
    checkpatch warnings for the cifs directory are down about 90% and
    many of the remaining ones are harder to remove or make the code
    harder to read.

    Signed-off-by: Steve French

    Steve French
     

10 Jul, 2007

1 commit


08 Jul, 2007

1 commit


22 Jan, 2007

1 commit


08 Dec, 2006

2 commits


13 Oct, 2006

1 commit


29 Sep, 2006

1 commit


01 Jun, 2006

1 commit


03 Mar, 2006

1 commit


02 Mar, 2006

1 commit


24 Feb, 2006

1 commit


22 Feb, 2006

1 commit


13 Dec, 2005

1 commit


04 Dec, 2005

1 commit


02 Dec, 2005

1 commit


30 Nov, 2005

1 commit


12 Nov, 2005

1 commit


07 Nov, 2005

1 commit

  • This is the fs/ part of the big kfree cleanup patch.

    Remove pointless checks for NULL prior to calling kfree() in fs/.

    Signed-off-by: Jesper Juhl
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     

11 Oct, 2005

1 commit


23 Sep, 2005

1 commit


22 Sep, 2005

1 commit


25 Aug, 2005

1 commit