FS#18548 - [samba] [smbclient] mount.cifs (samba 3.5.0) seg fault during mount
Attached to Project:
Arch Linux
Opened by Alexander Drozdov (adrozdov) - Wednesday, 03 March 2010, 16:08 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 18 March 2010, 07:39 GMT
Opened by Alexander Drozdov (adrozdov) - Wednesday, 03 March 2010, 16:08 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 18 March 2010, 07:39 GMT
|
Details
Description:
Missing ptr check in mount.cifs.c at line 1566, so on my systen withour ipv6 it segfault when I try to mount samba shares. I think that patch that I publish below should be included to build rule and pkg update will be required. Patch, that solve this issue is atteched to this report. Additional info: * package version(s): smbclient 3.5.0-1, kernel26 2.6.32.9-1, glibc 2.11.1-1 * config and/or log files etc: default configs Steps to reproduce: 1. disable ipv6 1.1. network without ipv6 hosts 2. run command similar to: sudo mount.cifs //GAZ/torrents /home/hatred/smb4k/GAZ/torrents -o uid=1000,gid=101,port=445,rw,file_mode=0644,dir_mode=0755,perm,nosetuids,noserverino,nomapchars,iocharset=utf8,domain=GAZHOME,ip=192.168.1.2,guest Upstream bugreport: https://bugzilla.samba.org/show_bug.cgi?id=7205 |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Thursday, 18 March 2010, 07:39 GMT
Reason for closing: Fixed
Additional comments about closing: added to 3.5.1-1
Thursday, 18 March 2010, 07:39 GMT
Reason for closing: Fixed
Additional comments about closing: added to 3.5.1-1
Currently I was tested patched version of samba on up-to-date Arch machines on i686 and x86_64 archs.
in fstab I have
//d09l2163/1 /mnt/vinnikov cifs guest,user=Guest,ip=10.9.121.63,users,iocharset=utf8,noauto,file_mode=0666 0 0
"mount /mnt/vinnikov" results in a moint.cifs segfault. Will search now how to apply this patch and compile a samba
1. from root do 'abs'
2. cp -a /var/abs/extra/samba /tmp/
3. download and save patch to /tmp/samba/
4. edit PKGBUILD and add next line before ./configure (with brackets!)
(cd ../client/; patch -p0 < ${startdir}/mount.cifs.segfault.fix.diff)
5. save and exit
6. do 'makepkg'
7. install packge 'smbclient' with 'pacman'
/usr/sbin/mount.cifs is present... I think, that this is bug - duplicate of programms. If maintainer thinks that this is issue too new bug report is needed.