]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Stricter bounds checking of MAD trap index
authorKamenee Arumugame <kamenee.arumugam@intel.com>
Sun, 13 Aug 2017 15:08:46 +0000 (08:08 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 18:22:37 +0000 (14:22 -0400)
commit920dd3aa2c192b66745008157979f675782fa96d
tree29e222aa1b4d09dedeea1692298674285d91dfec
parentd5393556308d797bca6ea4e29ca024bb43443e33
IB/hfi1: Stricter bounds checking of MAD trap index

The macro size is valid. This change makes it less ambiguous.
Bounds check trap type for better security.

Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Kamenee Arumugam <kamenee.arumugam@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/mad.c
include/rdma/rdma_vt.h