]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
orangefs: fix buffer size mis-match between kernel space and user space.
authorMike Marshall <hubcap@omnibond.com>
Tue, 7 Feb 2017 17:41:02 +0000 (12:41 -0500)
committerMike Marshall <hubcap@omnibond.com>
Thu, 9 Feb 2017 19:41:06 +0000 (14:41 -0500)
The deamon through which the kernel module communicates with the userspace
part of Orangefs, the "client-core", sends initialization data to the
kernel module with ioctl. The initialization data was built by the
client-core in a 2k buffer and copy_from_user'd into a 1k buffer
in the kernel module. When more than 1k of initialization data needed
to be sent, some was lost, reducing the usability of the control by which
debug levels are set. This patch sets the kernel side buffer to 2K to
match the userspace side...

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-dev-proto.h

index a3d84ffee9050a33532f3927ce9750937f27e22f..f380f9ed1b286a7eedfb41fa5f7f8f9259abfdf3 100644 (file)
@@ -50,8 +50,7 @@
  * Misc constants. Please retain them as multiples of 8!
  * Otherwise 32-64 bit interactions will be messed up :)
  */
-#define ORANGEFS_MAX_DEBUG_STRING_LEN  0x00000400
-#define ORANGEFS_MAX_DEBUG_ARRAY_LEN   0x00000800
+#define ORANGEFS_MAX_DEBUG_STRING_LEN  0x00000800
 
 /*
  * The maximum number of directory entries in a single request is 96.