]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/qedr: Prevent memory overrun in verbs' user responses
authorAmrani, Ram <Ram.Amrani@cavium.com>
Mon, 26 Jun 2017 16:05:04 +0000 (19:05 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Jul 2017 15:20:50 +0000 (11:20 -0400)
commit75f29e6e9997471d13254782c8522ec933c12d2c
tree49ac00312ed0d4af72a8254e95baa98450f3c089
parent9be0ae9c4e1dc919dae14031640d0efdba9ce762
RDMA/qedr: Prevent memory overrun in verbs' user responses

Wrap ib_copy_to_udata with a function that ensures that the data
being copied over to user space isn't longer than the allowed.

Fixes: 4bb8a9906b57 ("qedr: Add support for QP verbs")
Fixes: fe4ac1d3ddb6 ("qedr: Add support for PD,PKEY and CQ verbs")
Fixes: c1b7616bb304 ("qedr: Add support for user context verbs")
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qedr/verbs.c