linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix cuse ENOMEM ioctl breakage in 4.20.0
@ 2018-12-30  9:43 Andreas Steinmetz
  2019-01-14  9:58 ` Miklos Szeredi
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Steinmetz @ 2018-12-30  9:43 UTC (permalink / raw)
  To: linux-fsdevel

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

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@domdv.de

[-- Attachment #2: cuse-4.20.0.patch --]
[-- Type: text/x-patch, Size: 424 bytes --]

--- 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;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-08-03  6:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-30  9:43 [PATCH] Fix cuse ENOMEM ioctl breakage in 4.20.0 Andreas Steinmetz
2019-01-14  9:58 ` Miklos Szeredi
     [not found]   ` <388f911ccba16dee350bb2534b67d601b44f3a92.camel@domdv.de>
2019-05-28 13:12     ` Miklos Szeredi
2019-08-02  8:15       ` Greg Kroah-Hartman
2019-08-02 19:44         ` Miklos Szeredi
2019-08-03  6:47           ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).