[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#292651: kernel-image-2.6.8-2-k7: timeout in zero-length accesses to samba shares, dmesg: "smb_trans2: invalid data, [..]"



Package: kernel-image-2.6.8-2-k7
Version: 2.6.8-12
Severity: grave
Justification: causes non-serious data loss


Zero-length accesses to Samba shares return errors after 30s timeout, while
the requested action seems to happen:

thiemo@elwood:/mnt/thiemo$ l test
-rw-r--r--  1 thiemo users 0 Jan 28 15:30 test
thiemo@elwood:/mnt/thiemo$ chmod a-r test
chmod: changing permissions of `test': Input/output error
thiemo@elwood:/mnt/thiemo$ l test
--w-------  1 thiemo users 0 Jan 28 15:30 test
thiemo@elwood:/mnt/thiemo$ touch test
touch: setting times of `test': Input/output error
thiemo@elwood:/mnt/thiemo$ l test
--w-------  1 thiemo users 0 Jan 28 16:01 test

The kernel log is as follows:

smb_trans2: invalid data, disp=0, cnt=0, tot=0, ofs=0
smb_add_request: request [c2354ec0, mid=180] timed out!

What makes this a grave severity is that many editors seem to choke on
the errors and cannot save to smb-mounted shares.  This is true at least
for OpenOffice.

Luckily this problem seems to be well-understood:
citing Mike Lee:
http://lists.samba.org/archive/samba/2004-December/097411.html
"It seems that some CIFS code got trampled on during a smb kernel patch.
I believe this will be fixed in the 2.6.10 kernel (pretty soon I hope).
For now, you can add the following entry to your smb.conf file:
"unix extensions = no"

citing Chuck Ebbert:
http://www.ussg.iu.edu/hypermail/linux/kernel/0411.2/2326.html
"The SMB patch in 2.6.9-ac10 is broken. When a reply is received and it
contains no data (only parms), the data_offset is zero. Since no data
will be copied, zero offset is perfectly valid.
[..]
With the original patch very bad things happened, like trying to save
files from a text editor truncated them to 0 bytes, followed by editor
freezing for many seconds then asking for a new name to save the file
as.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages kernel-image-2.6.8-2-k7 depends on:
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities
ii  initrd-tools                  0.1.77     tools to create initrd image for p
ii  module-init-tools             3.1-rel-2  tools for managing Linux kernel mo

-- no debconf information



Reply to: