]> 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)
commitf03d556611b3658e71796df6eb346908a8507340
tree29e222aa1b4d09dedeea1692298674285d91dfec
parentc7c1ecbbab54a2b853bcb9971382c9771ab7de44
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