diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2012-09-12 11:47:13 -0400 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-09-13 11:39:35 -0700 |
commit | 2564ab2bc8cd3aa2561e091f72278e480fcef33d (patch) | |
tree | 6fca0818e5eea1c1f6a128b6b3d5abeb94a70328 /xlators/features/mac-compat/src/mac-compat.c | |
parent | ab039cc10f8493c6964ddc5b1510219708a31c60 (diff) |
glusterfs SEGV on Fedora 17 from UFO fallocate(2) call
An upload of a file will cause the volume's glusterfs to SEGV
when it fields a FUSE_FALLOCATE op. Swift inspects libc to determine
if there is a symbol for fallocate(2) and if so will use it. And
while the libc in RHEL 6 does have fallocate(2), the version of
fuse in RHEL 6 does not support fallocate, and things are handled
gracefully elsewhere (the kernel perhaps?)
N.B. fallocate was added to version 7.19 of fuse. Fedora 17 and
later (and maybe earlier too) has 7.19. RHEL 6 still has 7.13.
Glusterfs uses the 7.13 version <linux/fuse.h>
(in contrib/fuse-include/fuse_kernel.h)
Thus on Fedora 17, with both fallocate(2) in libc and fallocate
support in fuse, the fallocate invocation is dispatched to glusterfs,
but the dispatch table (fuse_std_ops in
xlators/mount/fuse/src/fuse-bridge.c) is too short for one thing;
the fallocate opcode (43) indexes beyond the end of the table, and
even when that doesn't directly cause a SEGV, the NULL pointer at
that location does cause a SEGV when attempting to call the function
through the pointer.
BUG: 856704
Change-Id: I148acbf1265f01a15bd158f227c8a7cb9365606e
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/3938
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/features/mac-compat/src/mac-compat.c')
0 files changed, 0 insertions, 0 deletions