linux/drivers/infiniband/hw/cxgb4
Dan Carpenter ccc04cdd55 RDMA/cxgb4: Add a sanity check in process_work()
The story is that Smatch marks skb->data as untrusted so it generates
a warning message here:

    drivers/infiniband/hw/cxgb4/cm.c:4100 process_work()
    error: buffer overflow 'work_handlers' 241 <= 255

In other places which handle this such as t4_uld_rx_handler() there is
some checking to make sure that the function pointer is not NULL.  I
have added bounds checking and a check for NULL here as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2017-12-13 11:00:13 -07:00
..
cm.c RDMA/cxgb4: Add a sanity check in process_work() 2017-12-13 11:00:13 -07:00
cq.c iw_cxgb4: remove BUG_ON() usage. 2017-11-13 15:01:25 -05:00
device.c iw_cxgb4: make pointer reg_workq static 2017-12-13 11:00:13 -07:00
ev.c iw_cxgb4: only call the cq comp_handler when the cq is armed 2017-11-13 16:59:22 -05:00
id_table.c iw_cxgb4: remove BUG_ON() usage. 2017-11-13 15:01:25 -05:00
iw_cxgb4.h infiniband: cxgb4: use ktime_get for timestamps 2017-12-13 11:00:13 -07:00
Kconfig IB/{cxgb3,cxgb4}: Remove unneeded config dependencies 2017-09-27 08:54:19 -04:00
Makefile libcxgb,iw_cxgb4,cxgbit: add cxgb_get_4tuple() 2016-09-15 20:49:19 -04:00
mem.c iw_cxgb4: add referencing to wait objects 2017-09-29 11:46:41 -04:00
provider.c iw_cxgb4: Fix possible circular dependency locking warning 2017-11-13 16:59:22 -05:00
qp.c infiniband: cxgb4: use ktime_get for timestamps 2017-12-13 11:00:13 -07:00
resource.c iw_cxgb4: Remove __func__ parameter from pr_debug() 2017-09-27 10:13:14 -04:00
t4.h infiniband: cxgb4: use ktime_get for timestamps 2017-12-13 11:00:13 -07:00
t4fw_ri_api.h RDMA/cxgb4: Annotate r2 and stag as __be32 2017-11-10 13:04:09 -05:00