Whamcloud - gitweb
LU-8733 gnilnd: Remove read capability of cksum_test procfile 55/23255/5
authorChris Horn <hornc@cray.com>
Wed, 19 Oct 2016 16:17:58 +0000 (11:17 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 28 Oct 2016 23:50:00 +0000 (23:50 +0000)
commit124af2d268b66f55dfefb8f4c7d5c95b4a42b1a7
tree99361e918ffbe845204b786c000a4e68689284ad
parent03a2459ed59ed61414ef6b221e777a3e221cbaef
LU-8733 gnilnd: Remove read capability of cksum_test procfile

When the old create proc interface was deprecated cksum_test was
updated  to use the new file operations table. Inadvertantly read
was left as a capability without actually defining a function
that the file would use when someone tried to read the file.
This causes a kernel crash when cksum_test is read, though it can
only be done by the root user.

The fix is to remove the .read op from the fops table for the
cksum_test proc entry

Test-Parameters: trivial
Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I406b076f1b66b6d991694c69a9b748ed42c09f39
Reviewed-on: http://review.whamcloud.com/23255
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/klnds/gnilnd/gnilnd_proc.c