Samba: "kernel BUG at fs/cifs/cifs_dfs_ref.c:274!"
Posted: Mon Oct 11, 2010 4:01 pm
[PROBLEM]
Accessing a mounted samba share caused segfaults and left the following errormessage in the kernel logs (dmesg):
This happened on Debian Lenny (kernel 2.6.26, Samba 2:3.2.5-4lenny11)
[SOLUTION]
The affected, problematic Samba share was a DFS, and according to kernel-changelogs, the above problem should be fixed in kernel 2.6.29:
(IMPORTANT: You have to select the right package for your system architecture (i586, amd64, i686, ...)
Now reboot and make sure you're running the new kernel, by typing:
The output should look like this:
Accessing a mounted samba share caused segfaults and left the following errormessage in the kernel logs (dmesg):
Mounting other Windows shares using Samba was working flawlessly, though.kernel BUG at fs/cifs/cifs_dfs_ref.c:274!
This happened on Debian Lenny (kernel 2.6.26, Samba 2:3.2.5-4lenny11)
[SOLUTION]
The affected, problematic Samba share was a DFS, and according to kernel-changelogs, the above problem should be fixed in kernel 2.6.29:
In order to upgrade Debian Lenny's kernel from 2.6.26 to >= 2.6.29, you can use the Debian backports. Follow the instructions in the Debian-backports-wiki and then install the new kernel:commit e4cce94c9c8797b08faf6a79396df4d175e377fa
Author: Igor Mammedov <niallain@gmail.com>
Date: Tue Feb 10 14:10:26 2009 +0300
[CIFS] Prevent OOPs when mounting with remote prefixpath.
Fixes OOPs with message 'kernel BUG at fs/cifs/cifs_dfs_ref.c:274!'.
Checks if the prefixpath in an accesible while we are still in cifs_mount
and fails with reporting a error if we can't access the prefixpath
Should fix Samba bugs 6086 and 5861 and kernel bug 12192
Code: Select all
sudo apt-get -t lenny-backports install linux-image-2.6.32-bpo.5-686
Now reboot and make sure you're running the new kernel, by typing:
Code: Select all
uname -a
Linux ferry-1 2.6.32-bpo.5-686 #1 SMP Sun Sep 19 21:11:32 UTC 2010 i686 GNU/Linux