linux-uconsole/fs/fuse
Miklos Szeredi 9f68de59cb fuse: fix ioctl when server is 32bit
commit d9d318d39d upstream.

If a 32bit CUSE server is run on 64bit this results in EIO being
returned to the caller.

The reason is that FUSE_IOCTL_RETRY reply was defined to use 'struct
iovec', which is different on 32bit and 64bit archs.

Work around this by looking at the size of the reply to determine
which struct was used.  This is only needed if CONFIG_COMPAT is
defined.

A more permanent fix for the interface will be to use the same struct
on both 32bit and 64bit.

Reported-by: "ccmail111" <ccmail111@yahoo.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-07 14:43:02 -08:00
..
control.c fuse: add fusectl interface to max_background 2009-09-16 14:15:29 +02:00
cuse.c CUSE: implement CUSE - Character device in Userspace 2009-06-09 11:24:11 +02:00
dev.c fuse: flush background queue on connection close 2010-09-20 13:17:46 -07:00
dir.c fuse: reject O_DIRECT flag also in fuse_create 2009-11-27 16:37:13 +01:00
file.c fuse: fix ioctl when server is 32bit 2011-01-07 14:43:02 -08:00
fuse_i.h truncate: use new helpers 2009-09-24 08:41:47 -04:00
inode.c truncate: use new helpers 2009-09-24 08:41:47 -04:00
Kconfig fs/Kconfig: move fuse out 2009-01-22 13:15:55 +03:00
Makefile CUSE: implement CUSE - Character device in Userspace 2009-06-09 11:24:11 +02:00