IB/hfi: Protect against writable mmap
authorIra Weiny <ira.weiny@intel.com>
Sun, 9 Apr 2017 17:17:24 +0000 (10:17 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 17:56:23 +0000 (13:56 -0400)
commit12220267645cb7d1f3f699218e0098629e932e1f
tree2b3bd6922c50637dd5e0d62248fae4b4f795f152
parentee495ada5c5681e66c20e9927fa35252bdf7fba0
IB/hfi: Protect against writable mmap

The device/port status is not intended to be changed from user space.
Prevent a user from mapping them as write or execute.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/file_ops.c