summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Marshall <hubcap@omnibond.com>2017-02-07 12:41:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-18 06:59:34 +0200
commitf536c20584206c038454ea26ca14b6315b87c5fe (patch)
treec298873d2de77ed150cfd7126bbdb6a29701d972
parentf20e76a469c15e0188b4a2b57ced0f12a9feadc6 (diff)
downloadlinux-stable-f536c20584206c038454ea26ca14b6315b87c5fe.tar.gz
linux-stable-f536c20584206c038454ea26ca14b6315b87c5fe.tar.bz2
linux-stable-f536c20584206c038454ea26ca14b6315b87c5fe.zip
orangefs: fix buffer size mis-match between kernel space and user space.
commit eb68d0324dc4d88ab0d6159bdcd98c247a3a8954 upstream. 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> Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--fs/orangefs/orangefs-dev-proto.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/orangefs/orangefs-dev-proto.h b/fs/orangefs/orangefs-dev-proto.h
index a3d84ffee905..f380f9ed1b28 100644
--- a/fs/orangefs/orangefs-dev-proto.h
+++ b/fs/orangefs/orangefs-dev-proto.h
@@ -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.