]> Pileus Git - ~andy/linux/commit
IB/core: Better checking of userspace values for receive flow steering
authorMatan Barak <matanb@mellanox.com>
Sun, 1 Sep 2013 15:39:52 +0000 (18:39 +0300)
committerRoland Dreier <roland@purestorage.com>
Mon, 2 Sep 2013 18:12:48 +0000 (11:12 -0700)
commit22878dbc9173a7f0322dd697b1b5b49a83a1d4d5
treecfb2e55461d5893c65de39e3472e8f78264273c4
parentf77c0162a339400ad16f657603fdc3bf11654fd3
IB/core: Better checking of userspace values for receive flow steering

  - Don't allow unsupported comp_mask values, user should check
    ibv_query_device to know which features are supported.
  - Add a check in ib_uverbs_create_flow() to verify the size passed
    from the user space.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/uverbs_cmd.c
include/rdma/ib_verbs.h