Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: Andrew Martin <amartin-AQeFf1F/bRxBDgjK7y7TUQ@public.gmane.org>
To: Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	samba-technical
	<samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org>
Subject: Re: "CIFS VFS: SMB response too short (9 bytes)" when copying data from CIFS mount
Date: Wed, 30 Sep 2015 17:03:31 -0500 (CDT)	[thread overview]
Message-ID: <944083651.87203.1443650611671.JavaMail.zimbra@xes-inc.com> (raw)
In-Reply-To: <CAH2r5ms0bbkhy_D4tRXqwN2nH5vyBH9Q0OrCTV7cm93=P3fgRw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>



----- Original Message -----
> From: "Steve French" <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> To: "Andrew Martin" <amartin-AQeFf1F/bRxBDgjK7y7TUQ@public.gmane.org>
> Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "samba-technical" <samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org>
> Sent: Tuesday, September 29, 2015 11:21:25 AM
> Subject: Re: "CIFS VFS: SMB response too short (9 bytes)" when copying data from CIFS mount
> 
> It sounds pretty straightforward if both wireshark and the Linux
> kernel client agree and say that this old Samba server sent a
> malformed response (presumably a CIFS ReadX response).  Note that this
> is an old version of Samba server - Samba 3.6 was released more than 4
> years ago.
> 
> Try turning off unix extensions on the mount and/or setting rsize
> smaller (which might change the behavior of the Samba server read
> response).  So try
> 1) adding something like "rsize=60000" to the options you pass to the
> mount command
> 2) and as a different experiment try mounting with "nounix" to disable
> CIFS unix extensions which would also have the affect of reducing the
> maximum read size
> 3) another option to try is to set max protocols in the server's
> smb.conf to enable SMB2.0 support and try "vers=2.0" on mount
> 
> My guess is that the bug is related to large CIFS read processing in
> this old version of Samba.
> 
> I also want to --- strongly --- encourage upgrade from Samba 3.6.3 to
> at least Samba 4.1 (I use Samba 4.3).  The additional security
> features and capabilities which SMB2.1 and SMB3 bring (not just the
> new protocol features and improved performance) are VERY helpful and
> very important for security.
> 
Steve,

It looks like using either "nounix" or "rsize=60000" fixes the read error!
I will also look into upgrading to Samba 4.1 ASAP - I would like to take
advantage of the security and performance improvement of a more modern
SMB protocol. Thanks again!

Andrew

      parent reply	other threads:[~2015-09-30 22:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1936200018.81178.1443479619664.JavaMail.zimbra@xes-inc.com>
     [not found] ` <1936200018.81178.1443479619664.JavaMail.zimbra-AQeFf1F/bRxBDgjK7y7TUQ@public.gmane.org>
2015-09-28 22:39   ` "CIFS VFS: SMB response too short (9 bytes)" when copying data from CIFS mount Andrew Martin
     [not found]     ` <1731839987.81462.1443479968995.JavaMail.zimbra-AQeFf1F/bRxBDgjK7y7TUQ@public.gmane.org>
2015-09-28 23:32       ` Steve French
     [not found]         ` <CAH2r5mvsZJ3Nn45Fqjhc8nd-PZZ_KYJxsPg19v7DCpkuMb1OLg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-29 16:04           ` Andrew Martin
     [not found]             ` <1744736878.52548.1443542655076.JavaMail.zimbra-AQeFf1F/bRxBDgjK7y7TUQ@public.gmane.org>
2015-09-29 16:21               ` Steve French
     [not found]                 ` <CAH2r5ms0bbkhy_D4tRXqwN2nH5vyBH9Q0OrCTV7cm93=P3fgRw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-30 22:03                   ` Andrew Martin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=944083651.87203.1443650611671.JavaMail.zimbra@xes-inc.com \
    --to=amartin-aqeff1f/brxbdgjk7y7tuq@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org \
    --cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox