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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Apr 2017 05:11:47 +0000 (07:11 +0200)
commitf7513c9165bfe9671d83b940780602980e4ac913
tree2fc5b9273b353f80e0617eab8331db8994640249
parent1b9921866dc5b7d1a1bfdc6236e671ca59d61623
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>
fs/orangefs/orangefs-dev-proto.h