From: ccmail111 <ccm...@ya...> - 2010-11-16 22:53:35
|
Shouldn't fuse_do_ioctl() use: struct compat_iovec *tmp_iov ; in 32 bit cuse (unrestricted ioctl ) on FUSE 64 bit kernel case ?And usestruct iovec only in other cases ? --- On Tue, 11/16/10, ccmail111 <ccm...@ya...> wrote: From: ccmail111 <ccm...@ya...> Subject: Re: [fuse-devel] 32 bit app running on 64 bit kernel -ioctl. To: "Miklos Szeredi" <mi...@sz...> Cc: fus...@li..., mi...@sz... Date: Tuesday, November 16, 2010, 1:24 PM Yes Miklos, FUSE_IOCTL_UNRESTRICTED - ioctl does not work in 32 bit cuse server with 64 bit FUSE kernel module. long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg, unsigned int flags) --- On Tue, 11/16/10, Miklos Szeredi <mi...@sz...> wrote: From: Miklos Szeredi <mi...@sz...> Subject: Re: [fuse-devel] 32 bit app running on 64 bit kernel -ioctl. To: "ccmail111" <ccm...@ya...> Cc: fus...@li..., mi...@sz... Date: Tuesday, November 16, 2010, 5:01 AM On Mon, 15 Nov 2010, ccmail111 wrote: > Looking at 2.6.36-rc7 kernel module for FUSE, I donot see any patch > or fix for below.Apps servers which are 32 bit - does not work on > 64-bit FUSE kernel module for ioctl - unrestricted calls ! Please provide more info. Do you mean FUSE_IOCTL_UNRESTRICTED? Are you implementing a CUSE server? Where exactly do you expect FUSE_IOCTL_COMPAT to be present? Thanks, Miklos > > > Hi, > I see an issue with ioctl - unrestricted call in FUSE. > In 32 bit case I see: > static long fuse_file_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg){ return fuse_file_ioctl_common(file, cmd, arg, FUSE_IOCTL_COMPAT);} > > However, in routine, FUSE_IOCTL_COMPAT is not being used at all, thus causing issues ! > Any suggestions ? |