linux_dsm_epyc7002/drivers/infiniband
Doug Ledford 34d65cd837 RDMA/netlink: Audit policy settings for netlink attributes
For all string attributes for which we don't currently accept the element
as input, we only use it as output, set the string length to
RDMA_NLDEV_ATTR_EMPTY_STRING which is defined as 1.  That way we will only
accept a null string for that element.  This will prevent someone from
writing a new input routine that uses the element without also updating
the policy to have a valid value.

Also while there, make sure the existing entries that are valid have the
correct policy, if not, correct the policy.  Remove unnecessary checks
for nla_strlcpy() overflow once the policy has been set correctly.

Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-06-25 16:26:54 -03:00
..
core RDMA/netlink: Audit policy settings for netlink attributes 2019-06-25 16:26:54 -03:00
hw RDMA/hns: Cleanup unnecessary exported symbols 2019-06-25 14:48:44 -03:00
sw IB/{rdmavt, qib, hfi1}: Convert to new completion API 2019-06-20 22:35:09 -04:00
ulp docs: infiniband: convert docs to ReST and rename to *.rst 2019-06-25 10:23:09 -03:00
Kconfig rdma: Remove nes 2019-06-13 09:59:49 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00