summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorKamenee Arumugame <kamenee.arumugam@intel.com>2017-08-13 08:08:46 -0700
committerDoug Ledford <dledford@redhat.com>2017-08-22 14:22:37 -0400
commitec0d8b8a63ee760bca1bccc6769d6210e05ded29 (patch)
tree29e222aa1b4d09dedeea1692298674285d91dfec /include/rdma
parent76ae6222a4a37098610c0601a814c9caba94ba0b (diff)
downloadlinux-stable-ec0d8b8a63ee760bca1bccc6769d6210e05ded29.tar.gz
linux-stable-ec0d8b8a63ee760bca1bccc6769d6210e05ded29.tar.bz2
linux-stable-ec0d8b8a63ee760bca1bccc6769d6210e05ded29.zip
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>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/rdma_vt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/rdma_vt.h b/include/rdma/rdma_vt.h
index 1d94f3c264ba..1ba84a78f1c5 100644
--- a/include/rdma/rdma_vt.h
+++ b/include/rdma/rdma_vt.h
@@ -64,7 +64,7 @@
#define RVT_MAX_PKEY_VALUES 16
#define RVT_MAX_TRAP_LEN 100 /* Limit pending trap list */
-#define RVT_MAX_TRAP_LISTS ((IB_NOTICE_TYPE_INFO & 0x0F) + 1)
+#define RVT_MAX_TRAP_LISTS 5 /*((IB_NOTICE_TYPE_INFO & 0x0F) + 1)*/
#define RVT_TRAP_TIMEOUT 4096 /* 4.096 usec */
struct trap_list {