summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Srouji <edwards@nvidia.com>2023-06-05 13:33:24 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-21 15:39:57 +0200
commit22cd0db295f71b75a46319b15c4ba932465258bc (patch)
treebcf7b20f47e4dcf11505e6c550cea9208bf4a122 /include
parent02dfdc07159920b46891bf381294c7fbcfcff090 (diff)
RDMA/uverbs: Restrict usage of privileged QKEYs
commit 0cadb4db79e1d9eea66711c4031e435c2191907e upstream. According to the IB specification rel-1.6, section 3.5.3: "QKEYs with the most significant bit set are considered controlled QKEYs, and a HCA does not allow a consumer to arbitrarily specify a controlled QKEY." Thus, block non-privileged users from setting such a QKEY. Cc: stable@vger.kernel.org Fixes: bc38a6abdd5a ("[PATCH] IB uverbs: core implementation") Signed-off-by: Edward Srouji <edwards@nvidia.com> Link: https://lore.kernel.org/r/c00c809ddafaaf87d6f6cb827978670989a511b3.1685960567.git.leon@kernel.org Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions