Home
last modified time | relevance | path

Searched hist:a679a61520d8a7b0211a1da990404daf5cc80b72 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/fuse/
H A Dioctl.cdiff a679a61520d8a7b0211a1da990404daf5cc80b72 Fri Feb 18 04:47:51 CST 2022 Miklos Szeredi <mszeredi@redhat.com> fuse: fix fileattr op failure

The fileattr API conversion broke lsattr on ntfs3g.

Previously the ioctl(... FS_IOC_GETFLAGS) returned an EINVAL error, but
after the conversion the error returned by the fuse filesystem was not
propagated back to the ioctl() system call, resulting in success being
returned with bogus values.

Fix by checking for outarg.result in fuse_priv_ioctl(), just as generic
ioctl code does.

Reported-by: Jean-Pierre André <jean-pierre.andre@wanadoo.fr>
Fixes: 72227eac177d ("fuse: convert to fileattr")
Cc: <stable@vger.kernel.org> # v5.13
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>