1. 30 9月, 2010 20 次提交
  2. 15 9月, 2010 1 次提交
    • J
      cifs: fix potential double put of TCP session reference · 460cf341
      Jeff Layton 提交于
      cifs_get_smb_ses must be called on a server pointer on which it holds an
      active reference. It first does a search for an existing SMB session. If
      it finds one, it'll put the server reference and then try to ensure that
      the negprot is done, etc.
      
      If it encounters an error at that point then it'll return an error.
      There's a potential problem here though. When cifs_get_smb_ses returns
      an error, the caller will also put the TCP server reference leading to a
      double-put.
      
      Fix this by having cifs_get_smb_ses only put the server reference if
      it found an existing session that it could use and isn't returning an
      error.
      
      Cc: stable@kernel.org
      Reviewed-by: NSuresh Jayaraman <sjayaraman@suse.de>
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      460cf341
  3. 09 9月, 2010 9 次提交
  4. 27 8月, 2010 1 次提交
    • S
      Cannot allocate memory error on mount · f0138a79
      Suresh Jayaraman 提交于
      On 08/26/2010 01:56 AM, joe hefner wrote:
      > On a recent Fedora (13), I am seeing a mount failure message that I can not explain. I have a Windows Server 2003ýa with a share set up for access only for a specific username (say userfoo). If I try to mount it from Linux,ýusing userfoo and the correct password all is well. If I try with a bad password or with some other username (userbar), it fails with "Permission denied" as expected. If I try to mount as username = administrator, and give the correct administrator password, I would also expect "Permission denied", but I see "Cannot allocate memory" instead.
      
      > ýfs/cifs/netmisc.c: Mapping smb error code 5 to POSIX err -13
      > ýfs/cifs/cifssmb.c: Send error in QPathInfo = -13
      > ýCIFS VFS: cifs_read_super: get root inode failed
      
      Looks like the commit 0b8f18e3 assumed that cifs_get_inode_info() and
      friends fail only due to memory allocation error when the inode is NULL
      which is not the case if CIFSSMBQPathInfo() fails and returns an error.
      Fix this by propagating the actual error code back.
      Acked-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSuresh Jayaraman <sjayaraman@suse.de>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      f0138a79
  5. 26 8月, 2010 1 次提交
  6. 25 8月, 2010 1 次提交
  7. 24 8月, 2010 2 次提交
  8. 21 8月, 2010 1 次提交
  9. 20 8月, 2010 1 次提交
  10. 19 8月, 2010 1 次提交
  11. 17 8月, 2010 2 次提交