linux/drivers/infiniband/sw/siw
Jason Gunthorpe 1c407cb5d7 RDMA: Check flags during create_cq
Each driver should check that the CQ attrs is supported. Unfortuantely
when flags was added to the CQ attrs the drivers were not updated,
uverbs_ex_cmd_mask was used to block it. This was missed when create CQ
was converted to ioctl, so non-zero flags could have been passed into
drivers.

Check that flags is zero in all drivers that don't use it, remove
IB_USER_VERBS_EX_CMD_CREATE_CQ from uverbs_ex_cmd_mask.

Fixes: 41b2a71fc8 ("IB/uverbs: Move ioctl path of create_cq and destroy_cq to a new file")
Link: https://lore.kernel.org/r/7-v1-caa70ba3d1ab+1436e-ucmd_mask_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-10-26 19:27:59 -03:00
..
iwarp.h
Kconfig RDMA/siw: Change CQ flags from 64->32 bits 2019-08-13 12:22:06 -04:00
Makefile
siw.h RDMA: Remove 'max_fmr' 2020-06-02 20:32:54 -03:00
siw_cm.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
siw_cm.h
siw_cq.c RDMA/siw: Simplify QP representation 2020-01-03 15:54:09 -04:00
siw_main.c RDMA: Move more uverbs_cmd_mask settings to the core 2020-10-26 19:27:58 -03:00
siw_mem.c mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
siw_mem.h RDMA/siw: Fix 64/32bit pointer inconsistency 2019-08-23 12:08:27 -04:00
siw_qp.c RDMA/siw: Simplify QP representation 2020-01-03 15:54:09 -04:00
siw_qp_rx.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
siw_qp_tx.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
siw_verbs.c RDMA: Check flags during create_cq 2020-10-26 19:27:59 -03:00
siw_verbs.h RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00