]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit47fed8664f06d018ac2cef8b267c4c5cc2008157
tree893c79b5a9d13c1642dc201c26cdf5f3bc1f458f
parentd0e541ef8920e045292938729f6e188ff5c0e1c2
orangefs: fix buffer size mis-match between kernel space and user space.

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