IB/uverbs: reject invalid or unknown opcodes
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Aug 2015 09:00:37 +0000 (11:00 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 Sep 2015 18:25:24 +0000 (14:25 -0400)
commitb632ffa7cee439ba5dce3b3bc4a5cbe2b3e20133
tree38564666360a99f32cd89ebdbb22f3cbcd09d65d
parent54b9a96f10d9acb7b1ffd40e2e1736443eb7656d
IB/uverbs: reject invalid or unknown opcodes

We have many WR opcodes that are only supported in kernel space
and/or require optional information to be copied into the WR
structure.  Reject all those not explicitly handled so that we
can't pass invalid information to drivers.

Cc: stable@vger.kernel.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c