[PATCH] Fix cuse ENOMEM ioctl breakage in 4.20.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This must have happened somewhen after 4.17.2 and I did find it in
4.20.0:

cuse_process_init_reply() doesn't initialize fc->max_pages and thus all
cuse bases ioctls fail with ENOMEM.

Patch which fixes this is attached.
-- 
Andreas Steinmetz                       SPAMmers use robotrap@xxxxxxxx
--- linux.orig/fs/fuse/cuse.c	2018-12-30 09:52:47.479717022 +0100
+++ linux/fuse/cuse.c	2018-12-30 09:53:22.944128852 +0100
@@ -324,6 +324,7 @@
 	fc->minor = arg->minor;
 	fc->max_read = max_t(unsigned, arg->max_read, 4096);
 	fc->max_write = max_t(unsigned, arg->max_write, 4096);
+	fc->max_pages = FUSE_DEFAULT_MAX_PAGES_PER_REQ;
 
 	/* parse init reply */
 	cc->unrestricted_ioctl = arg->flags & CUSE_UNRESTRICTED_IOCTL;

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux