Skip to content

RDMA fixes 2018-06-24

Leon Romanovsky linux-rdma lkml netdev 1 version Applied

Status from this message: I applied these two to for-rc

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 23 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/12RDMA/uverbs: Protect from attempts to create flows on unsupported QPdrivers/infiniband/core/uverbs_cmd.c+8 -21 reply
2/12RDMA/uverbs: Check existence of create_flow callbackdrivers/infiniband/core/uverbs_cmd.c+5 -00 replies
3/12RDMA/verbs: Drop kernel variant of create_flowdrivers/infiniband/core/verbs.c include/rdma/ib_verbs.h+0 -190 replies
4/12RDMA/verbs: Drop kernel variant of destroy_flowdrivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/uverbs_std_types.c drivers/infiniband/core/verbs.c +1 more+8 -180 replies
5/12net/mlx5: Rate limit errors in command interfacedrivers/net/ethernet/mellanox/mlx5/core/cmd.c drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h+10 -71 reply
6/12RDMA/uverbs: Don't overwrite NULL pointer with ZERO_SIZE_PTRdrivers/infiniband/core/uverbs_cmd.c+4 -12 replies
7/12RDMA/umem: Don't check for negative return value of dma_map_sg_attrs()drivers/infiniband/core/umem.c+1 -10 replies
8/12overflow.h: Add arithmetic shift helperinclude/linux/overflow.h+23 -012 replies
9/12RDMA/mlx5: Fix shift overflow in mlx5_ib_create_wqdrivers/infiniband/hw/mlx5/qp.c+5 -13 replies
10/12RDMA/mlx5: Reuse existed shift_overlow helperdrivers/infiniband/hw/mlx5/qp.c+7 -30 replies
11/12RDMA/uverbs: Remove redundant checkdrivers/infiniband/core/uverbs_cmd.c+0 -30 replies
12/12RDMA/uverbs: Fix slab-out-of-bounds in ib_uverbs_ex_create_flowdrivers/infiniband/core/uverbs_cmd.c+12 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH rdma-next 00/12] RDMA fixes 2018-06-24

From: Leon Romanovsky <[email protected]>

Hi,

This is bunch of patches trigged by running syzkaller internally.

I'm sending them based on rdma-next mainly for two reasons:
1, Most of the patches fix the old issues and it doesn't matter when they will hit the Linus's tree: now or later in a couple of weeks during merge window.
2. They interleave with code cleanup, mlx5-next patches and Michael's feedback on flow counters series.

Thanks

Leon Romanovsky (12):
RDMA/uverbs: Protect from attempts to create flows on unsupported QP RDMA/uverbs: Check existence of create_flow callback RDMA/verbs: Drop kernel variant of create_flow
RDMA/verbs: Drop kernel variant of destroy_flow
net/mlx5: Rate limit errors in command interface RDMA/uverbs: Don't overwrite NULL pointer with ZERO_SIZE_PTR RDMA/umem: Don't check for negative return value of dma_map_sg_attrs() overflow.h: Add arithmetic shift helper
RDMA/mlx5: Fix shift overflow in mlx5_ib_create_wq RDMA/mlx5: Reuse existed shift_overlow helper
RDMA/uverbs: Remove redundant check
RDMA/uverbs: Fix slab-out-of-bounds in ib_uverbs_ex_create_flow

 drivers/infiniband/core/umem.c                     |  2 +-
 drivers/infiniband/core/uverbs_cmd.c               | 49 ++++++++++++++--------
 drivers/infiniband/core/uverbs_std_types.c         |  9 ++--
 drivers/infiniband/core/verbs.c                    | 29 -------------
 drivers/infiniband/hw/mlx5/qp.c                    | 16 +++++--
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c      | 11 ++---
 .../net/ethernet/mellanox/mlx5/core/mlx5_core.h    |  6 +++
 include/linux/overflow.h                           | 23 ++++++++++
 include/rdma/ib_verbs.h                            |  4 --
 9 files changed, 83 insertions(+), 66 deletions(-)