Skip to content

fuse: fix regression in fuse_get_user_pages()

Maxim Patlasov linux-fsdevel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vfs: switch iov_iter_get_pages() to passing maximal sizefs/direct-io.c fs/fuse/file.c include/linux/uio.h +1 more+13 -120 replies
2/2fuse: fuse_get_user_pages(): do not pack more data than requestedfs/fuse/file.c+8 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fuse: fix regression in fuse_get_user_pages()

Hi,

The patchset fixes a regression introduced by the following commits:

c7f3888ad7f0 ("switch iov_iter_get_pages() to passing maximal number of pages") c9c37e2e6378 ("fuse: switch to iov_iter_get_pages()")

The regression manifests itslef like this (thanks to Werner Baumann for reporting):

Quoted 8 lines

davfs2 uses the fuse kernel module directly (not using the fuse userspace library). A user of davfs2 reported this problem
(http://savannah.nongnu.org/support/?108640):

dd if=/dev/zero of=/mnt/owncloud/test.txt bs=20416 count=1 works fine, but
dd if=/dev/zero of=/mnt/owncloud/test.txt bs=20417 count=1 fails.

Thanks,
Maxim

---

Maxim Patlasov (2):
vfs: switch iov_iter_get_pages() to passing maximal size
fuse: fuse_get_user_pages(): do not pack more data than requested

 fs/direct-io.c      |    2 +-
 fs/fuse/file.c      |   13 +++++++++----
 include/linux/uio.h |    2 +-
 mm/iov_iter.c       |   17 +++++++++--------
 4 files changed, 20 insertions(+), 14 deletions(-)
Signature · 7 lines
Signature

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>