Glusterfs Client 3.0.5 crashes with buffer overflow

Bug #785158 reported by Lee Maguire
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
glusterfs
Unknown
Unknown
glusterfs (Ubuntu)
Fix Released
Undecided
Unassigned
Natty
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: glusterfs-client

After upgrading glusterfs-client from maverick (3.0.4) to natty (3.0.5) all glusterfs volumes failed to mount as the clients immediately dump core.

Manually reverting to 3.0.4 allows the volumes to be mounted.

root@test16:/tmp# cat test.vol

volume default
    type protocol/client
    option transport-type tcp
    option remote-host 192.168.2.15
    option transport.address-family inet
    option transport.socket.nodelay on
    option remote-port 6996
    option remote-subvolume brick-1
end-volume

root@test16:/tmp# apt-get install libglusterfs0=3.0.4-1 glusterfs-client=3.0.4-1
[...]
root@test16:/tmp# glusterfs -f /tmp/test.vol /mnt
root@test16:/tmp# touch /mnt/foo
root@test16:/tmp# umount /mnt
root@test16:/tmp# apt-get install libglusterfs0=3.0.5-1 glusterfs-client=3.0.5-1
[...]
root@test16:/tmp# glusterfs -f /tmp/test.vol /mnt
root@test16:/tmp# touch /mnt/foo
touch: cannot touch `/mnt/foo': Transport endpoint is not connected
root@test16:/tmp# umount /mnt

(Note: the remote glusterfs server is running 3.0.5)

Ubuntu 11.04

Revision history for this message
Lee Maguire (leemaguire) wrote :
Revision history for this message
Tais P. Hansen (taisph) wrote :

This seems to be caused by compiling glusterfs with -D_FORTIFY_SOURCE=2, which also seems to be the default in gcc. I rebuilt gluster-client with -D_FORTIFY_SOURCE=1 and that "fixes" the problem.

Details: http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html

Quick workaround:

mkdir glusterfs
cd glusterfs
apt-get source glusterfs-client
sudo apt-get build-dep glusterfs-client
cd glusterfs-3.0.5
DEB_CFLAGS_APPEND="-D_FORTIFY_SOURCE=1" debuild -us -uc
cd ..
sudo dpkg --install glusterfs-client_3.0.5-1_*.deb
sudo dpkg --install libglusterfs0_3.0.5-1_*.deb

Revision history for this message
idistech (gary-idistech) wrote :

I had a number of problems with Gluster 3.0.5 on Ubuntu 11.04
- Clients wouldnt connect
- Server(s) wouldnt replicate.

The above fix and new packages once deployed to clients and servers started the service working perfectly..

Many thanks...

Revision history for this message
gdahlman (gdahlman) wrote :

It would be nice if we could get an updated package in the repos for this.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

This only affects Natty, as it got fixed in 3.1.x.

Changed in glusterfs (Ubuntu):
status: New → Fix Released
Changed in glusterfs (Ubuntu Natty):
status: New → Confirmed
Leonardo Borda (lborda)
summary: - Client 3.0.5 crashes with buffer overflow
+ Glusterfs Client 3.0.5 crashes with buffer overflow
Revision history for this message
Rolf Leggewie (r0lf) wrote :

natty has seen the end of its life and is no longer receiving any updates. Marking the natty task for this ticket as "Won't Fix".

Changed in glusterfs (Ubuntu Natty):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.